public class TypePriorities_impl extends MetaDataObject_impl implements TypePriorities
TypePriorities
.MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
serialContext
Constructor and Description |
---|
TypePriorities_impl() |
Modifier and Type | Method and Description |
---|---|
TypePriorityList |
addPriorityList()
Creates a new, empty
TypePriorityList and adds it to this object. |
void |
addPriorityList(TypePriorityList aPriorityList)
Adds a
TypePriorityList . |
Object |
clone()
Creates a clone of this
MetaDataObject . |
String |
getDescription()
Gets the description of this TypePriorities declaration.
|
Import[] |
getImports()
Gets the imports declared by this TypePriorities declaration.
|
String |
getName()
Gets the name of this TypePriorities declaration.
|
TypePriorityList[] |
getPriorityLists()
Gets the
TypePriorityList s that define the priorities. |
String |
getVendor()
Gets the vendor of this TypePriorities declaration.
|
String |
getVersion()
Gets the version number of this TypePriorities declaration.
|
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
void |
removePriorityList(TypePriorityList aPriorityList)
Removes a
TypePriorityList . |
void |
resolveImports()
Resolves any import declarations in this Type Priorities declaration, adding the imported
TypePriorityList objects directly onto this TypePriorities object's
priorityLists . |
void |
resolveImports(Collection<String> aAlreadyImportedTypePrioritiesURLs,
ResourceManager aResourceManager)
Resolves any import declarations in this Type Priorities declaration, adding the imported
TypePriorityList objects directly onto this TypePriorities object's
priorityLists . |
void |
resolveImports(ResourceManager aResourceManager)
Resolves any import declarations in this Type Priorities declaration, adding the imported
TypePriorityList objects directly onto this TypePriorities object's
priorityLists . |
void |
setDescription(String aDescription)
Sets the description of this TypePriorities declaration.
|
void |
setImports(Import[] aImports)
Sets the imports declared by this TypePriorities declaration.
|
void |
setName(String aName)
Sets the name of this TypePriorities declaration.
|
void |
setPriorityLists(TypePriorityList[] aPriorityLists)
Sets the
TypePriorityList s that define the priorities. |
void |
setVendor(String aVendor)
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 supress <priorityLists> tag for TAF compatibility
|
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
finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
public String getName()
TypePriorities
getName
in interface TypePriorities
ResourceMetaData.getName()
public void setName(String aName)
TypePriorities
setName
in interface TypePriorities
aName
- the name of this TypePriorities declarationResourceMetaData.setName(String)
public String getVersion()
TypePriorities
getVersion
in interface TypePriorities
ResourceMetaData.getVersion()
public void setVersion(String aVersion)
TypePriorities
setVersion
in interface TypePriorities
aVersion
- the version number of this TypePriorities declaration, as a StringResourceMetaData.setVersion(String)
public String getDescription()
TypePriorities
getDescription
in interface TypePriorities
ResourceMetaData.getDescription()
public void setDescription(String aDescription)
TypePriorities
setDescription
in interface TypePriorities
aDescription
- the description of this TypePriorities declarationResourceMetaData.setDescription(String)
public String getVendor()
TypePriorities
getVendor
in interface TypePriorities
ResourceMetaData.getVendor()
public void setVendor(String aVendor)
TypePriorities
setVendor
in interface TypePriorities
aVendor
- the vendor of this TypePriorities declaration, as a String, null if none has been
specified.ResourceMetaData.setVendor(String)
public Import[] getImports()
TypePriorities
getImports
in interface TypePriorities
TypeSystemDescription.getImports()
public void setImports(Import[] aImports)
TypePriorities
setImports
in interface TypePriorities
aImports
- an array of imports declared by this TypePriorities declaration.TypeSystemDescription.setImports(Import[])
public TypePriorityList[] getPriorityLists()
TypePriorities
TypePriorityList
s that define the priorities. Each
TypePriorityList
declares the relative priority of two or more types.getPriorityLists
in interface TypePriorities
TypePriorityList
s that define the prioritiessynchronized to prevent concurrent mod exceptions
public void setPriorityLists(TypePriorityList[] aPriorityLists)
TypePriorities
TypePriorityList
s that define the priorities. Each
TypePriorityList
declares the relative priority of two or more types.setPriorityLists
in interface TypePriorities
aPriorityLists
- the TypePriorityList
s that define the prioritiescould be called by thread doing resolve imports,
while another thread was iterating over them
public void addPriorityList(TypePriorityList aPriorityList)
TypePriorities
TypePriorityList
.addPriorityList
in interface TypePriorities
aPriorityList
- the TypePriorityList
to addTypePriorities.addPriorityList(TypePriorityList)
public TypePriorityList addPriorityList()
TypePriorities
TypePriorityList
and adds it to this object.addPriorityList
in interface TypePriorities
TypePriorityList
, which can be modified by the callerTypePriorities.addPriorityList()
public void removePriorityList(TypePriorityList aPriorityList)
TypePriorities
TypePriorityList
.removePriorityList
in interface TypePriorities
aPriorityList
- the TypePriorityList
to removeTypePriorities.removePriorityList(TypePriorityList)
public void resolveImports() throws InvalidXMLException
TypePriorities
TypePriorityList
objects directly onto this TypePriorities object's
priorityLists
. The import elements are then deleted, so this
results in a structure that is equivalent to the imported elements having been defined locally.resolveImports
in interface TypePriorities
InvalidXMLException
- if either the import target does not exist or is invalidTypeSystemDescription.resolveImports()
public void resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
TypePriorities
TypePriorityList
objects directly onto this TypePriorities object's
priorityLists
. The import elements are then deleted, so this
results in a structure that is equivalent to the imported elements having been defined locally.resolveImports
in interface TypePriorities
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
the ResourceManager.setDataPath(String)
method.InvalidXMLException
- if either the import target does not exist or is invalidpublic void resolveImports(Collection<String> aAlreadyImportedTypePrioritiesURLs, ResourceManager aResourceManager) throws InvalidXMLException
TypePriorities
TypePriorityList
objects directly onto this TypePriorities object's
priorityLists
. 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.
resolveImports
in interface TypePriorities
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
the ResourceManager.setDataPath(String)
method.InvalidXMLException
- if either the import target does not exist or is invalidprotected void writePropertyAsElement(PropertyXmlInfo aPropInfo, String aNamespace) throws SAXException
writePropertyAsElement
in class MetaDataObject_impl
aPropInfo
- information on how to represent the property in XMLaNamespace
- XML namespace URI for this object
representationSAXException
- -MetaDataObject_impl.writePropertyAsElement(org.apache.uima.resource.metadata.impl.PropertyXmlInfo,
java.lang.String)
public Object clone()
MetaDataObject
MetaDataObject
. This performs a "deep" copy by cloning
all attribute values that are also MetaDataObjects.clone
in interface MetaDataObject
clone
in class MetaDataObject_impl
MetaDataObject
multi-core: could be cloning while another thread is modifying?
protected XmlizationInfo getXmlizationInfo()
MetaDataObject_impl
getXmlizationInfo
in class MetaDataObject_impl
MetaDataObject_impl.getXmlizationInfo()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.