|
||||||||||
| 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.TypeSystemDescription_impl
public class TypeSystemDescription_impl
Reference implementation of TypeSystemDescription.
| Constructor Summary | |
|---|---|
TypeSystemDescription_impl()
Creates a new TypeSystemDescription_impl. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject |
|---|
clone, 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 TypeSystemDescription_impl()
| Method Detail |
|---|
public java.lang.String getName()
TypeSystemDescription
getName in interface TypeSystemDescriptionorg.apache.uima.resource.ResourceMetaData#getName()public void setName(java.lang.String aName)
TypeSystemDescription
setName in interface TypeSystemDescriptionaName - the name of this Type Systemorg.apache.uima.resource.ResourceMetaData#setName(String)public java.lang.String getVersion()
TypeSystemDescription
getVersion in interface TypeSystemDescriptionorg.apache.uima.resource.ResourceMetaData#getVersion()public void setVersion(java.lang.String aVersion)
TypeSystemDescription
setVersion in interface TypeSystemDescriptionaVersion - 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 TypeSystemDescriptionorg.apache.uima.resource.ResourceMetaData#getDescription()public void setDescription(java.lang.String aDescription)
TypeSystemDescription
setDescription in interface TypeSystemDescriptionaDescription - the description of this Type Systemorg.apache.uima.resource.ResourceMetaData#setDescription(String)public java.lang.String getVendor()
TypeSystemDescription
getVendor in interface TypeSystemDescriptionorg.apache.uima.resource.ResourceMetaData#getVendor()public void setVendor(java.lang.String aVendor)
TypeSystemDescription
setVendor 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()
TypeSystemDescription
getImports in interface TypeSystemDescriptionpublic void setImports(Import[] aImports)
TypeSystemDescription
setImports in interface TypeSystemDescriptionaImports - an array of imports declared by this type system.public TypeDescription[] getTypes()
TypeSystemDescription
getTypes in interface TypeSystemDescriptionorg.apache.uima.cas.TypeSystemDescription#getTypes()public void setTypes(TypeDescription[] aTypes)
TypeSystemDescription
setTypes 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)
TypeSystemDescription
addType in interface TypeSystemDescriptionaTypeName - name of Type to addaDescription - verbose description of this TypeaSupertypeName - name of supertype for the new Type
org.apache.uima.cas.TypeSystemDescription#addType(String, String, String)public TypeDescription getType(java.lang.String aTypeName)
TypeSystemDescription
getType in interface TypeSystemDescriptionaTypeName - name of Type to retrieve
null 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 invalid
public 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 invalid
public 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_impl
getXmlizationInfo in class MetaDataObject_impl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||