Save This Page
Home » Xerces-J-src.2.9.1 » org.apache.xerces.dom3 » as » [javadoc | source]
org.apache.xerces.dom3.as
public interface: ASModel [javadoc | source]

All Implemented Interfaces:
    ASObject

All Known Implementing Classes:
    ASModelImpl

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.

Method from org.apache.xerces.dom3.as.ASModel Summary:
addASModel,   createASAttributeDeclaration,   createASContentModel,   createASElementDeclaration,   createASEntityDeclaration,   createASNotationDeclaration,   getASModels,   getAsHint,   getAsLocation,   getAttributeDeclarations,   getContentModelDeclarations,   getElementDeclarations,   getEntityDeclarations,   getIsNamespaceAware,   getNotationDeclarations,   getUsageLocation,   removeAS,   setAsHint,   setAsLocation,   validate
Method from org.apache.xerces.dom3.as.ASModel Detail:
 public  void addASModel(ASModel abstractSchema)       Deprecated!
    This method will allow the nesting or "importation" of ASModels.
 public ASAttributeDeclaration createASAttributeDeclaration(String namespaceURI,
    String name) throws DOMException       Deprecated!
    Creates an attribute declaration.
 public ASContentModel createASContentModel(int minOccurs,
    int maxOccurs,
    short operator) throws DOMASException       Deprecated!
    Creates an object which describes part of an ASElementDeclaration's content model.
 public ASElementDeclaration createASElementDeclaration(String namespaceURI,
    String name) throws DOMException       Deprecated!
    Creates an element declaration for the element type specified.
 public ASEntityDeclaration createASEntityDeclaration(String name) throws DOMException       Deprecated!
    Creates an ASEntityDeclaration.
 public ASNotationDeclaration createASNotationDeclaration(String namespaceURI,
    String name,
    String systemId,
    String publicId) throws DOMException       Deprecated!
    Creates a new notation declaration.
 public ASObjectList getASModels()       Deprecated!
    To retrieve a list of nested ASModels without reference to names.
 public String getAsHint()       Deprecated!
    The hint to locating an ASModel.
 public String getAsLocation()       Deprecated!
    The URI reference.
 public ASNamedObjectMap getAttributeDeclarations()       Deprecated!
    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).
 public ASNamedObjectMap getContentModelDeclarations()       Deprecated!
    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).
 public ASNamedObjectMap getElementDeclarations()       Deprecated!
    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).
 public ASNamedObjectMap getEntityDeclarations()       Deprecated!
    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).
 public boolean getIsNamespaceAware()       Deprecated!
    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()       Deprecated!
    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).
 public short getUsageLocation()       Deprecated!
    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.
 public  void removeAS(ASModel as)       Deprecated!
    Removes only the specified ASModel from the list of ASModels.
 public  void setAsHint(String asHint)       Deprecated!
    The hint to locating an ASModel.
 public  void setAsLocation(String asLocation)       Deprecated!
    The URI reference.
 public boolean validate()       Deprecated!
    Determines if an ASModel itself is valid, i.e., confirming that it's well-formed and valid per its own formal grammar.