Package org.apache.uima.analysis_engine
Interface TypeOrFeature
-
- All Superinterfaces:
java.lang.Cloneable,java.lang.Comparable<TypeOrFeature>,MetaDataObject,java.io.Serializable,XMLizable
- All Known Implementing Classes:
TypeOrFeature_impl
public interface TypeOrFeature extends MetaDataObject, java.lang.Comparable<TypeOrFeature>
A reference to a Type or Feature in the Analysis Engine's TypeSystem. This interface is used byCapabilityto declare which Types and Features the Analysis Engine inputs and outputs, and it is also used byResultSpecificationto declare the outputs that are desired by the application.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()Gets the fully-qualified Type or Feature name.booleanisAllAnnotatorFeatures()For Type references, this method determines whether this reference should be considered to also refer to all features of the Type that are known to the annotator.booleanisType()Gets whether this object refers to a Type or to a Feature.voidsetAllAnnotatorFeatures(boolean aAllAnnotatorFeatures)For Type references, sets whether this reference should be considered to also refer to all features of the Type that are known to the annotator.voidsetName(java.lang.String aName)Sets the fully-qualified Type or Feature name.voidsetType(boolean aType)Sets whether this object refers to a Type or to a Feature.-
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
-
Methods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
-
-
-
Method Detail
-
isType
boolean isType()
Gets whether this object refers to a Type or to a Feature.- Returns:
- true if Type, false if Feature
-
setType
void setType(boolean aType)
Sets whether this object refers to a Type or to a Feature.- Parameters:
aType- true if Type, false if Feature
-
getName
java.lang.String getName()
Gets the fully-qualified Type or Feature name.- Returns:
- the fully-qualified name
-
setName
void setName(java.lang.String aName)
Sets the fully-qualified Type or Feature name.- Parameters:
aName- the fully-qualified name
-
isAllAnnotatorFeatures
boolean isAllAnnotatorFeatures()
For Type references, this method determines whether this reference should be considered to also refer to all features of the Type that are known to the annotator. This field is not used for Feature references.- Returns:
- true if this is a reference to all features, false if it is only a reference to the type
-
setAllAnnotatorFeatures
void setAllAnnotatorFeatures(boolean aAllAnnotatorFeatures)
For Type references, sets whether this reference should be considered to also refer to all features of the Type that are known to the annotator. This field is not used for Feature references.- Parameters:
aAllAnnotatorFeatures- true if this is a reference to all features, false if it is only a reference to the type
-
-