Class TypePriorities_impl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.metadata.impl.TypePriorities_impl
- All Implemented Interfaces:
Serializable
,Cloneable
,MetaDataObject
,TypePriorities
,XMLizable
Reference implementation of
TypePriorities
.- See Also:
-
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new, emptyTypePriorityList
and adds it to this object.void
addPriorityList
(TypePriorityList aPriorityList) Adds aTypePriorityList
.clone()
Creates a clone of thisMetaDataObject
.Gets the description of this TypePriorities declaration.Import[]
Gets the imports declared by this TypePriorities declaration.getName()
Gets the name of this TypePriorities declaration.Gets theTypePriorityList
s that define the priorities.Gets the vendor of this TypePriorities declaration.Gets the version number of this TypePriorities declaration.protected XmlizationInfo
To be implemented by subclasses to return information describing how to represent this object in XML.void
removePriorityList
(TypePriorityList aPriorityList) Removes aTypePriorityList
.void
Resolves any import declarations in this Type Priorities declaration, adding the importedTypePriorityList
objects directly onto this TypePriorities object'spriorityLists
.void
resolveImports
(Collection<String> aAlreadyImportedTypePrioritiesURLs, ResourceManager aResourceManager) Deprecated.void
resolveImports
(ResourceManager aResourceManager) Resolves any import declarations in this Type Priorities declaration, adding the importedTypePriorityList
objects directly onto this TypePriorities object'spriorityLists
.void
setDescription
(String aDescription) Sets the description of this TypePriorities declaration.void
setImports
(Import[] aImports) Sets the imports declared by this TypePriorities declaration.void
Sets the name of this TypePriorities declaration.void
setPriorityLists
(TypePriorityList[] aPriorityLists) Sets theTypePriorityList
s that define the priorities.void
Sets the vendor of this TypePriorities declaration.void
setVersion
(String aVersion) Sets the version number of this TypePriorities declaration.protected void
writePropertyAsElement
(PropertyXmlInfo aPropInfo, String aNamespace) Overridden to suppress <priorityLists> tag for TAF compatibilityMethods 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
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 Details
-
TypePriorities_impl
public TypePriorities_impl()
-
-
Method Details
-
getName
Description copied from interface:TypePriorities
Gets the name of this TypePriorities declaration.- Specified by:
getName
in interfaceTypePriorities
- Returns:
- the name of this TypePriorities declaration, null if none has been specified.
- See Also:
-
setName
Description copied from interface:TypePriorities
Sets the name of this TypePriorities declaration.- Specified by:
setName
in interfaceTypePriorities
- Parameters:
aName
- the name of this TypePriorities declaration- See Also:
-
getVersion
Description copied from interface:TypePriorities
Gets the version number of this TypePriorities declaration.- Specified by:
getVersion
in interfaceTypePriorities
- Returns:
- the version number of this TypePriorities declaration, as a String, null if none has been specified.
- See Also:
-
setVersion
Description copied from interface:TypePriorities
Sets the version number of this TypePriorities declaration.- Specified by:
setVersion
in interfaceTypePriorities
- Parameters:
aVersion
- the version number of this TypePriorities declaration, as a String- See Also:
-
getDescription
Description copied from interface:TypePriorities
Gets the description of this TypePriorities declaration.- Specified by:
getDescription
in interfaceTypePriorities
- Returns:
- the description of this TypePriorities declaration, null if none has been specified.
- See Also:
-
setDescription
Description copied from interface:TypePriorities
Sets the description of this TypePriorities declaration.- Specified by:
setDescription
in interfaceTypePriorities
- Parameters:
aDescription
- the description of this TypePriorities declaration- See Also:
-
getVendor
Description copied from interface:TypePriorities
Gets the vendor of this TypePriorities declaration.- Specified by:
getVendor
in interfaceTypePriorities
- Returns:
- the vendor of this TypePriorities declaration, as a String
- See Also:
-
setVendor
Description copied from interface:TypePriorities
Sets the vendor of this TypePriorities declaration.- Specified by:
setVendor
in interfaceTypePriorities
- Parameters:
aVendor
- the vendor of this TypePriorities declaration, as a String, null if none has been specified.- See Also:
-
getImports
Description copied from interface:TypePriorities
Gets the imports declared by this TypePriorities declaration.- Specified by:
getImports
in interfaceTypePriorities
- Returns:
- an array of imports declared by this TypePriorities declaration.
- See Also:
-
setImports
Description copied from interface:TypePriorities
Sets the imports declared by this TypePriorities declaration.- Specified by:
setImports
in interfaceTypePriorities
- Parameters:
aImports
- an array of imports declared by this TypePriorities declaration.- See Also:
-
getPriorityLists
Description copied from interface:TypePriorities
Gets theTypePriorityList
s that define the priorities. EachTypePriorityList
declares the relative priority of two or more types.- Specified by:
getPriorityLists
in interfaceTypePriorities
- Returns:
- the
TypePriorityList
s that define the priorities - See Also:
-
setPriorityLists
Description copied from interface:TypePriorities
Sets theTypePriorityList
s that define the priorities. EachTypePriorityList
declares the relative priority of two or more types.- Specified by:
setPriorityLists
in interfaceTypePriorities
- Parameters:
aPriorityLists
- theTypePriorityList
s that define the priorities- See Also:
-
addPriorityList
Description copied from interface:TypePriorities
Adds aTypePriorityList
.- Specified by:
addPriorityList
in interfaceTypePriorities
- Parameters:
aPriorityList
- theTypePriorityList
to add- See Also:
-
addPriorityList
Description copied from interface:TypePriorities
Creates a new, emptyTypePriorityList
and adds it to this object.- Specified by:
addPriorityList
in interfaceTypePriorities
- Returns:
- the new
TypePriorityList
, which can be modified by the caller - See Also:
-
removePriorityList
Description copied from interface:TypePriorities
Removes aTypePriorityList
.- Specified by:
removePriorityList
in interfaceTypePriorities
- Parameters:
aPriorityList
- theTypePriorityList
to remove- See Also:
-
resolveImports
Description copied from interface:TypePriorities
Resolves any import declarations in this Type Priorities declaration, adding the importedTypePriorityList
objects directly onto this TypePriorities object'spriorityLists
. The import elements are then deleted, so this results in a structure that is equivalent to the imported elements having been defined locally.- Specified by:
resolveImports
in interfaceTypePriorities
- Throws:
InvalidXMLException
- if either the import target does not exist or is invalid- See Also:
-
resolveImports
Description copied from interface:TypePriorities
Resolves any import declarations in this Type Priorities declaration, adding the importedTypePriorityList
objects directly onto this TypePriorities object'spriorityLists
. The import elements are then deleted, so this results in a structure that is equivalent to the imported elements having been defined locally.- Specified by:
resolveImports
in interfaceTypePriorities
- Parameters:
aResourceManager
- the Resource Manager used to locate type priorities XML files imported by name. For example, the path in which to locate these type priorities XML files can be set via theResourceManager.setDataPath(String)
method.- Throws:
InvalidXMLException
- if either the import target does not exist or is invalid
-
resolveImports
@Deprecated public void resolveImports(Collection<String> aAlreadyImportedTypePrioritiesURLs, ResourceManager aResourceManager) throws InvalidXMLException Deprecated.Description copied from interface:TypePriorities
Resolves any import declarations in this Type Priorities declaration, adding the importedTypePriorityList
objects directly onto this TypePriorities object'spriorityLists
. The import elements are then deleted, so this results in a structure that is equivalent to the imported elements having been defined locally.This version is used internally to resolve nested imports.
- Specified by:
resolveImports
in interfaceTypePriorities
- Parameters:
aAlreadyImportedTypePrioritiesURLs
- URLs of already imported type priorities, so we don't import them again.aResourceManager
- the Resource Manager used to locate type priorities XML files imported by name. For example, the path in which to locate these type priorities XML files can be set via theResourceManager.setDataPath(String)
method.- Throws:
InvalidXMLException
- if either the import target does not exist or is invalid
-
writePropertyAsElement
protected void writePropertyAsElement(PropertyXmlInfo aPropInfo, String aNamespace) throws SAXException Overridden to suppress <priorityLists> tag for TAF compatibility- Overrides:
writePropertyAsElement
in classMetaDataObject_impl
- Parameters:
aPropInfo
- information on how to represent the property in XMLaNamespace
- XML namespace URI for this object representation- Throws:
SAXException
- -- See Also:
-
clone
Description copied from interface:MetaDataObject
Creates a clone of thisMetaDataObject
. This performs a "deep" copy by cloning all attribute values that are also MetaDataObjects.- Specified by:
clone
in interfaceMetaDataObject
- Overrides:
clone
in classMetaDataObject_impl
- Returns:
- a clone of this
MetaDataObject
- See Also:
-
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 classMetaDataObject_impl
- Returns:
- information defining this object's XML representation
- See Also:
-