|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openxml.dom.NodeImpl | +--org.openxml.dom.DocumentImpl | +--org.openxml.XMLDocument
Base class for user XML document. In addition to several API extensions, user
XML documents can be used to map XML documents directly into application data
structures, with the aid of user elements (XMLElement
).
XMLDocument
extends the DOM Document
with the
following methods:
NodeImpl.makeReadOnly()
renders a full document read-only preventing any
changes to it's documet contents
DocumentImpl.registerElement(java.lang.String, java.lang.Class)
associates tag names with user element classes
that derive from XMLElement
DocumentImpl.useElementFactory(org.openxml.XMLElementFactory)
invokes an external element factory to create
application elements
Documents of specific type can be created safely by passing the document class
to DOMFactory.createDocument(java.lang.Class)
. They are supported by the built in XML
parser, printer and processor. User documents are also supported by Source
through use of the docClass property.
A user document derived from XMLDocument
must be declared public and
the constructor must be public. User elements should be registered in the
constructor, and read-only status should be obeyed by calling NodeImpl.isReadOnly()
.
Document
,
XMLElement
,
XMLCollection
,
XMLElementFactory
Fields inherited from class org.openxml.dom.NodeImpl |
ATTLIST_DECL_NODE,
ELEMENT_DECL_NODE,
PARAM_ENTITY_NODE |
Constructor Summary | |
XMLDocument()
Deprecated. Default constructor. |
Method Summary | |
java.lang.Object |
clone()
Deprecated. |
Node |
cloneNode(boolean deep)
Deprecated. |
Methods inherited from class org.openxml.dom.DocumentImpl |
acquire,
assignDoctype,
cloneInto,
createAttribute,
createAttribute,
createCDATASection,
createComment,
createDocumentFragment,
createElement,
createEntityReference,
createProcessingInstruction,
createTextNode,
equals,
getDoctype,
getDocumentElement,
getElementsByTagName,
getImplementation,
getNodeType,
hasFeature,
lock,
registerElement,
setNodeValue,
supportsChildern,
toString,
unlock,
useElementFactory |
Methods inherited from class org.openxml.dom.NodeImpl |
appendChild,
castNewChild,
castOldChild,
createNodeIterator,
createTreeIterator,
getAttributes,
getChildNodes,
getFirstChild,
getLastChild,
getNextSibling,
getNodeName,
getNodeValue,
getOwnerDocument,
getParentNode,
getPreviousSibling,
hasChildNodes,
insertBefore,
isReadOnly,
makeReadOnly,
notifyIterators,
removeChild,
removeInnerIterator,
replaceChild,
setOwnerDocument |
Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public XMLDocument()
Method Detail |
public java.lang.Object clone()
public Node cloneNode(boolean deep)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |