public class TypeSystemDescription_impl extends MetaDataObject_impl implements TypeSystemDescription
TypeSystemDescription.| Constructor and Description |
|---|
TypeSystemDescription_impl()
Creates a new TypeSystemDescription_impl.
|
| Modifier and Type | Method and Description |
|---|---|
TypeDescription |
addType(java.lang.String aTypeName,
java.lang.String aDescription,
java.lang.String aSupertypeName)
Adds a Type to this TypeSystem fragment.
|
java.lang.String |
getDescription()
Gets the description of this Type System.
|
Import[] |
getImports()
Gets the imports declared by this Type System.
|
java.lang.String |
getName()
Gets the name of this Type System.
|
TypeDescription |
getType(java.lang.String aTypeName)
Retrieves a Type from this TypeSystem fragment.
|
TypeDescription[] |
getTypes()
Gets descriptions of all Types in this TypeSystem fragment.
|
java.lang.String |
getVendor()
Gets the vendor of this Type System.
|
java.lang.String |
getVersion()
Gets the version number of this Type System.
|
protected XmlizationInfo |
getXmlizationInfo()
To be implemented by subclasses to return information describing how to represent this object
in XML.
|
void |
resolveImports()
Resolves any import declarations in this type system, adding the imported types directly onto
this TypeSystemDescription's
types list. |
void |
resolveImports(java.util.Collection<java.lang.String> aAlreadyImportedTypeSystemURLs,
ResourceManager aResourceManager)
Resolves any import declarations in this type system, adding the imported types directly onto
this TypeSystemDescription's
types list. |
void |
resolveImports(ResourceManager aResourceManager)
Resolves any import declarations in this type system, adding the imported types directly onto
this TypeSystemDescription's
types list. |
void |
setDescription(java.lang.String aDescription)
Sets the description of this Type System.
|
void |
setImports(Import[] aImports)
Sets the imports declared by this Type System.
|
void |
setName(java.lang.String aName)
Sets the name of this Type System.
|
void |
setTypes(TypeDescription[] aTypes)
Sets the descriptions of all Types in this TypeSystem fragment.
|
void |
setVendor(java.lang.String aVendor)
Sets the vendor of this Type System.
|
void |
setVersion(java.lang.String aVersion)
Sets the version number of this Type System.
|
buildFromXMLElement, buildFromXMLElement, clone, 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, writeMapPropertyToXml, writePropertyAsElementfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXMLpublic TypeSystemDescription_impl()
public java.lang.String getName()
TypeSystemDescriptiongetName in interface TypeSystemDescriptionorg.apache.uima.resource.ResourceMetaData#getName()public void setName(java.lang.String aName)
TypeSystemDescriptionsetName in interface TypeSystemDescriptionaName - the name of this Type Systemorg.apache.uima.resource.ResourceMetaData#setName(String)public java.lang.String getVersion()
TypeSystemDescriptiongetVersion in interface TypeSystemDescriptionorg.apache.uima.resource.ResourceMetaData#getVersion()public void setVersion(java.lang.String aVersion)
TypeSystemDescriptionsetVersion in interface TypeSystemDescriptionaVersion - the version number of this Type System, as a Stringorg.apache.uima.resource.ResourceMetaData#setVersion(String)public java.lang.String getDescription()
TypeSystemDescriptiongetDescription in interface TypeSystemDescriptionorg.apache.uima.resource.ResourceMetaData#getDescription()public void setDescription(java.lang.String aDescription)
TypeSystemDescriptionsetDescription in interface TypeSystemDescriptionaDescription - the description of this Type Systemorg.apache.uima.resource.ResourceMetaData#setDescription(String)public java.lang.String getVendor()
TypeSystemDescriptiongetVendor in interface TypeSystemDescriptionorg.apache.uima.resource.ResourceMetaData#getVendor()public void setVendor(java.lang.String aVendor)
TypeSystemDescriptionsetVendor in interface TypeSystemDescriptionaVendor - the vendor of this Type System, as a String, null if none has been specified.org.apache.uima.resource.ResourceMetaData#setVendor(String)public Import[] getImports()
TypeSystemDescriptiongetImports in interface TypeSystemDescriptionpublic void setImports(Import[] aImports)
TypeSystemDescriptionsetImports in interface TypeSystemDescriptionaImports - an array of imports declared by this type system.public TypeDescription[] getTypes()
TypeSystemDescriptiongetTypes in interface TypeSystemDescriptionorg.apache.uima.cas.TypeSystemDescription#getTypes()public void setTypes(TypeDescription[] aTypes)
TypeSystemDescriptionsetTypes in interface TypeSystemDescriptionaTypes - descriptions of all Types in this TypeSystem fragmentorg.apache.uima.cas.TypeSystemDescription#setTypes(TypeDescription[])public TypeDescription addType(java.lang.String aTypeName, java.lang.String aDescription, java.lang.String aSupertypeName)
TypeSystemDescriptionaddType in interface TypeSystemDescriptionaTypeName - name of Type to addaDescription - verbose description of this TypeaSupertypeName - name of supertype for the new Typeorg.apache.uima.cas.TypeSystemDescription#addType(String, String, String)public TypeDescription getType(java.lang.String aTypeName)
TypeSystemDescriptiongetType in interface TypeSystemDescriptionaTypeName - name of Type to retrievenull if no such type existsorg.apache.uima.analysis_engine.metadata.TypeSystemDescription#getType(java.lang.String)public void resolveImports()
throws InvalidXMLException
TypeSystemDescriptiontypes list. 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 TypeSystemDescriptionInvalidXMLException - if either the import target does not exist or is invalidpublic void resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
TypeSystemDescriptiontypes list. 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 TypeSystemDescriptionaResourceManager - the Resource Manager used to locate type systems imported by name. For example, the
path in which to locate these type systems 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> aAlreadyImportedTypeSystemURLs,
ResourceManager aResourceManager)
throws InvalidXMLException
TypeSystemDescriptiontypes list. 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 TypeSystemDescriptionaAlreadyImportedTypeSystemURLs - URLs of already imported type systems, so we don't import them again.aResourceManager - the Resource Manager used to locate type systems imported by name. For example, the
path in which to locate these type systems can be set via the
ResourceManager.setDataPath(String) method.InvalidXMLException - if either the import target does not exist or is invalidprotected XmlizationInfo getXmlizationInfo()
MetaDataObject_implgetXmlizationInfo in class MetaDataObject_implCopyright © 2013. All Rights Reserved.