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, writePropertyAsElement
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
public TypeSystemDescription_impl()
public java.lang.String getName()
TypeSystemDescription
getName
in interface TypeSystemDescription
org.apache.uima.resource.ResourceMetaData#getName()
public void setName(java.lang.String aName)
TypeSystemDescription
setName
in interface TypeSystemDescription
aName
- the name of this Type Systemorg.apache.uima.resource.ResourceMetaData#setName(String)
public java.lang.String getVersion()
TypeSystemDescription
getVersion
in interface TypeSystemDescription
org.apache.uima.resource.ResourceMetaData#getVersion()
public void setVersion(java.lang.String aVersion)
TypeSystemDescription
setVersion
in interface TypeSystemDescription
aVersion
- the version number of this Type System, as a Stringorg.apache.uima.resource.ResourceMetaData#setVersion(String)
public java.lang.String getDescription()
TypeSystemDescription
getDescription
in interface TypeSystemDescription
org.apache.uima.resource.ResourceMetaData#getDescription()
public void setDescription(java.lang.String aDescription)
TypeSystemDescription
setDescription
in interface TypeSystemDescription
aDescription
- the description of this Type Systemorg.apache.uima.resource.ResourceMetaData#setDescription(String)
public java.lang.String getVendor()
TypeSystemDescription
getVendor
in interface TypeSystemDescription
org.apache.uima.resource.ResourceMetaData#getVendor()
public void setVendor(java.lang.String aVendor)
TypeSystemDescription
setVendor
in interface TypeSystemDescription
aVendor
- 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()
TypeSystemDescription
getImports
in interface TypeSystemDescription
public void setImports(Import[] aImports)
TypeSystemDescription
setImports
in interface TypeSystemDescription
aImports
- an array of imports declared by this type system.public TypeDescription[] getTypes()
TypeSystemDescription
getTypes
in interface TypeSystemDescription
org.apache.uima.cas.TypeSystemDescription#getTypes()
public void setTypes(TypeDescription[] aTypes)
TypeSystemDescription
setTypes
in interface TypeSystemDescription
aTypes
- 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)
TypeSystemDescription
addType
in interface TypeSystemDescription
aTypeName
- 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)
TypeSystemDescription
getType
in interface TypeSystemDescription
aTypeName
- 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
TypeSystemDescription
types
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 TypeSystemDescription
InvalidXMLException
- if either the import target does not exist or is invalidpublic void resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
TypeSystemDescription
types
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 TypeSystemDescription
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 invalidpublic void resolveImports(java.util.Collection<java.lang.String> aAlreadyImportedTypeSystemURLs, ResourceManager aResourceManager) throws InvalidXMLException
TypeSystemDescription
types
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 TypeSystemDescription
aAlreadyImportedTypeSystemURLs
- 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_impl
getXmlizationInfo
in class MetaDataObject_impl
Copyright © 2012. All Rights Reserved.