| java.lang.Object org.apache.xerces.impl.xs.XSModelImpl
XSModelImpl | public class XSModelImpl implements XSModel(Code) | | Implements XSModel: a read-only interface that represents an XML Schema,
which could be components from different namespaces.
author: Sandy Gao, IBM version: $Id: XSModelImpl.java 446734 2006-09-15 20:51:23Z mrglavas $ |
Constructor Summary | |
public | XSModelImpl(SchemaGrammar[] grammars) Construct an XSModelImpl, by storing some grammars and grammars imported
by them to this object. |
XSModelImpl | public XSModelImpl(SchemaGrammar[] grammars)(Code) | | Construct an XSModelImpl, by storing some grammars and grammars imported
by them to this object.
Parameters: grammars - the array of schema grammars |
getAnnotations | public synchronized XSObjectList getAnnotations()(Code) | | {annotations} A set of annotations.
|
getAttributeDeclaration | public XSAttributeDeclaration getAttributeDeclaration(String name, String namespace)(Code) | | Convenience method. Returns a top-level attribute declaration.
Parameters: name - The name of the declaration. Parameters: namespace - The namespace of the definition, otherwise null. A top-level attribute declaration or null if such declarationdoes not exist. |
getAttributeGroup | public XSAttributeGroupDefinition getAttributeGroup(String name, String namespace)(Code) | | Convenience method. Returns a top-level attribute group definition.
Parameters: name - The name of the definition. Parameters: namespace - The namespace of the definition, otherwise null. A top-level attribute group definition or null if suchdefinition does not exist. |
getComponents | public synchronized XSNamedMap getComponents(short objectType)(Code) | | Returns a list of top-level components, i.e. element declarations,
attribute declarations, etc.
Parameters: objectType - The type of the declaration, i.e. ELEMENT_DECLARATION . Note that XSTypeDefinition.SIMPLE_TYPE and XSTypeDefinition.COMPLEX_TYPE can also be used as the objectType to retrieve only complex types or simple types, instead of all types. A list of top-level definitions of the specified type in objectType or an empty XSNamedMap if no such definitions exist. |
getComponentsByNamespace | public synchronized XSNamedMap getComponentsByNamespace(short objectType, String namespace)(Code) | | Convenience method. Returns a list of top-level component declarations
that are defined within the specified namespace, i.e. element
declarations, attribute declarations, etc.
Parameters: objectType - The type of the declaration, i.e. ELEMENT_DECLARATION . Parameters: namespace - The namespace to which the declaration belongs or null (for components with no target namespace). A list of top-level definitions of the specified type in objectType and defined in the specified namespace or an empty XSNamedMap . |
getElementDeclaration | public XSElementDeclaration getElementDeclaration(String name, String namespace)(Code) | | Convenience method. Returns a top-level element declaration.
Parameters: name - The name of the declaration. Parameters: namespace - The namespace of the definition, otherwise null. A top-level element declaration or null if such declarationdoes not exist. |
getModelGroupDefinition | public XSModelGroupDefinition getModelGroupDefinition(String name, String namespace)(Code) | | Convenience method. Returns a top-level model group definition.
Parameters: name - The name of the definition. Parameters: namespace - The namespace of the definition, otherwise null. A top-level model group definition definition or null if suchdefinition does not exist. |
getNamespaces | public StringList getNamespaces()(Code) | | Convenience method. Returns a list of all namespaces that belong to
this schema.
A list of all namespaces that belong to this schema ornull if all components don't have a targetNamespace. |
getTypeDefinition | public XSTypeDefinition getTypeDefinition(String name, String namespace)(Code) | | Convenience method. Returns a top-level simple or complex type
definition.
Parameters: name - The name of the definition. Parameters: namespace - The namespace of the definition, otherwise null. An XSTypeDefinition or null if such definitiondoes not exist. |
hasIDConstraints | public boolean hasIDConstraints()(Code) | | REVISIT: to expose identity constraints from XSModel.
For now, we only expose whether there are any IDCs.
We also need to add these methods to the public
XSModel interface.
|
|
|