public final class StringArray_Type extends CommonArray_Type
Modifier and Type | Field and Description |
---|---|
static int |
typeIndexID
this 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
|
casImpl, casType, casTypeCode, instanceOf_Type, jcas, ll_cas, lowLevelArrayBoundChecks, lowLevelTypeChecks, useExistingInstance
Constructor and Description |
---|
StringArray_Type(JCas jcas,
Type casType) |
Modifier and Type | Method and Description |
---|---|
void |
copyFromArray(int addr,
String[] src,
int srcOffset,
int destOffset,
int length) |
void |
copyToArray(int addr,
int srcOffset,
String[] dest,
int destOffset,
int length) |
String |
get(int addr,
int i) |
protected org.apache.uima.cas.impl.FSGenerator<?> |
getFSGenerator() |
void |
set(int addr,
int i,
String v)
updates the Cas, setting the indexed value to the passed in Java String value.
|
String[] |
toArray(int addr) |
size
addToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexes
public static final int typeIndexID
protected org.apache.uima.cas.impl.FSGenerator<?> getFSGenerator()
getFSGenerator
in class TOP_Type
public String get(int addr, int i)
addr
- the low level CAS Feature Structure referencei
- the indexStringArrayFS.get(int)
public void set(int addr, int i, String v)
addr
- the low level CAS Feature Structure referencei
- the indexv
- the valueStringArrayFS.set(int, String)
public void copyFromArray(int addr, String[] src, int srcOffset, int destOffset, int length)
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 copyStringArrayFS.copyFromArray(String[], int, int, int)
public void copyToArray(int addr, int srcOffset, String[] dest, int destOffset, int length)
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 copyStringArrayFS.copyToArray(int, String[], int, int)
public String[] toArray(int addr)
addr
- the low level CAS Feature Structure referenceStringArrayFS.toArray()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.