Class TypeSystemDescription_impl
java.lang.Object
org.apache.uima.resource.metadata.impl.MetaDataObject_impl
org.apache.uima.resource.metadata.impl.TypeSystemDescription_impl
- All Implemented Interfaces:
Serializable,Cloneable,MetaDataObject,TypeSystemDescription,XMLizable
public class TypeSystemDescription_impl
extends MetaDataObject_impl
implements TypeSystemDescription
Reference implementation of
TypeSystemDescription.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer -
Field Summary
Fields inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
serialContextFields inherited from interface org.apache.uima.resource.metadata.TypeSystemDescription
EMPTY_TYPE_SYSTEM_DESCRIPTIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a Type to this TypeSystem fragment.Gets the description of this Type System.Import[]Gets the imports declared by this Type System.getName()Gets the name of this Type System.Retrieves a Type from this TypeSystem fragment.getTypes()Gets descriptions of all Types in this TypeSystem fragment.Gets the vendor of this Type System.Gets the version number of this Type System.protected XmlizationInfoTo be implemented by subclasses to return information describing how to represent this object in XML.voidResolves any import declarations in this type system, adding the imported types directly onto this TypeSystemDescription'stypeslist.voidresolveImports(Collection<String> aAlreadyImportedTypeSystemURLs, ResourceManager aResourceManager) Deprecated.voidresolveImports(ResourceManager aResourceManager) Resolves any import declarations in this type system, adding the imported types directly onto this TypeSystemDescription'stypeslist.voidsetDescription(String aDescription) Sets the description of this Type System.voidsetImports(Import[] aImports) Sets the imports declared by this Type System.voidSets the name of this Type System.voidsetTypes(TypeDescription[] aTypes) Sets the descriptions of all Types in this TypeSystem fragment.voidSets the vendor of this Type System.voidsetVersion(String aVersion) Sets the version number of this Type System.Methods inherited from class org.apache.uima.resource.metadata.impl.MetaDataObject_impl
buildFromXMLElement, buildFromXMLElement, clone, equals, getAdditionalAttributes, getAttributeClass, getAttributeValue, getInfoset, getMatchingNode, getPropertyDescriptors, getPropertyXmlInfo, getRelativePathBase, getSerialContext, getSourceUrl, getSourceUrlString, getWrapperClass, getXMLAttributes, hashCode, isModifiable, listAttributes, readArrayPropertyValueFromXMLElement, readMapPropertyFromXml, readPropertyValueFromXMLElement, readUnknownPropertyValueFromXMLElement, resolveSettings, setAttributeValue, setInfoset, setSourceUrl, setSourceUrlIfNull, toString, toXML, toXML, toXML, toXML, valueIsNullOrEmptyArray, writeArrayPropertyAsElement, writeMapPropertyToXml, writePropertyAsElementMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlMethods inherited from interface org.apache.uima.util.XMLizable
buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML
-
Constructor Details
-
TypeSystemDescription_impl
public TypeSystemDescription_impl()Creates a new TypeSystemDescription_impl.
-
-
Method Details
-
getName
Description copied from interface:TypeSystemDescriptionGets the name of this Type System.- Specified by:
getNamein interfaceTypeSystemDescription- Returns:
- the name of this Type System, null if none has been specified.
- See Also:
-
setName
Description copied from interface:TypeSystemDescriptionSets the name of this Type System.- Specified by:
setNamein interfaceTypeSystemDescription- Parameters:
aName- the name of this Type System- See Also:
-
getVersion
Description copied from interface:TypeSystemDescriptionGets the version number of this Type System.- Specified by:
getVersionin interfaceTypeSystemDescription- Returns:
- the version number of this Type System, as a String, null if none has been specified.
- See Also:
-
setVersion
Description copied from interface:TypeSystemDescriptionSets the version number of this Type System.- Specified by:
setVersionin interfaceTypeSystemDescription- Parameters:
aVersion- the version number of this Type System, as a String- See Also:
-
getDescription
Description copied from interface:TypeSystemDescriptionGets the description of this Type System.- Specified by:
getDescriptionin interfaceTypeSystemDescription- Returns:
- the description of this Type System, null if none has been specified.
- See Also:
-
setDescription
Description copied from interface:TypeSystemDescriptionSets the description of this Type System.- Specified by:
setDescriptionin interfaceTypeSystemDescription- Parameters:
aDescription- the description of this Type System- See Also:
-
getVendor
Description copied from interface:TypeSystemDescriptionGets the vendor of this Type System.- Specified by:
getVendorin interfaceTypeSystemDescription- Returns:
- the vendor of this Type System, as a String
- See Also:
-
setVendor
Description copied from interface:TypeSystemDescriptionSets the vendor of this Type System.- Specified by:
setVendorin interfaceTypeSystemDescription- Parameters:
aVendor- the vendor of this Type System, as a String, null if none has been specified.- See Also:
-
getImports
Description copied from interface:TypeSystemDescriptionGets the imports declared by this Type System.- Specified by:
getImportsin interfaceTypeSystemDescription- Returns:
- an array of imports declared by this type system.
- See Also:
-
setImports
Description copied from interface:TypeSystemDescriptionSets the imports declared by this Type System.- Specified by:
setImportsin interfaceTypeSystemDescription- Parameters:
aImports- an array of imports declared by this type system.- See Also:
-
getTypes
Description copied from interface:TypeSystemDescriptionGets descriptions of all Types in this TypeSystem fragment.- Specified by:
getTypesin interfaceTypeSystemDescription- Returns:
- descriptions of all Types in this TypeSystem fragment
- See Also:
-
setTypes
Description copied from interface:TypeSystemDescriptionSets the descriptions of all Types in this TypeSystem fragment.- Specified by:
setTypesin interfaceTypeSystemDescription- Parameters:
aTypes- descriptions of all Types in this TypeSystem fragment- See Also:
-
addType
Description copied from interface:TypeSystemDescriptionAdds a Type to this TypeSystem fragment.- Specified by:
addTypein interfaceTypeSystemDescription- Parameters:
aTypeName- name of Type to addaDescription- verbose description of this TypeaSupertypeName- name of supertype for the new Type- Returns:
- description of the new Type
- See Also:
-
getType
Description copied from interface:TypeSystemDescriptionRetrieves a Type from this TypeSystem fragment.- Specified by:
getTypein interfaceTypeSystemDescription- Parameters:
aTypeName- name of Type to retrieve- Returns:
- the type with the specified name,
nullif no such type exists - See Also:
-
resolveImports
Description copied from interface:TypeSystemDescriptionResolves any import declarations in this type system, adding the imported types directly onto this TypeSystemDescription'stypeslist. The import elements are then deleted, so this results in a structure that is equivalent to the imported elements having been defined locally.- Specified by:
resolveImportsin interfaceTypeSystemDescription- Throws:
InvalidXMLException- if either the import target does not exist or is invalid- See Also:
-
resolveImports
Description copied from interface:TypeSystemDescriptionResolves any import declarations in this type system, adding the imported types directly onto this TypeSystemDescription'stypeslist. The import elements are then deleted, so this results in a structure that is equivalent to the imported elements having been defined locally.- Specified by:
resolveImportsin interfaceTypeSystemDescription- Parameters:
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 theResourceManager.setDataPath(String)method.- Throws:
InvalidXMLException- if either the import target does not exist or is invalid
-
resolveImports
@Deprecated public void resolveImports(Collection<String> aAlreadyImportedTypeSystemURLs, ResourceManager aResourceManager) throws InvalidXMLException Deprecated.Description copied from interface:TypeSystemDescriptionResolves any import declarations in this type system, adding the imported types directly onto this TypeSystemDescription'stypeslist. 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.
- Specified by:
resolveImportsin interfaceTypeSystemDescription- Parameters:
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 theResourceManager.setDataPath(String)method.- Throws:
InvalidXMLException- if either the import target does not exist or is invalid
-
getXmlizationInfo
Description copied from class:MetaDataObject_implTo be implemented by subclasses to return information describing how to represent this object in XML.- Specified by:
getXmlizationInfoin classMetaDataObject_impl- Returns:
- information defining this object's XML representation
-