public class FeatureStructureImpl extends java.lang.Object implements FeatureStructure
Constructor and Description |
---|
FeatureStructureImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get() |
java.lang.String[] |
getFeatureNames()
Gets the names of all features on this FeatureStructure.
|
FeatureValue |
getFeatureValue(java.lang.String aFeatureName)
Gets the value of a feature
|
java.lang.String |
getId()
Gets the ID of this FeatureStructure.
|
int[] |
getIndexed()
Gets the index repositories that this FeatureStrucutre should be indexed in if the CasData is
converted to a CAS Object.
|
java.lang.String |
getType()
Gets the type of this FeatureStructure
|
boolean |
isIndexed()
Deprecated.
|
void |
setFeatureValue(java.lang.String aFeatureType,
FeatureValue aValue)
Sets the value of a feature
|
void |
setId(java.lang.String string)
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 |
setType(java.lang.String aType)
Sets the type of this FeatureStructure
|
java.lang.String |
toString() |
public java.lang.String getType()
FeatureStructure
getType
in interface FeatureStructure
public void setType(java.lang.String aType)
FeatureStructure
setType
in interface FeatureStructure
aType
- this FeatureStructure's type, as a stringpublic java.lang.String[] getFeatureNames()
FeatureStructure
getFeatureNames
in interface FeatureStructure
public FeatureValue getFeatureValue(java.lang.String aFeatureName)
FeatureStructure
getFeatureValue
in interface FeatureStructure
aFeatureName
- name of featureaName
, or null if there is no such featurepublic void setFeatureValue(java.lang.String aFeatureType, FeatureValue aValue)
FeatureStructure
setFeatureValue
in interface FeatureStructure
aFeatureType
- name of feature to setaValue
- value of featurepublic java.lang.Object get()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getId()
FeatureStructure
getId
in interface FeatureStructure
@Deprecated public boolean isIndexed()
FeatureStructure
isIndexed
in interface FeatureStructure
public void setId(java.lang.String string)
FeatureStructure
setId
in interface FeatureStructure
string
- @Deprecated public void setIndexed(boolean b)
FeatureStructure
setIndexed
in interface FeatureStructure
b
- public int[] getIndexed()
FeatureStructure
getIndexed
in interface FeatureStructure
public void setIndexed(int[] aIndexed)
FeatureStructure
setIndexed
in interface FeatureStructure
aIndexed
- an array containing the numbers of the index repsositories that should contain this
FS. Passing null is equivalent to passing an empty array.Copyright © 2013. All Rights Reserved.