Deprecated
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.
| 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.
Deprecated
as a consequence of
This method will allow the nesting or "importation" of ASModels.
ASModel being deprecated.
|
| 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)
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.
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)
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)
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)
Deprecated
as a consequence of
Creates a new notation declaration.
ASNotationDeclaration being deprecated.
|
| public String | |
| public String | |
| public ASObjectList | Returns: A list of ASModels.
Deprecated
as a consequence of
To retrieve a list of nested ASModels without reference to names.
ASObjectList being deprecated.
|
| public ASNamedObjectMap | getAttributeDeclarations()
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 ASNamedObjectMap | getContentModelDeclarations()
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()
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()
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 boolean | getIsNamespaceAware()
|
| public ASNamedObjectMap | getNotationDeclarations()
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 short | |
| public void | |
| public void | |
| public void | |
| public boolean | Returns: true if the ASModel is valid,
false otherwise.Determines if an |
| addASModel | back to summary |
|---|---|
| public void addASModel(ASModel abstractSchema)
Deprecated as a consequence of This method will allow the nesting or "importation" of ASModels.
| |
| createASAttributeDeclaration | back to summary |
|---|---|
| public ASAttributeDeclaration createASAttributeDeclaration(String namespaceURI, String name) throws DOMException
Deprecated as a consequence of Creates an attribute declaration.
| |
| createASContentModel | back to summary |
|---|---|
| public ASContentModel createASContentModel(int minOccurs, int maxOccurs, short operator) throws DOMASException
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
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
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
Deprecated as a consequence of Creates a new notation declaration.
| |
| getAsHint | back to summary |
|---|---|
| public String getAsHint() The hint to locating an ASModel. | |
| getAsLocation | back to summary |
|---|---|
| public String getAsLocation() The URI reference. | |
| getASModels | back to summary |
|---|---|
| public ASObjectList getASModels()
Deprecated as a consequence of To retrieve a list of nested ASModels without reference to names.
| |
| getAttributeDeclarations | back to summary |
|---|---|
| public ASNamedObjectMap getAttributeDeclarations()
Deprecated as a consequence of Instead of returning an all-in-one | |
| getContentModelDeclarations | back to summary |
|---|---|
| public ASNamedObjectMap getContentModelDeclarations()
Deprecated as a consequence of Instead of returning an all-in-one | |
| getElementDeclarations | back to summary |
|---|---|
| public ASNamedObjectMap getElementDeclarations()
Deprecated as a consequence of Instead of returning an all-in-one | |
| getEntityDeclarations | back to summary |
|---|---|
| public ASNamedObjectMap getEntityDeclarations()
Deprecated as a consequence of Instead of returning an all-in-one | |
| getIsNamespaceAware | back to summary |
|---|---|
| public boolean getIsNamespaceAware()
| |
| getNotationDeclarations | back to summary |
|---|---|
| public ASNamedObjectMap getNotationDeclarations()
Deprecated as a consequence of Instead of returning an all-in-one | |
| getUsageLocation | back to summary |
|---|---|
| public short getUsageLocation() 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. | |
| removeAS | back to summary |
|---|---|
| public void removeAS(ASModel as)
Deprecated as a consequence of Removes only the specified
| |
| setAsHint | back to summary |
|---|---|
| public void setAsHint(String asHint) The hint to locating an ASModel. | |
| setAsLocation | back to summary |
|---|---|
| public void setAsLocation(String asLocation) The URI reference. | |
| validate | back to summary |
|---|---|
| public boolean validate() Determines if an
| |