Represents an abstract content model that could be a DTD, an XML Schema, or something else. It has both an internal and external subset.
Java binding:
package org.w3c.dom.as;
public interface ASModel extends ASObject {
// ASMODEL_TYPES
public static final short INTERNAL_SUBSET = 1;
public static final short EXTERNAL_SUBSET = 2;
public static final short NOT_USED = 3;
public boolean getNamespaceAware();
public short getUsage();
public String getLocation();
public void setLocation(String location);
public String getHint();
public void setHint(String hint);
public boolean getContainer();
public ASNamedObjectMap getElementDecls();
public ASNamedObjectMap getAttributeDecls();
public ASNamedObjectMap getNotationDecls();
public ASNamedObjectMap getEntityDecls();
public ASNamedObjectMap getContentModelDecls();
public void addASModel(ASModel abstractSchema);
public ASObjectList getASModels();
public void removeAS(ASModel as);
public boolean validate();
public void importASObject(ASObject asobject);
public void insertASObject(ASObject asobject);
public ASElementDecl createASElementDecl(String namespaceURI,
String name) throws ASException;
public ASAttributeDecl createASAttributeDecl(String namespaceURI,
String name) throws ASException;
public ASNotationDecl createASNotationDecl(String namespaceURI,
String name, String systemId, String publicId) throws ASException;
public ASEntityDecl createASEntityDecl(String name) throws ASException;
public ASContentModel createASContentModel(String name,
String namespaceURI, int minOccurs, int maxOccurs, short operator)
throws ASException;
}
IDL:
interface ASModel : ASObject {
// ASMODEL_TYPES
const unsigned short INTERNAL_SUBSET = 1;
const unsigned short EXTERNAL_SUBSET = 2;
const unsigned short NOT_USED = 3;
readonly attribute boolean NamespaceAware;
readonly attribute unsigned short usage;
attribute DOMString location;
attribute DOMString hint;
readonly attribute boolean container;
readonly attribute ASNamedObjectMap elementDecls;
readonly attribute ASNamedObjectMap attributeDecls;
readonly attribute ASNamedObjectMap notationDecls;
readonly attribute ASNamedObjectMap entityDecls;
readonly attribute ASNamedObjectMap contentModelDecls;
void addASModel(in ASModel abstractSchema);
ASObjectList getASModels();
void removeAS(in ASModel as);
boolean validate();
void importASObject(in ASObject asobject);
void insertASObject(in ASObject asobject);
ASElementDecl createASElementDecl(in DOMString namespaceURI, in DOMString name)
raises(ASException);
ASAttributeDecl createASAttributeDecl(in DOMString namespaceURI, in DOMString name)
raises(ASException);
ASNotationDecl createASNotationDecl(in DOMString namespaceURI,
in DOMString name, in DOMString systemId, in DOMString publicId)
raises(ASException);
ASEntityDecl createASEntityDecl(in DOMString name) raises(ASException);
ASContentModel createASContentModel(in DOMString name,
in DOMString namespaceURI, in unsigned long minOccurs,
in unsigned long maxOccurs, in unsigned short operator)
raises(ASException);
};