public class TypeSystemDescription_impl extends MetaDataObject_impl implements TypeSystemDescription
TypeSystemDescription.MetaDataObject_impl.MetaDataAttr, MetaDataObject_impl.SerialContext, MetaDataObject_impl.SerializerserialContextEMPTY_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)
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(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, writePropertyAsElementfinalize, getClass, notify, notifyAll, wait, wait, waitclone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrlbuildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXMLpublic TypeSystemDescription_impl()
public String getName()
TypeSystemDescriptiongetName in interface TypeSystemDescriptionResourceMetaData.getName()public void setName(String aName)
TypeSystemDescriptionsetName in interface TypeSystemDescriptionaName - the name of this Type SystemResourceMetaData.setName(String)public String getVersion()
TypeSystemDescriptiongetVersion in interface TypeSystemDescriptionResourceMetaData.getVersion()public void setVersion(String aVersion)
TypeSystemDescriptionsetVersion in interface TypeSystemDescriptionaVersion - the version number of this Type System, as a StringResourceMetaData.setVersion(String)public String getDescription()
TypeSystemDescriptiongetDescription in interface TypeSystemDescriptionResourceMetaData.getDescription()public void setDescription(String aDescription)
TypeSystemDescriptionsetDescription in interface TypeSystemDescriptionaDescription - the description of this Type SystemResourceMetaData.setDescription(String)public String getVendor()
TypeSystemDescriptiongetVendor in interface TypeSystemDescriptionResourceMetaData.getVendor()public void setVendor(String aVendor)
TypeSystemDescriptionsetVendor in interface TypeSystemDescriptionaVendor - the vendor of this Type System, as a String, null if none has been specified.ResourceMetaData.setVendor(String)public Import[] getImports()
TypeSystemDescriptiongetImports in interface TypeSystemDescriptionTypeSystemDescription.getImports()public void setImports(Import[] aImports)
TypeSystemDescriptionsetImports in interface TypeSystemDescriptionaImports - an array of imports declared by this type system.TypeSystemDescription.setImports(Import[])public TypeDescription[] getTypes()
TypeSystemDescriptiongetTypes in interface TypeSystemDescriptionTypeSystemDescription.getTypes()public void setTypes(TypeDescription[] aTypes)
TypeSystemDescriptionsetTypes in interface TypeSystemDescriptionaTypes - descriptions of all Types in this TypeSystem fragmentTypeSystemDescription.setTypes(TypeDescription[])public TypeDescription addType(String aTypeName, String aDescription, String aSupertypeName)
TypeSystemDescriptionaddType in interface TypeSystemDescriptionaTypeName - 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)
TypeSystemDescriptiongetType in interface TypeSystemDescriptionaTypeName - name of Type to retrievenull if no such type existsTypeSystemDescription.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 invalidTypeSystemDescription.resolveImports()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 invalidpublic void resolveImports(Collection<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_implgetXmlizationInfo in class MetaDataObject_implCopyright © 2006–2021 The Apache Software Foundation. All rights reserved.