public class TypePriorities_impl extends MetaDataObject_impl implements TypePriorities
TypePriorities.MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContext| 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
TypePriorityLists 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
TypePriorityLists 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, writeMapPropertyToXmlfinalize, getClass, notify, notifyAll, wait, wait, waitequals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXMLpublic String getName()
TypePrioritiesgetName in interface TypePrioritiesResourceMetaData.getName()public void setName(String aName)
TypePrioritiessetName in interface TypePrioritiesaName - the name of this TypePriorities declarationResourceMetaData.setName(String)public String getVersion()
TypePrioritiesgetVersion in interface TypePrioritiesResourceMetaData.getVersion()public void setVersion(String aVersion)
TypePrioritiessetVersion in interface TypePrioritiesaVersion - the version number of this TypePriorities declaration, as a StringResourceMetaData.setVersion(String)public String getDescription()
TypePrioritiesgetDescription in interface TypePrioritiesResourceMetaData.getDescription()public void setDescription(String aDescription)
TypePrioritiessetDescription in interface TypePrioritiesaDescription - the description of this TypePriorities declarationResourceMetaData.setDescription(String)public String getVendor()
TypePrioritiesgetVendor in interface TypePrioritiesResourceMetaData.getVendor()public void setVendor(String aVendor)
TypePrioritiessetVendor in interface TypePrioritiesaVendor - the vendor of this TypePriorities declaration, as a String, null if none has been
specified.ResourceMetaData.setVendor(String)public Import[] getImports()
TypePrioritiesgetImports in interface TypePrioritiesTypeSystemDescription.getImports()public void setImports(Import[] aImports)
TypePrioritiessetImports in interface TypePrioritiesaImports - an array of imports declared by this TypePriorities declaration.TypeSystemDescription.setImports(Import[])public TypePriorityList[] getPriorityLists()
TypePrioritiesTypePriorityLists that define the priorities. Each
TypePriorityList declares the relative priority of two or more types.getPriorityLists in interface TypePrioritiesTypePriorityLists that define the prioritiessynchronized to prevent concurrent mod exceptionspublic void setPriorityLists(TypePriorityList[] aPriorityLists)
TypePrioritiesTypePriorityLists that define the priorities. Each
TypePriorityList declares the relative priority of two or more types.setPriorityLists in interface TypePrioritiesaPriorityLists - the TypePriorityLists that define the prioritiescould be called by thread doing resolve imports,
while another thread was iterating over thempublic void addPriorityList(TypePriorityList aPriorityList)
TypePrioritiesTypePriorityList.addPriorityList in interface TypePrioritiesaPriorityList - the TypePriorityList to addTypePriorities.addPriorityList(TypePriorityList)public TypePriorityList addPriorityList()
TypePrioritiesTypePriorityList and adds it to this object.addPriorityList in interface TypePrioritiesTypePriorityList, which can be modified by the callerTypePriorities.addPriorityList()public void removePriorityList(TypePriorityList aPriorityList)
TypePrioritiesTypePriorityList.removePriorityList in interface TypePrioritiesaPriorityList - the TypePriorityList to removeTypePriorities.removePriorityList(TypePriorityList)public void resolveImports()
throws InvalidXMLException
TypePrioritiesTypePriorityList 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 TypePrioritiesInvalidXMLException - if either the import target does not exist or is invalidTypeSystemDescription.resolveImports()public void resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
TypePrioritiesTypePriorityList 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 TypePrioritiesaResourceManager - 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
TypePrioritiesTypePriorityList 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 TypePrioritiesaAlreadyImportedTypePrioritiesURLs - 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_implaPropInfo - 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()
MetaDataObjectMetaDataObject. This performs a "deep" copy by cloning
all attribute values that are also MetaDataObjects.clone in interface MetaDataObjectclone in class MetaDataObject_implMetaDataObjectmulti-core: could be cloning while another thread is modifying?protected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implMetaDataObject_impl.getXmlizationInfo()Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.