org.dom4j.tree
public abstract class AbstractDocument extends AbstractBranch implements Document
AbstractDocument is an abstract base class for tree
implementors to use for implementation inheritence.
Version: $Revision: 1.33 $
| Field Summary | |
|---|---|
| protected String | encoding The encoding of this document as stated in the XML declaration |
| Constructor Summary | |
|---|---|
| AbstractDocument() | |
| Method Summary | |
|---|---|
| void | accept(Visitor visitor)
|
| void | add(Element element) |
| Document | addComment(String comment) |
| Element | addElement(String name) |
| Element | addElement(String qualifiedName, String namespaceURI) |
| Element | addElement(QName qName) |
| Document | addProcessingInstruction(String target, String data) |
| Document | addProcessingInstruction(String target, Map data) |
| String | asXML() |
| Node | asXPathResult(Element parent) |
| protected void | checkAddElementAllowed(Element element) |
| protected void | childAdded(Node node) |
| protected void | childRemoved(Node node) |
| Document | getDocument() |
| short | getNodeType() |
| String | getPath(Element context) |
| String | getStringValue() |
| String | getUniquePath(Element context) |
| String | getXMLEncoding() |
| void | normalize() |
| boolean | remove(Element element) |
| protected abstract void | rootElementAdded(Element rootElement)
Called to set the root element variable
|
| void | setRootElement(Element rootElement) |
| void | setXMLEncoding(String enc) |
| String | toString() |
| void | write(Writer out) |
accept method is the Visitor Pattern
method.
Parameters: visitor
Visitor is the visitor.
Parameters: rootElement DOCUMENT ME!