Package org.apache.uima.jcas.cas
Class TOP_Type
java.lang.Object
org.apache.uima.jcas.cas.TOP_Type
- Direct Known Subclasses:
AnnotationBase_Type
,CommonArray_Type
,FloatList_Type
,FSList_Type
,IntegerList_Type
,JCasHashMapSubMap.ReserveTopType
,Sofa_Type
,StringList_Type
hold Cas type information, link to JCas instance. One instance per Type, per CAS
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal CASImpl
ref to CAS for faster getters/settersfinal Type
the Cas Type associated with this Java Cas Model classfinal int
protected final TOP_Type
This generator can be set up to either get the identical Java object (if it exists) or just make a new one.final JCas
reference to the Java Cas rootfinal LowLevelCAS
protected final boolean
protected final boolean
static final int
each cover class when loaded sets an index.final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToIndexes
(int inst) add the corresponding FeatureStructure to all Cas indexesprotected void
checkType
(int inst) protected FSGenerator<?>
int
used to obtain reference to the TOP_Type instanceprotected void
invalidTypeArg
(int inst) int
void
removeFromIndexes
(int inst) remove the corresponding FeatureStructure from all Cas indexes
-
Field Details
-
typeIndexID
public static final int typeIndexIDeach cover class when loaded sets an index. used in the JCas typeArray to go from the cover class or class instance to the corresponding instance of the _Type class -
casType
the Cas Type associated with this Java Cas Model class -
casTypeCode
public final int casTypeCode -
jcas
reference to the Java Cas root -
casImpl
ref to CAS for faster getters/setters -
ll_cas
-
lowLevelTypeChecks
protected final boolean lowLevelTypeChecks -
lowLevelArrayBoundChecks
protected final boolean lowLevelArrayBoundChecks -
useExistingInstance
public final boolean useExistingInstance -
instanceOf_Type
This generator can be set up to either get the identical Java object (if it exists) or just make a new one. If making a new one - the java object made cannot contain any other data (because updates won't be reflected). Each class generated by JCasGen either does this (if it has additional java fields imbedded) or not.
-
-
Constructor Details
-
TOP_Type
protected TOP_Type()protected constructor - disable default constructor - never called. -
TOP_Type
-
TOP_Type
-
-
Method Details
-
getTypeIndexID
public int getTypeIndexID()used to obtain reference to the TOP_Type instance- Returns:
- the type array index
-
getFSGenerator
-
checkType
protected void checkType(int inst) -
invalidTypeArg
protected void invalidTypeArg(int inst) -
addToIndexes
public void addToIndexes(int inst) add the corresponding FeatureStructure to all Cas indexes- Parameters:
inst
- the low level CAS Feature Structure reference
-
removeFromIndexes
public void removeFromIndexes(int inst) remove the corresponding FeatureStructure from all Cas indexes- Parameters:
inst
- the low level CAS Feature Structure reference
-
noObjCreate
public int noObjCreate()
-