public class TypePriorities_impl extends MetaDataObject_impl implements TypePriorities
TypePriorities.| 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. |
java.lang.Object |
clone()
Creates a clone of this
MetaDataObject. |
java.lang.String |
getDescription()
Gets the description of this TypePriorities declaration.
|
Import[] |
getImports()
Gets the imports declared by this TypePriorities declaration.
|
java.lang.String |
getName()
Gets the name of this TypePriorities declaration.
|
TypePriorityList[] |
getPriorityLists()
Gets the
TypePriorityLists that define the priorities. |
java.lang.String |
getVendor()
Gets the vendor of this TypePriorities declaration.
|
java.lang.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(java.util.Collection<java.lang.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(java.lang.String aDescription)
Sets the description of this TypePriorities declaration.
|
void |
setImports(Import[] aImports)
Sets the imports declared by this TypePriorities declaration.
|
void |
setName(java.lang.String aName)
Sets the name of this TypePriorities declaration.
|
void |
setPriorityLists(TypePriorityList[] aPriorityLists)
Sets the
TypePriorityLists that define the priorities. |
void |
setVendor(java.lang.String aVendor)
Sets the vendor of this TypePriorities declaration.
|
void |
setVersion(java.lang.String aVersion)
Sets the version number of this TypePriorities declaration.
|
protected void |
writePropertyAsElement(PropertyXmlInfo aPropInfo,
java.lang.String aNamespace,
org.xml.sax.ContentHandler aContentHandler)
Utility method used to write a property out as an XML element.
|
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, writeMapPropertyToXmlfinalize, getClass, notify, notifyAll, wait, wait, waitequals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXMLpublic java.lang.String getName()
TypePrioritiesgetName in interface TypePrioritiesorg.apache.uima.resource.ResourceMetaData#getName()public void setName(java.lang.String aName)
TypePrioritiessetName in interface TypePrioritiesaName - the name of this TypePriorities declarationorg.apache.uima.resource.ResourceMetaData#setName(String)public java.lang.String getVersion()
TypePrioritiesgetVersion in interface TypePrioritiesorg.apache.uima.resource.ResourceMetaData#getVersion()public void setVersion(java.lang.String aVersion)
TypePrioritiessetVersion in interface TypePrioritiesaVersion - the version number of this TypePriorities declaration, as a Stringorg.apache.uima.resource.ResourceMetaData#setVersion(String)public java.lang.String getDescription()
TypePrioritiesgetDescription in interface TypePrioritiesorg.apache.uima.resource.ResourceMetaData#getDescription()public void setDescription(java.lang.String aDescription)
TypePrioritiessetDescription in interface TypePrioritiesaDescription - the description of this TypePriorities declarationorg.apache.uima.resource.ResourceMetaData#setDescription(String)public java.lang.String getVendor()
TypePrioritiesgetVendor in interface TypePrioritiesorg.apache.uima.resource.ResourceMetaData#getVendor()public void setVendor(java.lang.String aVendor)
TypePrioritiessetVendor in interface TypePrioritiesaVendor - the vendor of this TypePriorities declaration, as a String, null if none has been
specified.org.apache.uima.resource.ResourceMetaData#setVendor(String)public Import[] getImports()
TypePrioritiesgetImports in interface TypePrioritiespublic void setImports(Import[] aImports)
TypePrioritiessetImports in interface TypePrioritiesaImports - an array of imports declared by this TypePriorities declaration.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 prioritiesorg.apache.uima.analysis_engine.metadata.TypePriorities#getPriorityLists()public 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 prioritiesorg.apache.uima.analysis_engine.metadata.TypePriorities#setPriorityLists(org.apache.uima.analysis_engine.metadata.TypePriorityList[])public void addPriorityList(TypePriorityList aPriorityList)
TypePrioritiesTypePriorityList.addPriorityList in interface TypePrioritiesaPriorityList - the TypePriorityList to addorg.apache.uima.analysis_engine.metadata.TypePriorities#addPriorityList(org.apache.uima.analysis_engine.metadata.TypePriorityList)public TypePriorityList addPriorityList()
TypePrioritiesTypePriorityList and adds it to this object.addPriorityList in interface TypePrioritiesTypePriorityList, which can be modified by the callerorg.apache.uima.analysis_engine.metadata.TypePriorities#addPriorityList()public void removePriorityList(TypePriorityList aPriorityList)
TypePrioritiesTypePriorityList.removePriorityList in interface TypePrioritiesaPriorityList - the TypePriorityList to removeorg.apache.uima.analysis_engine.metadata.TypePriorities#removePriorityList(org.apache.uima.analysis_engine.metadata.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 invalidpublic 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(java.util.Collection<java.lang.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, java.lang.String aNamespace, org.xml.sax.ContentHandler aContentHandler) throws org.xml.sax.SAXException
MetaDataObject_implwritePropertyAsElement in class MetaDataObject_implaPropInfo - information on how to represent the property in XMLaNamespace - XML namespace URI for this objectaContentHandler - content handler to which this object will send events that describe its XML
representationorg.xml.sax.SAXExceptionpublic java.lang.Object clone()
MetaDataObjectMetaDataObject. This performs a "deep" copy by cloning
all attribute values that are also MetaDataObjects.clone in interface MetaDataObjectclone in class MetaDataObject_implMetaDataObjectorg.apache.uima.resource.MetaDataObject#clone()protected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implorg.apache.uima.resource.impl.MetaDataObject_impl#getXmlizationInfo()Copyright © 2013. All Rights Reserved.