org.apache.xerces.impl.xs
public class XSModelImpl extends Object implements XSModel
Version: $Id: XSModelImpl.java,v 1.18 2005/05/25 04:24:40 mrglavas Exp $
Constructor Summary | |
---|---|
XSModelImpl(SchemaGrammar[] grammars)
Construct an XSModelImpl, by storing some grammars and grammars imported
by them to this object.
|
Method Summary | |
---|---|
XSObjectList | getAnnotations()
{annotations} A set of annotations. |
XSAttributeDeclaration | getAttributeDeclaration(String name, String namespace)
Convenience method. |
XSAttributeGroupDefinition | getAttributeGroup(String name, String namespace)
Convenience method. |
XSNamedMap | getComponents(short objectType)
Returns a list of top-level components, i.e. element declarations,
attribute declarations, etc. |
XSNamedMap | getComponentsByNamespace(short objectType, String namespace)
Convenience method. |
XSElementDeclaration | getElementDeclaration(String name, String namespace)
Convenience method. |
XSModelGroupDefinition | getModelGroupDefinition(String name, String namespace)
Convenience method. |
XSNamespaceItemList | getNamespaceItems() |
StringList | getNamespaces()
Convenience method. |
XSNotationDeclaration | getNotationDeclaration(String name, String namespace) |
XSObjectList | getSubstitutionGroup(XSElementDeclaration head)
REVISIT: to expose substitution group of a given element.
|
XSTypeDefinition | getTypeDefinition(String name, String namespace)
Convenience method. |
boolean | hasIDConstraints()
REVISIT: to expose identity constraints from XSModel.
|
Parameters: grammars the array of schema grammars
Parameters: name The name of the declaration. namespace The namespace of the definition, otherwise null.
Returns: A top-level attribute declaration or null if such declaration does not exist.
Parameters: name The name of the definition. namespace The namespace of the definition, otherwise null.
Returns: A top-level attribute group definition or null if such definition does not exist.
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.
Returns: A list of top-level definitions of the specified type in
objectType
or an empty XSNamedMap
if no
such definitions exist.
Parameters: objectType The type of the declaration, i.e.
ELEMENT_DECLARATION
. namespace The namespace to which the declaration belongs or
null
(for components with no target namespace).
Returns: A list of top-level definitions of the specified type in
objectType
and defined in the specified
namespace
or an empty XSNamedMap
.
Parameters: name The name of the declaration. namespace The namespace of the definition, otherwise null.
Returns: A top-level element declaration or null if such declaration does not exist.
Parameters: name The name of the definition. namespace The namespace of the definition, otherwise null.
Returns: A top-level model group definition definition or null if such definition does not exist.
Returns: A list of all namespaces that belong to this schema or
null
if all components don't have a targetNamespace.
See Also: org.apache.xerces.xs.XSModel#getNotationDeclaration(String, String)
Parameters: name The name of the definition. namespace The namespace of the definition, otherwise null.
Returns: An XSTypeDefinition
or null if such definition
does not exist.