Deprecated
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.
| Modifier and Type | Field and Description |
|---|---|
| protected Vector | |
| protected SchemaGrammar | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addASModel(ASModel
ASModel to be set. Subsequent calls will nest
the ASModels within the specified abstractSchema)ownerASModel.Implements org.
Deprecated
as a consequence of
This method will allow the nesting or "importation" of ASModels.
ASModel being deprecated.
|
| public ASObject | Returns: ClonedASObject.Setting the deep)deep flag on, causes the whole
subtree to be duplicated. Setting it to false only
duplicates its immediate child nodes.Implements org.
Deprecated
as a consequence of
Creates a copy of this ASObject being deprecated.
ASObject.
|
| public ASAttributeDeclaration | Returns: A newASAttributeDeclaration object with
appropriate attributes set by input parameters.The namespace URI of the attribute being declared. namespaceURI, String 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. name)Implements org.
Deprecated
as a consequence of
Creates an attribute declaration.
ASAttributeDeclaration being deprecated.
|
| public ASContentModel | Returns: A newASContentModel object.The minimum occurrence for the subModels of this
minOccurs, int ASContentModel.The maximum occurrence for the subModels of this
maxOccurs, short ASContentModel.operator of type operator)AS_CHOICE,
AS_SEQUENCE, AS_ALL or
AS_NONE.Implements org.
Deprecated
as a consequence of
Creates an object which describes part of an
ASContentModel being deprecated.
ASElementDeclaration's content model.
|
| public ASElementDeclaration | Returns: A newASElementDeclaration object with
name attribute set to tagname and
namespaceURI set to systemId. Other
attributes of the element declaration are set through
ASElementDeclaration interface methods.The namespaceURI, String namespace URI of the element type
being declared.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. name)Implements org.
Deprecated
as a consequence of
Creates an element declaration for the element type specified.
ASElementDeclaration being deprecated.
|
| public ASEntityDeclaration | Returns: A newASEntityDeclaration object with
entityName attribute set to name.The name of the entity being declared. name)Implements org.
Deprecated
as a consequence of
Creates an ASEntityDeclaration.
ASEntityDeclaration being deprecated.
|
| public ASNotationDeclaration | Returns: A newASNotationDeclaration object with
notationName attribute set to name and
publicId and systemId set to the
corresponding fields.The namespace URI of the notation being declared. namespaceURI, String 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. name, String The system identifier for the notation declaration. systemId, String The public identifier for the notation declaration. publicId)Implements org.
Deprecated
as a consequence of
Creates a new notation declaration.
ASNotationDeclaration being deprecated.
|
| public String | |
| public String | |
| public ASObjectList | Returns: A list of ASModels.Implements org.
Deprecated
as a consequence of
To retrieve a list of nested ASModels without reference to names.
ASObjectList being deprecated.
|
| public short | getAsNodeType()
Implements org. |
| public ASNamedObjectMap | getAttributeDeclarations()
Implements org.
Deprecated
as a consequence of
Instead of returning an all-in-one ASNamedObjectMap being deprecated.
ASObject with
ASModel methods, have discernible top-level/"global"
attribute declarations.
|
| public boolean | getContainer()
If |
| public ASNamedObjectMap | getContentModelDeclarations()
Implements org.
Deprecated
as a consequence of
Instead of returning an all-in-one ASNamedObjectMap being deprecated.
ASObject with
ASModel methods, have discernible top-level/"global
content model declarations.
|
| public ASNamedObjectMap | getElementDeclarations()
Implements org.
Deprecated
as a consequence of
Instead of returning an all-in-one ASNamedObjectMap being deprecated.
ASObject with
ASModel methods, have discernible top-level/"global"
element declarations.
|
| public ASNamedObjectMap | getEntityDeclarations()
Implements org.
Deprecated
as a consequence of
Instead of returning an all-in-one ASNamedObjectMap being deprecated.
ASObject with
ASModel methods, have discernible top-level/"global"
entity declarations.
|
| public SchemaGrammar | |
| public Vector | |
| public boolean | getIsNamespaceAware()
Implements org. 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.
|
| public String | getLocalName()
Implements org. ASObject.
|
| public String | getNamespaceURI()
Implements org. null if it is
unspecified.
|
| public String | getNodeName()
Implements org. name of this ASObject depending on the
ASObject type.
|
| public ASNamedObjectMap | getNotationDeclarations()
Implements org.
Deprecated
as a consequence of
Instead of returning an all-in-one ASNamedObjectMap being deprecated.
ASObject with
ASModel methods, have discernible top-level/"global"
notation declarations.
|
| public ASModel | getOwnerASModel()
Implements org.
Deprecated
as a consequence of
The ASModel being deprecated.
ASModel object associated with this
ASObject.
|
| public String | getPrefix()
Implements org. null if it is
unspecified.
|
| public short | getUsageLocation()
Implements org. |
| public void | importASObject(ASObject
ASObject to be imported.
Deprecated
as a consequence of
Imports ASObject being deprecated.
ASObject into ASModel.
|
| public void | insertASObject(ASObject
ASObject to be inserted.
Deprecated
as a consequence of
Inserts ASObject being deprecated.
ASObject into ASModel.
|
| public void | removeAS(ASModel
AS to be removed. as)Implements org.
Deprecated
as a consequence of
Removes only the specified ASModel being deprecated.
ASModel from the list of
ASModels.
|
| public void | setAsHint(String asHint)
Implements org. |
| public void | setAsLocation(String asLocation)
Implements org. |
| public void | |
| public void | setLocalName(String localName)
Implements org. ASObject.
|
| public void | setNamespaceURI(String namespaceURI)
Implements org. null if it is
unspecified.
|
| public void | setNodeName(String nodeName)
Implements org. name of this ASObject depending on the
ASObject type.
|
| public void | setOwnerASModel(ASModel ownerASModel)
Implements org.
Deprecated
as a consequence of
The ASModel being deprecated.
ASModel object associated with this
ASObject.
|
| public void | setPrefix(String prefix)
Implements org. null if it is
unspecified.
|
| public boolean | Returns: true if the ASModel is valid,
false otherwise.Implements org. ASModel itself is valid, i.e., confirming
that it's well-formed and valid per its own formal grammar.
|
| fASModels | back to summary |
|---|---|
| protected Vector<E> fASModels | |
| fGrammar | back to summary |
|---|---|
| protected SchemaGrammar fGrammar | |
| fNamespaceAware | back to summary |
|---|---|
| pack-priv boolean fNamespaceAware | |
| ASModelImpl | back to summary |
|---|---|
| public ASModelImpl() | |
| ASModelImpl | back to summary |
|---|---|
| public ASModelImpl(boolean isNamespaceAware) | |
| addASModel | back to summary |
|---|---|
| public void addASModel(ASModel abstractSchema) Implements org. Deprecated as a consequence of This method will allow the nesting or "importation" of ASModels.
| |
| cloneASObject | back to summary |
|---|---|
| public ASObject cloneASObject(boolean deep) Implements org. Deprecated as a consequence of Creates a copy of this
| |
| createASAttributeDeclaration | back to summary |
|---|---|
| public ASAttributeDeclaration createASAttributeDeclaration(String namespaceURI, String name) throws DOMException Implements org. Deprecated as a consequence of Creates an attribute declaration.
| |
| createASContentModel | back to summary |
|---|---|
| public ASContentModel createASContentModel(int minOccurs, int maxOccurs, short operator) throws DOMASException Implements org. Deprecated as a consequence of Creates an object which describes part of an
| |
| createASElementDeclaration | back to summary |
|---|---|
| public ASElementDeclaration createASElementDeclaration(String namespaceURI, String name) throws DOMException Implements org. Deprecated as a consequence of Creates an element declaration for the element type specified.
| |
| createASEntityDeclaration | back to summary |
|---|---|
| public ASEntityDeclaration createASEntityDeclaration(String name) throws DOMException Implements org. Deprecated as a consequence of Creates an ASEntityDeclaration.
| |
| createASNotationDeclaration | back to summary |
|---|---|
| public ASNotationDeclaration createASNotationDeclaration(String namespaceURI, String name, String systemId, String publicId) throws DOMException Implements org. Deprecated as a consequence of Creates a new notation declaration.
| |
| getAsHint | back to summary |
|---|---|
| public String getAsHint() Implements org. The hint to locating an ASModel. | |
| getAsLocation | back to summary |
|---|---|
| public String getAsLocation() Implements org. The URI reference. | |
| getASModels | back to summary |
|---|---|
| public ASObjectList getASModels() Implements org. Deprecated as a consequence of To retrieve a list of nested ASModels without reference to names.
| |
| getAsNodeType | back to summary |
|---|---|
| public short getAsNodeType() Implements org. A code representing the underlying object as defined above. | |
| getAttributeDeclarations | back to summary |
|---|---|
| public ASNamedObjectMap getAttributeDeclarations() Implements org. Deprecated as a consequence of Instead of returning an all-in-one | |
| getContainer | back to summary |
|---|---|
| public boolean getContainer() If | |
| getContentModelDeclarations | back to summary |
|---|---|
| public ASNamedObjectMap getContentModelDeclarations() Implements org. Deprecated as a consequence of Instead of returning an all-in-one | |
| getElementDeclarations | back to summary |
|---|---|
| public ASNamedObjectMap getElementDeclarations() Implements org. Deprecated as a consequence of Instead of returning an all-in-one | |
| getEntityDeclarations | back to summary |
|---|---|
| public ASNamedObjectMap getEntityDeclarations() Implements org. Deprecated as a consequence of Instead of returning an all-in-one | |
| getGrammar | back to summary |
|---|---|
| public SchemaGrammar getGrammar() | |
| getInternalASModels | back to summary |
|---|---|
| public Vector | |
| getIsNamespaceAware | back to summary |
|---|---|
| public boolean getIsNamespaceAware() Implements org.
| |
| getLocalName | back to summary |
|---|---|
| public String getLocalName() Implements org. Returns the local part of the qualified name of this
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI() Implements org. The namespace URI of this node, or | |
| getNodeName | back to summary |
|---|---|
| public String getNodeName() Implements org. The | |
| getNotationDeclarations | back to summary |
|---|---|
| public ASNamedObjectMap getNotationDeclarations() Implements org. Deprecated as a consequence of Instead of returning an all-in-one | |
| getOwnerASModel | back to summary |
|---|---|
| public ASModel getOwnerASModel() Implements org. Deprecated as a consequence of The | |
| getPrefix | back to summary |
|---|---|
| public String getPrefix() Implements org. The namespace prefix of this node, or | |
| getUsageLocation | back to summary |
|---|---|
| public short getUsageLocation() Implements org. 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. | |
| importASObject | back to summary |
|---|---|
| public void importASObject(ASObject asobject)
Deprecated as a consequence of Imports
| |
| insertASObject | back to summary |
|---|---|
| public void insertASObject(ASObject asobject)
Deprecated as a consequence of Inserts
| |
| removeAS | back to summary |
|---|---|
| public void removeAS(ASModel as) Implements org. Deprecated as a consequence of Removes only the specified
| |
| setAsHint | back to summary |
|---|---|
| public void setAsHint(String asHint) Implements org. The hint to locating an ASModel. | |
| setAsLocation | back to summary |
|---|---|
| public void setAsLocation(String asLocation) Implements org. The URI reference. | |
| setGrammar | back to summary |
|---|---|
| public void setGrammar(SchemaGrammar grammar) | |
| setLocalName | back to summary |
|---|---|
| public void setLocalName(String localName) Implements org. Returns the local part of the qualified name of this
| |
| setNamespaceURI | back to summary |
|---|---|
| public void setNamespaceURI(String namespaceURI) Implements org. The namespace URI of this node, or | |
| setNodeName | back to summary |
|---|---|
| public void setNodeName(String nodeName) Implements org. The | |
| setOwnerASModel | back to summary |
|---|---|
| public void setOwnerASModel(ASModel ownerASModel) Implements org. Deprecated as a consequence of The | |
| setPrefix | back to summary |
|---|---|
| public void setPrefix(String prefix) Implements org. The namespace prefix of this node, or | |
| validate | back to summary |
|---|---|
| public boolean validate() Implements org. Determines if an
| |