public interface FeaturePath
Modifier and Type | Method and Description |
---|---|
void |
addFeature(Feature feat)
Add a new feature at the end of the path.
|
java.lang.Boolean |
getBooleanValue(FeatureStructure fs)
Returns the Boolean value of a boolean valued feature path.
|
java.lang.Byte |
getByteValue(FeatureStructure fs)
Returns the Byte value of a byte valued feature path.
|
java.lang.Double |
getDoubleValue(FeatureStructure fs)
Returns the Double value of a double valued feature path.
|
Feature |
getFeature(int i)
Get feature at position.
|
java.lang.String |
getFeaturePath()
Returns the feature path as string.
|
java.lang.Float |
getFloatValue(FeatureStructure fs)
Returns the Float value of a float valued feature path.
|
FeatureStructure |
getFSValue(FeatureStructure fs)
Returns the FeatureStructure of a FeatureStructure valued feature path.
|
java.lang.Integer |
getIntValue(FeatureStructure fs)
Returns the Integer value of an integer valued feature path.
|
java.lang.Long |
getLongValue(FeatureStructure fs)
Returns the Long value of a long valued feature path.
|
java.lang.Short |
getShortValue(FeatureStructure fs)
Returns the Short value of a short valued feature path.
|
java.lang.String |
getStringValue(FeatureStructure fs)
Returns the String value of a string valued feature path.
|
TypeClass |
getTypClass(FeatureStructure fs)
Returns the type class of the feature path.
|
Type |
getType(FeatureStructure fs)
Returns the type of the feature path.
|
java.lang.String |
getValueAsString(FeatureStructure fs)
Returns the feature path value as string for the given FeatureStructure.
|
void |
initialize(java.lang.String featurePath)
Initialize the feature path object with the given feature path string.
|
java.lang.String |
ll_getValueAsString(int fsRef,
LowLevelCAS llCas)
Returns the feature path value as string for the given FeatureStructure.
|
int |
size()
Get length of path.
|
void |
typeInit(Type featurePathType)
Check the feature path for the given type and initialize internal
structures for faster access to the feature path value.
|
int size()
>= 0
.Feature getFeature(int i)
i
- The position in the path (starting at 0
).null
if there is no such feature.void addFeature(Feature feat)
feat
- The feature to be added.void initialize(java.lang.String featurePath) throws CASException
featurePath
- The featurePath that is used for this feature path object.CASException
- Throws an exception if the feature path syntax is invalid.void typeInit(Type featurePathType) throws CASException
featurePathType
- The type the feature path should be used on.CASException
- Throws an exception if the feature path is not valid for the
given typejava.lang.String getValueAsString(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path valuejava.lang.String ll_getValueAsString(int fsRef, LowLevelCAS llCas)
fsRef
- FeatureStructure reference (LowLevel API) to evaluate the
feature path valuellCas
- LowLevelCAS for the fsRefType getType(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path typeTypeClass getTypClass(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path type classjava.lang.String getFeaturePath()
java.lang.String getStringValue(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path valuejava.lang.Integer getIntValue(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path valuejava.lang.Boolean getBooleanValue(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path valuejava.lang.Byte getByteValue(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path valuejava.lang.Double getDoubleValue(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path valuejava.lang.Float getFloatValue(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path valuejava.lang.Long getLongValue(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path valuejava.lang.Short getShortValue(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path valueFeatureStructure getFSValue(FeatureStructure fs)
fs
- FeatureStructure to evaluate the feature path valueCopyright © 2012. All Rights Reserved.