content
Store the contents of the document as a lazily created
ListSerializable, Cloneable, Branch, Document, NodeDOMDocument
DefaultDocument is the default DOM4J default implementation of
an XML document.
Listprivate DocumentTypeprivate DocumentFactoryprivate EntityResolverprivate Stringprivate ElementencodingDEFAULT_CONTENT_LIST_SIZENODE_TYPE_NAMESANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODEDefaultDocument(String name) DefaultDocument(String name,
Element rootElement,
DocumentType docType) DefaultDocument(DocumentType docType) DefaultDocument(Element rootElement) DefaultDocument(Element rootElement,
DocumentType docType) addDocType(String docTypeName,
String publicId,
String systemId) protected voidprotected voidvoidNode
instances this branch may contain.clone()clone will return a deep clone or if this node is
read-only then clone will return the same instance.protected DocumentFactorygetName()getName returns the name of this node.Elementfor this document.null when unspecified or when it is not known (such as
when the Document was created in memory) or when the implementation does
not support this operation.processingInstruction(String target) processingInstructions(String target) protected booleanremoveNode(Node node) booleanremoveProcessingInstruction(String target) protected voidrootElementAdded(Element element) voidsetContent(List<Node> content) List of
Node instances.voidsetDocType(DocumentType docType) voidsetDocumentFactory(DocumentFactory documentFactory) voidsetEntityResolver(EntityResolver entityResolver) voidUnsupportedOperationException if it is read-only.accept, add, addComment, addElement, addElement, addElement, addProcessingInstruction, addProcessingInstruction, asXML, asXPathResult, checkAddElementAllowed, childAdded, childRemoved, getDocument, getNodeType, getPath, getStringValue, getUniquePath, normalize, remove, setRootElement, setXMLEncoding, toString, writeadd, add, add, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, elementID, getContentAsStringValue, getContentAsText, getText, getTextTrim, hasContent, indexOf, invalidNodeTypeAddException, isReadOnly, node, nodeCount, nodeIterator, remove, remove, remove, setProcessingInstructionscreatePattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getParent, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOfequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, add, appendContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, remove, remove, remove, setProcessingInstructionscreateXPath, detach, getNodeTypeName, getParent, getPath, getText, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOfListNode
getName returns the name of this node. This is the XML
local name of the element, attribute, entity or processing instruction.
For CDATA and Text nodes this method will return null.
getName in interface NodegetName in class AbstractNodeNode
Sets the text data of this node or this method will throw an
UnsupportedOperationException if it is read-only.
setName in interface NodesetName in class AbstractNodename - is the new name of this nodeDocumentElementfor this document.DocumentDocumentdocType - DOCUMENT ME!DocumentdocTypeName - is the name of the root elementpublicId - is the PUBLIC URIsystemId - is the SYSTEM URIDocument instance.Documentnull when unspecified or when it is not known (such as
when the Document was created in memory) or when the implementation does
not support this operation.
The way this encoding is retrieved also depends on the way the XML source
is parsed. For instance, if the SAXReader is used and if the underlying
XMLReader implementation support the
org.xml.sax.ext.Locator2 interface, the result returned by
this method is specified by the getEncoding() method of
that interface.getXMLEncoding in interface DocumentgetXMLEncoding in class AbstractDocumentnull if unknown.DocumentDocumententityResolver - DOCUMENT ME!Node
clone will return a deep clone or if this node is
read-only then clone will return the same instance.
clone in interface Nodeclone in class AbstractNodeBranchBranchtarget - DOCUMENT ME!Branchtarget - DOCUMENT ME!Branchtarget - DOCUMENT ME!BranchList of
Node instances.content - is the list of nodes to use as the content for this branch.BranchNode
instances this branch may contain.AbstractBranchcontentList in class AbstractBranchaddNode in class AbstractBranchaddNode in class AbstractBranchremoveNode in class AbstractBranchAbstractDocumentrootElementAdded in class AbstractDocumentelement - DOCUMENT ME!getDocumentFactory in class AbstractNode