public class FeatureStructureImpl extends Object implements FeatureStructure
Constructor and Description |
---|
FeatureStructureImpl() |
Modifier and Type | Method and Description |
---|---|
Object |
get() |
String[] |
getFeatureNames()
Gets the names of all features on this FeatureStructure.
|
FeatureValue |
getFeatureValue(String aFeatureName)
Gets the value of a feature
|
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.
|
String |
getType()
Gets the type of this FeatureStructure
|
boolean |
isIndexed()
Deprecated.
|
void |
setFeatureValue(String aFeatureType,
FeatureValue aValue)
Sets the value of a feature
|
void |
setId(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(String aType)
Sets the type of this FeatureStructure
|
String |
toString() |
public String getType()
FeatureStructure
getType
in interface FeatureStructure
public void setType(String aType)
FeatureStructure
setType
in interface FeatureStructure
aType
- this FeatureStructure's type, as a stringpublic String[] getFeatureNames()
FeatureStructure
getFeatureNames
in interface FeatureStructure
public FeatureValue getFeatureValue(String aFeatureName)
FeatureStructure
getFeatureValue
in interface FeatureStructure
aFeatureName
- name of featureaName
, or null if there is no such featurepublic void setFeatureValue(String aFeatureType, FeatureValue aValue)
FeatureStructure
setFeatureValue
in interface FeatureStructure
aFeatureType
- name of feature to setaValue
- value of featurepublic Object get()
public String getId()
FeatureStructure
getId
in interface FeatureStructure
@Deprecated public boolean isIndexed()
FeatureStructure
isIndexed
in interface FeatureStructure
public void setId(String string)
FeatureStructure
setId
in interface FeatureStructure
string
- -@Deprecated public void setIndexed(boolean b)
FeatureStructure
setIndexed
in interface FeatureStructure
b
- true if this FS should be indexed, false if notpublic 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 © 2006–2021 The Apache Software Foundation. All rights reserved.