Interface TypePriorityList
-
- All Superinterfaces:
java.lang.Cloneable
,MetaDataObject
,java.io.Serializable
,XMLizable
- All Known Implementing Classes:
TypePriorityList_impl
public interface TypePriorityList extends MetaDataObject
Declares a relative priority between CAS types. This object contains a single list of types. One or moreTypePriorityList
objects can be grouped together to define a completeTypePriorities
declaration for a type system.This object implements
MetaDataObject
, which implementsXMLizable
, so it can be serialized to and deserialized from an XML element.- See Also:
TypePriorities
-
-
Field Summary
Fields Modifier and Type Field Description static TypePriorityList[]
EMPTY_TYPE_PRIORITY_LISTS
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addType(java.lang.String aTypeName)
Adds a type at the end of the priority list.java.lang.String[]
getTypes()
Gets the type names, in order of their priority.void
removeType(java.lang.String aTypeName)
Removes a type from the priority list.void
setTypes(java.lang.String[] aTypeNames)
Sets the type names, in order of their priority.-
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
-
-
-
-
Field Detail
-
EMPTY_TYPE_PRIORITY_LISTS
static final TypePriorityList[] EMPTY_TYPE_PRIORITY_LISTS
-
-
Method Detail
-
getTypes
java.lang.String[] getTypes()
Gets the type names, in order of their priority.- Returns:
- an array of type names, in order of their priority
-
setTypes
void setTypes(java.lang.String[] aTypeNames)
Sets the type names, in order of their priority.- Parameters:
aTypeNames
- an array type names, in order of their priority
-
addType
void addType(java.lang.String aTypeName)
Adds a type at the end of the priority list.- Parameters:
aTypeName
- the type name to add
-
removeType
void removeType(java.lang.String aTypeName)
Removes a type from the priority list.- Parameters:
aTypeName
- the type name to remove
-
-