Package org.apache.uima.cas_data.impl
Class FeatureStructureImpl
java.lang.Object
org.apache.uima.cas_data.impl.FeatureStructureImpl
- All Implemented Interfaces:
Serializable
,FeatureStructure
- Direct Known Subclasses:
PrimitiveArrayFSImpl
,ReferenceArrayFSImpl
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
String[]
Gets the names of all features on this FeatureStructure.getFeatureValue
(String aFeatureName) Gets the value of a featuregetId()
Gets the ID of this FeatureStructure.int[]
Gets the index repositories that this FeatureStrucutre should be indexed in if the CasData is converted to a CAS Object.getType()
Gets the type of this FeatureStructureboolean
Deprecated.void
setFeatureValue
(String aFeatureType, FeatureValue aValue) Sets the value of a featurevoid
Sets the ID of this FeatureStructure.void
setIndexed
(boolean b) Deprecated.void
setIndexed
(int[] aIndexed) Sets the index repositories that this FeatureStrucutre should be indexed in if the CasData is converted to a CAS Object.void
Sets the type of this FeatureStructuretoString()
-
Constructor Details
-
FeatureStructureImpl
public FeatureStructureImpl()
-
-
Method Details
-
getType
Description copied from interface:FeatureStructure
Gets the type of this FeatureStructure- Specified by:
getType
in interfaceFeatureStructure
- Returns:
- this FeatureStructure's type, as a string
-
setType
Description copied from interface:FeatureStructure
Sets the type of this FeatureStructure- Specified by:
setType
in interfaceFeatureStructure
- Parameters:
aType
- this FeatureStructure's type, as a string
-
getFeatureNames
Description copied from interface:FeatureStructure
Gets the names of all features on this FeatureStructure.- Specified by:
getFeatureNames
in interfaceFeatureStructure
- Returns:
- an array of feature names
-
getFeatureValue
Description copied from interface:FeatureStructure
Gets the value of a feature- Specified by:
getFeatureValue
in interfaceFeatureStructure
- Parameters:
aFeatureName
- name of feature- Returns:
- value of feature named
aName
, or null if there is no such feature
-
setFeatureValue
Description copied from interface:FeatureStructure
Sets the value of a feature- Specified by:
setFeatureValue
in interfaceFeatureStructure
- Parameters:
aFeatureType
- name of feature to setaValue
- value of feature
-
get
-
toString
-
getId
Description copied from interface:FeatureStructure
Gets the ID of this FeatureStructure. IDs are optional, so this may return null. A FeatureStructure must have an ID if it is to be the target of a reference.- Specified by:
getId
in interfaceFeatureStructure
- Returns:
- an ID string
-
isIndexed
Deprecated.Description copied from interface:FeatureStructure
Gets whether this FeatureStructure should be indexed if the CasData is converted to a CAS Object. The CasData itself does not provide indexes.- Specified by:
isIndexed
in interfaceFeatureStructure
- Returns:
- true if it is indexed
-
setId
Description copied from interface:FeatureStructure
Sets the ID of this FeatureStructure. IDs are optional, so null may be passed to this method. A FeatureStructure must have an ID if it is to be the target of a reference.- Specified by:
setId
in interfaceFeatureStructure
- Parameters:
string
- -
-
setIndexed
Deprecated.Description copied from interface:FeatureStructure
Sets whether this FeatureStructure should be indexed if the CasData is converted to a CAS Object. The CasData itself does not provide indexes.- Specified by:
setIndexed
in interfaceFeatureStructure
- Parameters:
b
- true if this FS should be indexed, false if not
-
getIndexed
public int[] getIndexed()Description copied from interface:FeatureStructure
Gets the index repositories that this FeatureStrucutre should be indexed in if the CasData is converted to a CAS Object. The CasData itself does not provide indexes.- Specified by:
getIndexed
in interfaceFeatureStructure
- Returns:
- an array containing the numbers of the index repsositories that should contain this FS. Returns an empty array if this FS is not indexed.
-
setIndexed
public void setIndexed(int[] aIndexed) Description copied from interface:FeatureStructure
Sets the index repositories that this FeatureStrucutre should be indexed in if the CasData is converted to a CAS Object. The CasData itself does not provide indexes.- Specified by:
setIndexed
in interfaceFeatureStructure
- Parameters:
aIndexed
- an array containing the numbers of the index repsositories that should contain this FS. Passing null is equivalent to passing an empty array.
-