Package org.apache.uima.jcas.cas
Class StringArray_Type
- java.lang.Object
-
- org.apache.uima.jcas.cas.TOP_Type
-
- org.apache.uima.jcas.cas.CommonArray_Type
-
- org.apache.uima.jcas.cas.StringArray_Type
-
public final class StringArray_Type extends CommonArray_Type
The java Cas model for the CAS StringArray Type This is not final because the migration from pre v08 has the old xxx_Type as a subclass of this.
-
-
Field Summary
Fields Modifier and Type Field Description static inttypeIndexIDthis types ID - used to index a localTypeArray in JCas to get an index which indexes the global typeArray in JCas instance to get a ref to this instance-
Fields inherited from class org.apache.uima.jcas.cas.TOP_Type
casImpl, casType, casTypeCode, instanceOf_Type, jcas, ll_cas, lowLevelArrayBoundChecks, lowLevelTypeChecks, useExistingInstance
-
-
Constructor Summary
Constructors Constructor Description StringArray_Type(JCas jcas, Type casType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFromArray(int addr, java.lang.String[] src, int srcOffset, int destOffset, int length)voidcopyToArray(int addr, int srcOffset, java.lang.String[] dest, int destOffset, int length)java.lang.Stringget(int addr, int i)protected FSGenerator<?>getFSGenerator()voidset(int addr, int i, java.lang.String v)updates the Cas, setting the indexed value to the passed in Java String value.java.lang.String[]toArray(int addr)-
Methods inherited from class org.apache.uima.jcas.cas.CommonArray_Type
size
-
Methods inherited from class org.apache.uima.jcas.cas.TOP_Type
addToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexes
-
-
-
-
Method Detail
-
getFSGenerator
protected FSGenerator<?> getFSGenerator()
- Overrides:
getFSGeneratorin classTOP_Type
-
get
public java.lang.String get(int addr, int i)- Parameters:
addr- the low level CAS Feature Structure referencei- the index- Returns:
- the indexed value from the corresponding Cas StringArray as a Java String.
- See Also:
StringArrayFS.get(int)
-
set
public void set(int addr, int i, java.lang.String v)updates the Cas, setting the indexed value to the passed in Java String value.- Parameters:
addr- the low level CAS Feature Structure referencei- the indexv- the value- See Also:
StringArrayFS.set(int, String)
-
copyFromArray
public void copyFromArray(int addr, java.lang.String[] src, int srcOffset, int destOffset, int length)- Parameters:
addr- the low level CAS Feature Structure referencesrc- the Java object sourcesrcOffset- the source offsetdestOffset- the destination offset in the CAS Feature Structurelength- the number of items to copy- See Also:
StringArrayFS.copyFromArray(String[], int, int, int)
-
copyToArray
public void copyToArray(int addr, int srcOffset, java.lang.String[] dest, int destOffset, int length)- Parameters:
addr- the low level CAS Feature Structure referencesrcOffset- the offset in the CAS Feature Structuredest- the Java object destinationdestOffset- the destination offsetlength- the number of items to copy- See Also:
StringArrayFS.copyToArray(int, String[], int, int)
-
toArray
public java.lang.String[] toArray(int addr)
- Parameters:
addr- the low level CAS Feature Structure reference- Returns:
- a copy of the string array
- See Also:
StringArrayFS.toArray()
-
-