Class TypePriorityList_impl
- java.lang.Object
-
- org.apache.uima.resource.metadata.impl.MetaDataObject_impl
-
- org.apache.uima.resource.metadata.impl.TypePriorityList_impl
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,MetaDataObject,TypePriorityList,XMLizable
public class TypePriorityList_impl extends MetaDataObject_impl implements TypePriorityList
Reference implementation ofTypePriorityList.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
-
-
Field Summary
-
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContext
-
Fields inherited from interface org.apache.uima.resource.metadata.TypePriorityList
EMPTY_TYPE_PRIORITY_LISTS
-
-
Constructor Summary
Constructors Constructor Description TypePriorityList_impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddType(java.lang.String aTypeName)Adds a type at the end of the priority list.java.lang.Objectclone()Creates a clone of thisMetaDataObject.java.lang.String[]getTypes()Gets the type names, in order of their priority.protected XmlizationInfogetXmlizationInfo()To be implemented by subclasses to return information describing how to represent this object in XML.voidremoveType(java.lang.String aTypeName)Removes a type from the priority list.voidsetTypes(java.lang.String[] aTypeNames)Sets the type names, in order of their priority.-
Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, buildFromXMLElement, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElement
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
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
-
getTypes
public java.lang.String[] getTypes()
Description copied from interface:TypePriorityListGets the type names, in order of their priority.- Specified by:
getTypesin interfaceTypePriorityList- Returns:
- an array of type names, in order of their priority
- See Also:
synchronized to prevent concurrent modification exceptions
-
setTypes
public void setTypes(java.lang.String[] aTypeNames)
Description copied from interface:TypePriorityListSets the type names, in order of their priority.- Specified by:
setTypesin interfaceTypePriorityList- Parameters:
aTypeNames- an array type names, in order of their priority- See Also:
TypePriorityList.setTypes(java.lang.String[])
-
addType
public void addType(java.lang.String aTypeName)
Description copied from interface:TypePriorityListAdds a type at the end of the priority list.- Specified by:
addTypein interfaceTypePriorityList- Parameters:
aTypeName- the type name to add- See Also:
TypePriorityList.addType(java.lang.String)
-
removeType
public void removeType(java.lang.String aTypeName)
Description copied from interface:TypePriorityListRemoves a type from the priority list.- Specified by:
removeTypein interfaceTypePriorityList- Parameters:
aTypeName- the type name to remove- See Also:
TypePriorityList.removeType(java.lang.String)
-
clone
public java.lang.Object clone()
Description copied from interface:MetaDataObjectCreates a clone of thisMetaDataObject. This performs a "deep" copy by cloning all attribute values that are also MetaDataObjects.- Specified by:
clonein interfaceMetaDataObject- Overrides:
clonein classMetaDataObject_impl- Returns:
- a clone of this
MetaDataObject - See Also:
multi-core: could be cloning while another thread is modifying?
-
getXmlizationInfo
protected XmlizationInfo getXmlizationInfo()
Description copied from class:MetaDataObject_implTo be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfoin classMetaDataObject_impl- Returns:
- information defining this object's XML representation
- See Also:
MetaDataObject_impl.getXmlizationInfo()
-
-