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:
  • Constructor Details

    • TypeSystemDescription_impl

      public TypeSystemDescription_impl()
      Creates a new TypeSystemDescription_impl.
  • Method Details

    • getName

      public String getName()
      Description copied from interface: TypeSystemDescription
      Gets the name of this Type System.
      Specified by:
      getName in interface TypeSystemDescription
      Returns:
      the name of this Type System, null if none has been specified.
    • setName

      public void setName(String aName)
      Description copied from interface: TypeSystemDescription
      Sets the name of this Type System.
      Specified by:
      setName in interface TypeSystemDescription
      Parameters:
      aName - the name of this Type System
    • getVersion

      public String getVersion()
      Description copied from interface: TypeSystemDescription
      Gets the version number of this Type System.
      Specified by:
      getVersion in interface TypeSystemDescription
      Returns:
      the version number of this Type System, as a String, null if none has been specified.
    • setVersion

      public void setVersion(String aVersion)
      Description copied from interface: TypeSystemDescription
      Sets the version number of this Type System.
      Specified by:
      setVersion in interface TypeSystemDescription
      Parameters:
      aVersion - the version number of this Type System, as a String
    • getDescription

      public String getDescription()
      Description copied from interface: TypeSystemDescription
      Gets the description of this Type System.
      Specified by:
      getDescription in interface TypeSystemDescription
      Returns:
      the description of this Type System, null if none has been specified.
    • setDescription

      public void setDescription(String aDescription)
      Description copied from interface: TypeSystemDescription
      Sets the description of this Type System.
      Specified by:
      setDescription in interface TypeSystemDescription
      Parameters:
      aDescription - the description of this Type System
    • getVendor

      public String getVendor()
      Description copied from interface: TypeSystemDescription
      Gets the vendor of this Type System.
      Specified by:
      getVendor in interface TypeSystemDescription
      Returns:
      the vendor of this Type System, as a String
    • setVendor

      public void setVendor(String aVendor)
      Description copied from interface: TypeSystemDescription
      Sets the vendor of this Type System.
      Specified by:
      setVendor in interface TypeSystemDescription
      Parameters:
      aVendor - the vendor of this Type System, as a String, null if none has been specified.
    • getImports

      public Import[] getImports()
      Description copied from interface: TypeSystemDescription
      Gets the imports declared by this Type System.
      Specified by:
      getImports in interface TypeSystemDescription
      Returns:
      an array of imports declared by this type system.
    • setImports

      public void setImports(Import... aImports)
      Description copied from interface: TypeSystemDescription
      Sets the imports declared by this Type System.
      Specified by:
      setImports in interface TypeSystemDescription
      Parameters:
      aImports - an array of imports declared by this type system.
    • getTypes

      public TypeDescription[] getTypes()
      Description copied from interface: TypeSystemDescription
      Gets descriptions of all Types in this TypeSystem fragment.
      Specified by:
      getTypes in interface TypeSystemDescription
      Returns:
      descriptions of all Types in this TypeSystem fragment
    • setTypes

      public void setTypes(TypeDescription... aTypes)
      Description copied from interface: TypeSystemDescription
      Sets the descriptions of all Types in this TypeSystem fragment.
      Specified by:
      setTypes in interface TypeSystemDescription
      Parameters:
      aTypes - descriptions of all Types in this TypeSystem fragment
    • addType

      public TypeDescription addType(String aTypeName, String aDescription, String aSupertypeName)
      Description copied from interface: TypeSystemDescription
      Adds a Type to this TypeSystem fragment.
      Specified by:
      addType in interface TypeSystemDescription
      Parameters:
      aTypeName - name of Type to add
      aDescription - verbose description of this Type
      aSupertypeName - name of supertype for the new Type
      Returns:
      description of the new Type
    • getType

      public TypeDescription getType(String aTypeName)
      Description copied from interface: TypeSystemDescription
      Retrieves a Type from this TypeSystem fragment.
      Specified by:
      getType in interface TypeSystemDescription
      Parameters:
      aTypeName - name of Type to retrieve
      Returns:
      the type with the specified name, null if no such type exists
    • resolveImports

      public void resolveImports() throws InvalidXMLException
      Description copied from interface: TypeSystemDescription
      Resolves any import declarations in this type system, adding the imported types directly onto this TypeSystemDescription's 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.
      Specified by:
      resolveImports in interface TypeSystemDescription
      Throws:
      InvalidXMLException - if either the import target does not exist or is invalid
    • resolveImports

      public void resolveImports(ResourceManager aResourceManager) throws InvalidXMLException
      Description copied from interface: TypeSystemDescription
      Resolves any import declarations in this type system, adding the imported types directly onto this TypeSystemDescription's 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.
      Specified by:
      resolveImports in interface TypeSystemDescription
      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 the ResourceManager.setDataPathElements(java.lang.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: TypeSystemDescription
      Resolves any import declarations in this type system, adding the imported types directly onto this TypeSystemDescription's 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.

      Specified by:
      resolveImports in interface TypeSystemDescription
      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 the ResourceManager.setDataPath(String) method.
      Throws:
      InvalidXMLException - if either the import target does not exist or is invalid
    • getXmlizationInfo

      protected XmlizationInfo getXmlizationInfo()
      Description copied from class: MetaDataObject_impl
      To be implemented by subclasses to return information describing how to represent this object in XML.
      Specified by:
      getXmlizationInfo in class MetaDataObject_impl
      Returns:
      information defining this object's XML representation