|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.metadata.impl.TypePriorities_impl
public class TypePriorities_impl
Reference implementation of TypePriorities.
| Constructor Summary | |
|---|---|
TypePriorities_impl()
|
|
| Method Summary | |
|---|---|
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. |
| 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 |
|---|
public TypePriorities_impl()
| Method Detail |
|---|
public java.lang.String getName()
TypePriorities
getName in interface TypePrioritiesorg.apache.uima.resource.ResourceMetaData#getName()public void setName(java.lang.String aName)
TypePriorities
setName in interface TypePrioritiesaName - the name of this TypePriorities declarationorg.apache.uima.resource.ResourceMetaData#setName(String)public java.lang.String getVersion()
TypePriorities
getVersion in interface TypePrioritiesorg.apache.uima.resource.ResourceMetaData#getVersion()public void setVersion(java.lang.String aVersion)
TypePriorities
setVersion in interface TypePrioritiesaVersion - the version number of this TypePriorities declaration, as a Stringorg.apache.uima.resource.ResourceMetaData#setVersion(String)public java.lang.String getDescription()
TypePriorities
getDescription in interface TypePrioritiesorg.apache.uima.resource.ResourceMetaData#getDescription()public void setDescription(java.lang.String aDescription)
TypePriorities
setDescription in interface TypePrioritiesaDescription - the description of this TypePriorities declarationorg.apache.uima.resource.ResourceMetaData#setDescription(String)public java.lang.String getVendor()
TypePriorities
getVendor in interface TypePrioritiesorg.apache.uima.resource.ResourceMetaData#getVendor()public void setVendor(java.lang.String aVendor)
TypePriorities
setVendor 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()
TypePriorities
getImports in interface TypePrioritiespublic void setImports(Import[] aImports)
TypePriorities
setImports 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 invalid
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 invalid
public 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 invalid
protected void writePropertyAsElement(PropertyXmlInfo aPropInfo,
java.lang.String aNamespace,
org.xml.sax.ContentHandler aContentHandler)
throws org.xml.sax.SAXException
MetaDataObject_impl
writePropertyAsElement 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
representation
org.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_impl
getXmlizationInfo in class MetaDataObject_implorg.apache.uima.resource.impl.MetaDataObject_impl#getXmlizationInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||