Package org.apache.uima.cas
Interface StringArrayFS
- All Superinterfaces:
Cloneable,CommonArrayFS<String>,FeatureStructure
- All Known Subinterfaces:
StringArrayFSImpl
- All Known Implementing Classes:
StringArray
String array interface. To create a string array object, use
CAS.createStringArrayFS(int) or new
StringArray(aJCas, length)-
Method Summary
Methods inherited from interface org.apache.uima.cas.CommonArrayFS
copyFromArray, copyToArray, copyValuesFrom, getValuesAsCommaSeparatedString, isEmpty, size, toStringArrayMethods inherited from interface org.apache.uima.cas.FeatureStructure
_getTypeCode, _id, clone, equals, getAddress, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getJCas, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue
-
Method Details
-
get
Get the i-th string from the array.- Parameters:
i- the index- Returns:
- The i-th element.
- Throws:
ArrayIndexOutOfBoundsException- If the index is out of bounds.
-
set
Set the i-th value.- Parameters:
i- The index.str- The value.- Throws:
ArrayIndexOutOfBoundsException- Ifiis out of bounds.
-
toArray
String[] toArray()Creates a new array the this array is copied to.- Returns:
- A Java array copy of this FS array.
-