| org.apache.xerces.dom3.as.ASModel
All known Subclasses: org.apache.xerces.dom.ASModelImpl,
Method Summary | |
public void | addASModel(ASModel abstractSchema) This method will allow the nesting or "importation" of ASModels. | public ASAttributeDeclaration | createASAttributeDeclaration(String namespaceURI, String name) Creates an attribute declaration.
Parameters: namespaceURI - The namespace URI of the attribute being declared. Parameters: name - The name of the attribute. | public ASContentModel | createASContentModel(int minOccurs, int maxOccurs, short operator) Creates an object which describes part of an
ASElementDeclaration 's content model. | public ASElementDeclaration | createASElementDeclaration(String namespaceURI, String name) Creates an element declaration for the element type specified.
Parameters: namespaceURI - The namespace URI of the element type being declared. | public ASEntityDeclaration | createASEntityDeclaration(String name) Creates an ASEntityDeclaration. | public ASNotationDeclaration | createASNotationDeclaration(String namespaceURI, String name, String systemId, String publicId) Creates a new notation declaration. | public ASObjectList | getASModels() To retrieve a list of nested ASModels without reference to names. | public String | getAsHint() The hint to locating an ASModel. | public String | getAsLocation() The URI reference. | public ASNamedObjectMap | getAttributeDeclarations() Instead of returning an all-in-one ASObject with
ASModel methods, have discernible top-level/"global"
attribute declarations. | public ASNamedObjectMap | getContentModelDeclarations() Instead of returning an all-in-one ASObject with
ASModel methods, have discernible top-level/"global
content model declarations. | public ASNamedObjectMap | getElementDeclarations() Instead of returning an all-in-one ASObject with
ASModel methods, have discernible top-level/"global"
element declarations. | public ASNamedObjectMap | getEntityDeclarations() Instead of returning an all-in-one ASObject with
ASModel methods, have discernible top-level/"global"
entity declarations. | public boolean | getIsNamespaceAware() 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 ASNamedObjectMap | getNotationDeclarations() Instead of returning an all-in-one ASObject with
ASModel methods, have discernible top-level/"global"
notation declarations. | public short | getUsageLocation() 0 if used internally, 1 if used externally, 2 if not all. | public void | removeAS(ASModel as) Removes only the specified ASModel from the list of
ASModel s. | public void | setAsHint(String asHint) The hint to locating an ASModel. | public void | setAsLocation(String asLocation) The URI reference. | public boolean | validate() Determines if an ASModel itself is valid, i.e., confirming
that it's well-formed and valid per its own formal grammar. |
addASModel | public void addASModel(ASModel abstractSchema)(Code) | | This method will allow the nesting or "importation" of ASModels.
Parameters: abstractSchema - ASModel to be set. Subsequent calls will nest the ASModels within the specified ownerASModel . |
createASAttributeDeclaration | public ASAttributeDeclaration createASAttributeDeclaration(String namespaceURI, String name) throws DOMException(Code) | | Creates an attribute declaration.
Parameters: namespaceURI - The namespace URI of the attribute being declared. Parameters: 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. A new ASAttributeDeclaration object with appropriate attributes set by input parameters. exception: DOMException - INVALID_CHARACTER_ERR: Raised if the input name parameter contains an illegal character. |
createASContentModel | public ASContentModel createASContentModel(int minOccurs, int maxOccurs, short operator) throws DOMASException(Code) | | Creates an object which describes part of an
ASElementDeclaration 's content model.
Parameters: minOccurs - The minimum occurrence for the subModels of this ASContentModel . Parameters: maxOccurs - The maximum occurrence for the subModels of this ASContentModel . Parameters: operator - operator of type AS_CHOICE , AS_SEQUENCE , AS_ALL or AS_NONE . A new ASContentModel object. exception: DOMASException - A DOMASException, e.g., minOccurs > maxOccurs . |
createASElementDeclaration | public ASElementDeclaration createASElementDeclaration(String namespaceURI, String name) throws DOMException(Code) | | Creates an element declaration for the element type specified.
Parameters: namespaceURI - The namespace URI of the element type being declared. Parameters: 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. A new 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. exception: DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. |
createASEntityDeclaration | public ASEntityDeclaration createASEntityDeclaration(String name) throws DOMException(Code) | | Creates an ASEntityDeclaration.
Parameters: name - The name of the entity being declared. A new ASEntityDeclaration object with entityName attribute set to name. exception: DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. |
createASNotationDeclaration | public ASNotationDeclaration createASNotationDeclaration(String namespaceURI, String name, String systemId, String publicId) throws DOMException(Code) | | Creates a new notation declaration.
Parameters: namespaceURI - The namespace URI of the notation being declared. Parameters: 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. Parameters: systemId - The system identifier for the notation declaration. Parameters: publicId - The public identifier for the notation declaration. A new ASNotationDeclaration object with notationName attribute set to name and publicId and systemId set to the corresponding fields. exception: DOMException - INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character. |
getASModels | public ASObjectList getASModels()(Code) | | To retrieve a list of nested ASModels without reference to names.
A list of ASModels. |
getAsHint | public String getAsHint()(Code) | | The hint to locating an ASModel.
|
getAsLocation | public String getAsLocation()(Code) | | The URI reference.
|
getAttributeDeclarations | public ASNamedObjectMap getAttributeDeclarations()(Code) | | 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).
|
getContentModelDeclarations | public ASNamedObjectMap getContentModelDeclarations()(Code) | | 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).
|
getElementDeclarations | public ASNamedObjectMap getElementDeclarations()(Code) | | 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).
|
getEntityDeclarations | public ASNamedObjectMap getEntityDeclarations()(Code) | | 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).
|
getIsNamespaceAware | public boolean getIsNamespaceAware()(Code) | | 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 .
|
getNotationDeclarations | public ASNamedObjectMap getNotationDeclarations()(Code) | | 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).
|
getUsageLocation | public short getUsageLocation()(Code) | | 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 | public void removeAS(ASModel as)(Code) | | Removes only the specified ASModel from the list of
ASModel s.
Parameters: as - AS to be removed. |
setAsHint | public void setAsHint(String asHint)(Code) | | The hint to locating an ASModel.
|
setAsLocation | public void setAsLocation(String asLocation)(Code) | | The URI reference.
|
validate | public boolean validate()(Code) | | 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. |
|
|