java.lang.Object | |
↳ | org.apache.xerces.impl.xs.SchemaGrammar |
Known Direct Subclasses |
This class is to hold all schema component declaration that are declared within one namespace. The Grammar class this class extends contains what little commonality there is between XML Schema and DTD grammars. It's useful to distinguish grammar objects from other kinds of object when they exist in pools or caches.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SchemaGrammar.BuiltinSchemaGrammar | |||||||||||
SchemaGrammar.Schema4Annotations | A partial schema for schemas for validating annotations. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SG_Schema4Annotations | |||||||||||
SG_SchemaNS | |||||||||||
SG_XSI | |||||||||||
fAnySimpleType | |||||||||||
fAnyType |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
add one complex type decl: for later constraint checking
| |||||||||||
register one global attribute
| |||||||||||
register one global attribute group
| |||||||||||
register one global element
| |||||||||||
register one global group
| |||||||||||
register one global notation
| |||||||||||
register one global type
| |||||||||||
register one identity constraint
| |||||||||||
add a group redefined by restriction: for later constraint checking
| |||||||||||
[annotations]: a set of annotations if it exists, otherwise an empty
XSObjectList . | |||||||||||
Convenience method.
| |||||||||||
Convenience method.
| |||||||||||
[schema components]: a list of top-level components, i.e.
| |||||||||||
[document location]
| |||||||||||
Convenience method.
| |||||||||||
get one global attribute
| |||||||||||
get one global attribute group
| |||||||||||
get one global element
| |||||||||||
get one global group
| |||||||||||
get one global notation
| |||||||||||
get one global type
| |||||||||||
get the
XMLGrammarDescription associated with this
object
| |||||||||||
get one identity constraint
| |||||||||||
Convenience method.
| |||||||||||
Convenience method.
| |||||||||||
[schema namespace]
| |||||||||||
Returns this grammar's target namespace.
| |||||||||||
Convenience method.
| |||||||||||
get one identity constraint
| |||||||||||
Return an
XSModel that represents components in this schema
grammar. | |||||||||||
Return an
XSModel that represents components in this schema
grammar and the grammars in the grammars parameter,
any schema grammars that are imported by them directly or indirectly. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.xerces.xni.grammars.Grammar
| |||||||||||
From interface
org.apache.xerces.xni.grammars.XSGrammar
| |||||||||||
From interface
org.apache.xerces.xs.XSNamespaceItem
|
Default constructor.
grammarDesc | the XMLGrammarDescription corresponding to this objec at the least a systemId should always be known. |
---|---|
symbolTable | needed for annotation support |
add one complex type decl: for later constraint checking
register one global attribute group
register one identity constraint
add a group redefined by restriction: for later constraint checking
[annotations]: a set of annotations if it exists, otherwise an empty
XSObjectList
.
Convenience method. Returns a top-level attribute declaration.
name | The name of the declaration. |
---|
Convenience method. Returns a top-level attribute group definition.
name | The name of the definition. |
---|
[schema components]: a list of top-level components, i.e. element declarations, attribute declarations, etc.
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. |
---|
objectType
or an empty XSNamedMap
if no
such definitions exist.
Convenience method. Returns a top-level element declaration.
name | The name of the declaration. |
---|
get one global attribute group
get the XMLGrammarDescription
associated with this
object
Convenience method. Returns a top-level model group definition.
name | The name of the definition. |
---|
Convenience method. Returns a top-level notation declaration.
name | The name of the declaration. |
---|
Convenience method. Returns a top-level simple or complex type definition.
name | The name of the definition. |
---|
XSTypeDefinition
or null if such definition
does not exist.
get one identity constraint
Return an XSModel
that represents components in this schema
grammar.
XSModel
representing this schema grammar
Return an XSModel
that represents components in this schema
grammar and the grammars in the grammars
parameter,
any schema grammars that are imported by them directly or indirectly.
XSModel
representing these schema grammars