public class TypeSystemDescription_impl extends MetaDataObject_impl implements TypeSystemDescription
TypeSystemDescription
.MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.Serializer
serialContext
EMPTY_TYPE_SYSTEM_DESCRIPTIONS
Constructor and Description |
---|
TypeSystemDescription_impl()
Creates a new TypeSystemDescription_impl.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
addType(String aTypeName,
String aDescription,
String aSupertypeName)
Adds a Type to this TypeSystem fragment.
|
String |
getDescription()
Gets the description of this Type System.
|
Import[] |
getImports()
Gets the imports declared by this Type System.
|
String |
getName()
Gets the name of this Type System.
|
TypeDescription |
getType(String aTypeName)
Retrieves a Type from this TypeSystem fragment.
|
TypeDescription[] |
getTypes()
Gets descriptions of all Types in this TypeSystem fragment.
|
String |
getVendor()
Gets the vendor of this Type System.
|
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(Collection<String> aAlreadyImportedTypeSystemURLs,
ResourceManager aResourceManager)
Deprecated.
|
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(String aDescription)
Sets the description of this Type System.
|
void |
setImports(Import[] aImports)
Sets the imports declared by this Type System.
|
void |
setName(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(String aVendor)
Sets the vendor of this Type System.
|
void |
setVersion(String aVersion)
Sets the version number of this Type System.
|
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, 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 String getName()
TypeSystemDescription
getName
in interface TypeSystemDescription
ResourceMetaData.getName()
public void setName(String aName)
TypeSystemDescription
setName
in interface TypeSystemDescription
aName
- the name of this Type SystemResourceMetaData.setName(String)
public String getVersion()
TypeSystemDescription
getVersion
in interface TypeSystemDescription
ResourceMetaData.getVersion()
public void setVersion(String aVersion)
TypeSystemDescription
setVersion
in interface TypeSystemDescription
aVersion
- the version number of this Type System, as a StringResourceMetaData.setVersion(String)
public String getDescription()
TypeSystemDescription
getDescription
in interface TypeSystemDescription
ResourceMetaData.getDescription()
public void setDescription(String aDescription)
TypeSystemDescription
setDescription
in interface TypeSystemDescription
aDescription
- the description of this Type SystemResourceMetaData.setDescription(String)
public String getVendor()
TypeSystemDescription
getVendor
in interface TypeSystemDescription
ResourceMetaData.getVendor()
public void setVendor(String aVendor)
TypeSystemDescription
setVendor
in interface TypeSystemDescription
aVendor
- the vendor of this Type System, as a String, null if none has been specified.ResourceMetaData.setVendor(String)
public Import[] getImports()
TypeSystemDescription
getImports
in interface TypeSystemDescription
TypeSystemDescription.getImports()
public void setImports(Import[] aImports)
TypeSystemDescription
setImports
in interface TypeSystemDescription
aImports
- an array of imports declared by this type system.TypeSystemDescription.setImports(Import[])
public TypeDescription[] getTypes()
TypeSystemDescription
getTypes
in interface TypeSystemDescription
TypeSystemDescription.getTypes()
public void setTypes(TypeDescription[] aTypes)
TypeSystemDescription
setTypes
in interface TypeSystemDescription
aTypes
- descriptions of all Types in this TypeSystem fragmentTypeSystemDescription.setTypes(TypeDescription[])
public TypeDescription addType(String aTypeName, String aDescription, String aSupertypeName)
TypeSystemDescription
addType
in interface TypeSystemDescription
aTypeName
- name of Type to addaDescription
- verbose description of this TypeaSupertypeName
- name of supertype for the new TypeTypeSystemDescription.addType(String, String, String)
public TypeDescription getType(String aTypeName)
TypeSystemDescription
getType
in interface TypeSystemDescription
aTypeName
- name of Type to retrievenull
if no such type existsTypeSystemDescription.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 invalidTypeSystemDescription.resolveImports()
public 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 invalid@Deprecated public void resolveImports(Collection<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 © 2006–2022 The Apache Software Foundation. All rights reserved.