This appendix contains the complete Java [Java] bindings for the Level 3 Document Object Model Content Model.
The Java files are also available as http://www.w3.org/TR/2000/WD-DOM-Level-3-Content-Models-and-Load-Save-20000830/java-binding.zip
package org.w3c.dom.contentModel;
public interface CMObject {
}
package org.w3c.dom.contentModel;
public interface CMExternalObject {
}
package org.w3c.dom.contentModel;
public interface CMNode {
}
package org.w3c.dom.contentModel;
public interface CMNodeList {
}
package org.w3c.dom.contentModel;
public interface NamedCMNodeMap {
}
package org.w3c.dom.contentModel;
public interface CMDataType {
}
package org.w3c.dom.contentModel;
public interface CMType {
}
package org.w3c.dom.contentModel;
public interface ElementDeclaration {
public String getElementName();
public String getContentType();
public void setContentType(String contentType);
public NamedCMNodeMap getAttributes();
public void setAttributes(NamedCMNodeMap attributes);
}
package org.w3c.dom.contentModel;
public interface ElementCMModel {
public String getListOperator();
public void setListOperator(String listOperator);
public int getMultiplicity();
public void setMultiplicity(int multiplicity);
public int getLowValue();
public void setLowValue(int lowValue);
public int getHighValue();
public void setHighValue(int highValue);
public NamedCMNodeMap getSubModels();
public void setSubModels(NamedCMNodeMap subModels);
public CMNodeList getDefiningElement();
public void setDefiningElement(CMNodeList definingElement);
}
package org.w3c.dom.contentModel;
public interface AttributeDeclaration {
public String getAttrName();
public CMDataType getAttrType();
public void setAttrType(CMDataType attrType);
public String getDefaultValue();
public void setDefaultValue(String defaultValue);
public String getEnumAttr();
public void setEnumAttr(String enumAttr);
public CMNodeList getOwnerElement();
public void setOwnerElement(CMNodeList ownerElement);
}
package org.w3c.dom.contentModel;
public interface EntityDeclaration {
}
package org.w3c.dom.contentModel;
import org.w3c.dom.Document;
import org.w3c.dom.CMExternalObject *;
public interface DocumentCM extends Document {
public boolean isValid();
public int numCMs();
public CMObject getInternalCM();
public CMExternalObject * getCMs();
public CMObject getActiveCM();
public void addCM(CMObject cm);
public void removeCM(CMObject cm);
public boolean activateCM(CMObject cm);
}
package org.w3c.dom.contentModel;
import org.w3c.dom.DomImplementation;
public interface DomImplementationCM extends DomImplementation {
public boolean validate();
public CMObject createCM();
public CMExternalObject createExternalCM();
public CMObject cloneCM(CMObject cm);
public CMExternalObject cloneExternalCM(CMExternalObject cm);
}
package org.w3c.dom.contentModel;
import org.w3c.dom.how;
import org.w3c.dom.where;
import org.w3c.dom.why;
import org.w3c.dom.DOMException2;
public interface ErrorHandler {
public void warning(where DOMString,
how DOMString,
why DOMString)
throws DOMException2;
public void fatalError(where DOMString,
how DOMString,
why DOMString)
throws DOMException2;
public void error(where DOMString,
how DOMString,
why DOMString)
throws DOMException2;
}
package org.w3c.dom.contentModel;
import org.w3c.dom.namedCMNodeMap;
import org.w3c.dom.nsElement;
public interface CMObject {
public boolean getIsNamespaceAware();
public nsElement getCMNamespace();
public namedCMNodeMap getCMElements();
public boolean removeCMNode(CMNode node);
public boolean insertbeforeCMNode(CMNode newnode,
CMNode parentnode);
}
package org.w3c.dom.contentModel;
public interface CMNode {
public CMType getCMNodeType();
}
package org.w3c.dom.contentModel;
import org.w3c.dom.namedCMNodeMap;
public interface ElementDeclaration {
public int getContentType();
public ElementCMModel getCMElement();
public namedCMNodeMap getCMAttributes();
public namedCMNodeMap getCMElementsChildren();
}
package org.w3c.dom.contentModel;
public interface ElementCMModel {
public ElementCMModel setCMElementCardinality(CMNode node,
int high,
int low);
public ElementCMModel getCMElementCardinality(CMNode node,
int high,
int low);
}
package org.w3c.dom.contentModel;
import org.w3c.dom.Node;
public interface NodeCM extends Node {
public boolean canInsertBefore();
public boolean canRemoveChild();
public boolean canReplaceChild();
public boolean canAppendChild();
}
package org.w3c.dom.contentModel;
public interface ElementCMModel {
public boolean isValid();
public int contentType();
public boolean canSetAttribute(String attrname,
String attrval);
public boolean canSetAttributeNode();
}
package org.w3c.dom.contentModel;
import org.w3c.dom.Text;
public interface TextCM extends Text {
public boolean isWhitespaceOnly();
public boolean canSetData();
public boolean canAppendData();
public boolean canReplaceData();
public boolean canInsertData();
}
package org.w3c.dom.contentModel;
import org.w3c.dom.Document;
public interface DocumentCM extends Document {
public boolean isElementDefined(String elemTypeName);
public boolean isAttributeDefined(String elemTypeName,
String attrName);
public boolean isEntityDefined(String entName);
}