org.apache.uima.resource.metadata.impl
Class TypePriorityList_impl

java.lang.Object
  extended by org.apache.uima.resource.metadata.impl.MetaDataObject_impl
      extended by 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 of TypePriorityList.

See Also:
Serialized Form

Constructor Summary
TypePriorityList_impl()
           
 
Method Summary
 void addType(java.lang.String aTypeName)
          Adds a type at the end of the priority list.
 java.lang.Object clone()
          Creates a clone of this MetaDataObject.
 java.lang.String[] getTypes()
          Gets the type names, in order of their priority.
protected  XmlizationInfo getXmlizationInfo()
          To be implemented by subclasses to return information describing how to represent this object in XML.
 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 class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, buildFromXMLElement, equals, getAttributeClass, getAttributeValue, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, setAttributeValue, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, 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
 

Constructor Detail

TypePriorityList_impl

public TypePriorityList_impl()
Method Detail

getTypes

public java.lang.String[] getTypes()
Description copied from interface: TypePriorityList
Gets the type names, in order of their priority.

Specified by:
getTypes in interface TypePriorityList
Returns:
an array of type names, in order of their priority
See Also:
org.apache.uima.analysis_engine.metadata.TypePriorityList#getTypes()

setTypes

public void setTypes(java.lang.String[] aTypeNames)
Description copied from interface: TypePriorityList
Sets the type names, in order of their priority.

Specified by:
setTypes in interface TypePriorityList
Parameters:
aTypeNames - an array type names, in order of their priority
See Also:
org.apache.uima.analysis_engine.metadata.TypePriorityList#setTypes(java.lang.String[])

addType

public void addType(java.lang.String aTypeName)
Description copied from interface: TypePriorityList
Adds a type at the end of the priority list.

Specified by:
addType in interface TypePriorityList
Parameters:
aTypeName - the type name to add
See Also:
org.apache.uima.analysis_engine.metadata.TypePriorityList#addType(java.lang.String)

removeType

public void removeType(java.lang.String aTypeName)
Description copied from interface: TypePriorityList
Removes a type from the priority list.

Specified by:
removeType in interface TypePriorityList
Parameters:
aTypeName - the type name to remove
See Also:
org.apache.uima.analysis_engine.metadata.TypePriorityList#removeType(java.lang.String)

clone

public java.lang.Object clone()
Description copied from interface: MetaDataObject
Creates a clone of this MetaDataObject. This performs a "deep" copy by cloning all attribute values that are also MetaDataObjects.

Specified by:
clone in interface MetaDataObject
Overrides:
clone in class MetaDataObject_impl
Returns:
a clone of this MetaDataObject
See Also:
org.apache.uima.resource.MetaDataObject#clone()

getXmlizationInfo

protected XmlizationInfo getXmlizationInfo()
Description copied from class: MetaDataObject_impl
To be implemented by subclasses to return information describing how to represent this object in XML.

Specified by:
getXmlizationInfo in class MetaDataObject_impl
Returns:
information defining this object's XML representation
See Also:
org.apache.uima.resource.impl.MetaDataObject_impl#getXmlizationInfo()


Copyright © 2011. All Rights Reserved.