Class FSClassRegistry

java.lang.Object
org.apache.uima.cas.impl.FSClassRegistry

public class FSClassRegistry extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • initGeneratorArray

      void initGeneratorArray()
    • addClassForType

      void addClassForType(Type type, FSGenerator<?> fsFactory)
      adds generator for type and all its subtypes. Because of this, call this on supertypes first, then subtypes (otherwise subtypes will be overwritten by generators for the supertypes).
      Parameters:
      type - the CAS type
      fsFactory - the object having a createFS method in it for this type
    • addGeneratorForType

      public void addGeneratorForType(TypeImpl type, FSGenerator<?> fsFactory)
      No longer used, but left in for backward compatibility with older JCasgen'd classes
      Parameters:
      type - -
      fsFactory - -
    • flush

      void flush()
    • saveGeneratorsForClassLoader

      public void saveGeneratorsForClassLoader(ClassLoader cl, FSGenerator<?>[] newGenerators)
    • swapInGeneratorsForClassLoader

      public boolean swapInGeneratorsForClassLoader(ClassLoader cl, CASImpl casImpl)
    • getBaseGenerators

      public FSGenerator<?>[] getBaseGenerators()
    • setBaseGenerators

      public void setBaseGenerators(FSGenerator<?>[] generators)
    • getNewFSGeneratorSet

      public FSGenerator<?>[] getNewFSGeneratorSet()