java.lang.Object | |
↳ | org.apache.xerces.dom.ASModelImpl |
To begin with, an abstract schema is a generic structure that could
contain both internal and external subsets. An ASModel
is an
abstract object that could map to a DTD , an XML Schema , a database
schema, etc. An ASModel
could represent either an internal
or an external subset; hence an abstract schema could be composed of an
ASModel
representing the internal subset and an
ASModel
representing the external subset. Note that the
ASModel
representing the external subset could consult the
ASModel
representing the internal subset. Furthermore, the
ASModel
representing the internal subset could be set to
null by the setInternalAS
method as a mechanism for
"removal". In addition, only one ASModel
representing the
external subset can be specified as "active" and it is possible that none
are "active". Finally, the ASModel
contains the factory
methods needed to create a various types of ASObjects like
ASElementDeclaration
, ASAttributeDeclaration
,
etc.
See also the Document Object Model (DOM) Level 3 Abstract Schemas and Load and Save Specification.@deprecated
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.apache.xerces.dom3.as.ASObject
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fASModels | |||||||||||
fGrammar |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method will allow the nesting or "importation" of ASModels.
| |||||||||||
Creates a copy of this
ASObject . | |||||||||||
Creates an attribute declaration.
| |||||||||||
Creates an object which describes part of an
ASElementDeclaration 's content model. | |||||||||||
Creates an element declaration for the element type specified.
| |||||||||||
Creates an ASEntityDeclaration.
| |||||||||||
Creates a new notation declaration.
| |||||||||||
To retrieve a list of nested ASModels without reference to names.
| |||||||||||
The hint to locating an ASModel.
| |||||||||||
The URI reference.
| |||||||||||
A code representing the underlying object as defined above.
| |||||||||||
Instead of returning an all-in-one
ASObject with
ASModel methods, have discernible top-level/"global"
attribute declarations. | |||||||||||
If
usage is EXTERNAL_SUBSET or NOT_USED, and the
ASModel is simply a container of other ASModels. | |||||||||||
Instead of returning an all-in-one
ASObject with
ASModel methods, have discernible top-level/"global
content model declarations. | |||||||||||
Instead of returning an all-in-one
ASObject with
ASModel methods, have discernible top-level/"global"
element declarations. | |||||||||||
Instead of returning an all-in-one
ASObject with
ASModel methods, have discernible top-level/"global"
entity declarations. | |||||||||||
true if this ASModel defines the document
structure in terms of namespaces and local names ; false
if the document structure is defined only in terms of
QNames . | |||||||||||
Returns the local part of the qualified name of this
ASObject . | |||||||||||
The namespace URI of this node, or
null if it is
unspecified. | |||||||||||
The
name of this ASObject depending on the
ASObject type. | |||||||||||
Instead of returning an all-in-one
ASObject with
ASModel methods, have discernible top-level/"global"
notation declarations. | |||||||||||
The
ASModel object associated with this
ASObject . | |||||||||||
The namespace prefix of this node, or
null if it is
unspecified. | |||||||||||
0 if used internally, 1 if used externally, 2 if not all.
| |||||||||||
Imports
ASObject into ASModel. | |||||||||||
Inserts
ASObject into ASModel. | |||||||||||
Removes only the specified
ASModel from the list of
ASModel s. | |||||||||||
The hint to locating an ASModel.
| |||||||||||
The URI reference.
| |||||||||||
Returns the local part of the qualified name of this
ASObject . | |||||||||||
The namespace URI of this node, or
null if it is
unspecified. | |||||||||||
The
name of this ASObject depending on the
ASObject type. | |||||||||||
The
ASModel object associated with this
ASObject . | |||||||||||
The namespace prefix of this node, or
null if it is
unspecified. | |||||||||||
Determines if an
ASModel itself is valid, i.e., confirming
that it's well-formed and valid per its own formal grammar. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.xerces.dom3.as.ASModel
| |||||||||||
From interface
org.apache.xerces.dom3.as.ASObject
|
This method will allow the nesting or "importation" of ASModels.
abstractSchema | ASModel to be set. Subsequent calls will nest
the ASModels within the specified ownerASModel .
|
---|
Creates a copy of this ASObject
. See text for
cloneNode
off of Node
but substitute AS
functionality.
deep | Setting the deep flag on, causes the whole
subtree to be duplicated. Setting it to false only
duplicates its immediate child nodes. |
---|
ASObject
.
Creates an attribute declaration.
namespaceURI | The namespace URI of the attribute being declared. |
---|---|
name | The name of the attribute. The format of the name could be an NCName as defined by XML Namespaces or a Name as defined by XML 1.0; it's ASModel-dependent. |
ASAttributeDeclaration
object with
appropriate attributes set by input parameters.DOMException | INVALID_CHARACTER_ERR: Raised if the input name
parameter contains an illegal character.
|
---|
Creates an object which describes part of an
ASElementDeclaration
's content model.
minOccurs | The minimum occurrence for the subModels of this
ASContentModel . |
---|---|
maxOccurs | The maximum occurrence for the subModels of this
ASContentModel . |
operator | operator of type AS_CHOICE ,
AS_SEQUENCE , AS_ALL or
AS_NONE . |
ASContentModel
object.DOMASException | A DOMASException, e.g., minOccurs > maxOccurs .
|
---|
Creates an element declaration for the element type specified.
namespaceURI | The namespace URI of the element type
being declared. |
---|---|
name | The name of the element. The format of the name could be an NCName as defined by XML Namespaces or a Name as defined by XML 1.0; it's ASModel-dependent. |
ASElementDeclaration
object with
name
attribute set to tagname
and
namespaceURI
set to systemId
. Other
attributes of the element declaration are set through
ASElementDeclaration
interface methods.DOMException | INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. |
---|
Creates an ASEntityDeclaration.
name | The name of the entity being declared. |
---|
ASEntityDeclaration
object with
entityName
attribute set to name.DOMException | INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. |
---|
Creates a new notation declaration.
namespaceURI | The namespace URI of the notation being declared. |
---|---|
name | The name of the notation. The format of the name could be an NCName as defined by XML Namespaces or a Name as defined by XML 1.0; it's ASModel-dependent. |
systemId | The system identifier for the notation declaration. |
publicId | The public identifier for the notation declaration. |
ASNotationDeclaration
object with
notationName
attribute set to name
and
publicId
and systemId
set to the
corresponding fields.DOMException | INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. |
---|
To retrieve a list of nested ASModels without reference to names.
A code representing the underlying object as defined above.
Instead of returning an all-in-one ASObject
with
ASModel
methods, have discernible top-level/"global"
attribute declarations. If one attempts to add, set, or remove a node
type other than the intended one, a hierarchy exception (or
equivalent is thrown).
If usage
is EXTERNAL_SUBSET or NOT_USED, and the
ASModel
is simply a container of other ASModels.
Instead of returning an all-in-one ASObject
with
ASModel
methods, have discernible top-level/"global
content model declarations. If one attempts to add, set, or remove a
node type other than the intended one, a hierarchy exception (or
equivalent is thrown).
Instead of returning an all-in-one ASObject
with
ASModel
methods, have discernible top-level/"global"
element declarations. If one attempts to add, set, or remove a node
type other than the intended one, a hierarchy exception (or
equivalent is thrown).
Instead of returning an all-in-one ASObject
with
ASModel
methods, have discernible top-level/"global"
entity declarations. If one attempts to add, set, or remove a node
type other than the intended one, a hierarchy exception (or
equivalent is thrown).
true
if this ASModel
defines the document
structure in terms of namespaces and local names ; false
if the document structure is defined only in terms of
QNames
.
The namespace URI of this node, or null
if it is
unspecified. defines how a namespace URI is attached to schema
components.
Instead of returning an all-in-one ASObject
with
ASModel
methods, have discernible top-level/"global"
notation declarations. If one attempts to add, set, or remove a node
type other than the intended one, a hierarchy exception (or
equivalent is thrown).
The ASModel
object associated with this
ASObject
. For a node of type AS_MODEL
, this
is null
.
0 if used internally, 1 if used externally, 2 if not all. An exception will be raised if it is incompatibly shared or in use as an internal subset.
Imports ASObject
into ASModel.
asobject | ASObject to be imported.
|
---|
Inserts ASObject
into ASModel.
asobject | ASObject to be inserted.
|
---|
Removes only the specified ASModel
from the list of
ASModel
s.
as | AS to be removed. |
---|
Returns the local part of the qualified name of this
ASObject
.
The namespace URI of this node, or null
if it is
unspecified. defines how a namespace URI is attached to schema
components.
The ASModel
object associated with this
ASObject
. For a node of type AS_MODEL
, this
is null
.
The namespace prefix of this node, or null
if it is
unspecified.
Determines if an ASModel
itself is valid, i.e., confirming
that it's well-formed and valid per its own formal grammar.
true
if the ASModel
is valid,
false
otherwise.