|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FeatureDescription
A description of a CAS feature. This implements MetaDataObject
, which implements
XMLizable
, so it can be serialized to and deserialized from an XML
element.
Method Summary | |
---|---|
String |
getDescription()
Gets the verbose description of this Feature. |
String |
getElementType()
For a feature with a range type that is an array or list, gets the expected type of the elements of that array or list. |
Boolean |
getMultipleReferencesAllowed()
For a feature with a range type that is an array or list, gets whether value of the feature may also be referenced from another feature elsewhere in the CAS. |
String |
getName()
Gets the name of this Feature. |
String |
getRangeTypeName()
Gets the name of the range Type of this Feature. |
void |
setDescription(String aDescription)
Sets the verbose description of this Feature. |
void |
setElementType(String aElementType)
For a multi-valued (array or list) feature, sets the expected type of the elements of that array or list. |
void |
setMultipleReferencesAllowed(Boolean aAllowed)
For a feature with a range type that is an array or list, sets whether value of the feature may also be referenced from another feature elsewhere in the CAS. |
void |
setName(String aName)
Sets the name of this Feature. |
void |
setRangeTypeName(String aTypeName)
Sets the name of the range Type of this 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 |
---|
String getName()
void setName(String aName)
aName
- the name of this FeatureString getDescription()
void setDescription(String aDescription)
aDescription
- the description of this FeatureString getRangeTypeName()
void setRangeTypeName(String aTypeName)
aTypeName
- the name of the range Type of this FeatureString getElementType()
void setElementType(String aElementType)
aElementType
- the expected element type of an array or list feature, null if there is no
restriction.Boolean getMultipleReferencesAllowed()
This returns a Boolean object so that we can distinguish whether the descriptor contained no setting (null) versus an explicit setting of false. We want to preserve this if the descriptor is written out again.
Setting this to false (the default) indicates that this feature has exclusive ownership of the array or list, so changes to the array or list are localized. Setting this to true indicates that the array or list may be shared, so changes to it may affect other objects in the CAS.
There is currently no guarantee that the framework will enforce this restriction. However, this setting may affect how the CAS is serialized.
This property should always be null for features whose range type is not an array or list.
void setMultipleReferencesAllowed(Boolean aAllowed)
This takes a Boolean object so that we can distinguish whether the descriptor contained no setting (null) versus an explicit setting of false. We want to preserve this if the descriptor is written out again.
Setting this to false (the default) indicates that this feature has exclusive ownership of the array or list, so changes to the array or list are localized. Setting this to true indicates that the array or list may be shared, so changes to it may affect other objects in the CAS.
There is currently no guarantee that the framework will enforce this restriction. However, this setting may affect how the CAS is serialized.
This property should never be set for features whose range type is not an array or list.
aAllowed
- true if multiple references to an array or list are allowed, false if not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |