DefaultDocument is the default DOM4J default implementation of
an XML document.
| Modifier and Type | Field and Description |
|---|---|
| private List | content
Store the contents of the document as a lazily created |
| private DocumentType | docType
The document type for this document |
| private DocumentFactory | documentFactory
The document factory used by default |
| private transient EntityResolver | entityResolver
The resolver of URIs |
| private String | name
The name of the document |
| private Element | rootElement
The root element of this document |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Document | addDocType(String
is the name of the root element docTypeName, String is the PUBLIC URI publicId, String is the SYSTEM URI systemId)Implements org. |
| protected void | |
| protected void | |
| public void | clearContent()
Implements org. Node
instances this branch may contain.
|
| public Object | clone()
Overrides org. Implements org.
|
| protected List | |
| public DocumentType | |
| protected DocumentFactory | |
| public EntityResolver | |
| public String | getName()
Overrides org. Implements org.
|
| public Element | getRootElement()
Implements org. Elementfor this document.
|
| public String | getXMLEncoding()
Overrides org. Implements org. 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.
|
| public ProcessingInstruction | processingInstruction(String
DOCUMENT ME! target)Implements org. |
| public List | processingInstructions()
Implements org. |
| public List | processingInstructions(String
DOCUMENT ME! target)Implements org. |
| protected boolean | |
| public boolean | removeProcessingInstruction(String
DOCUMENT ME! target)Implements org. |
| protected void | rootElementAdded(Element
DOCUMENT ME! element)Implements abstract org. |
| public void | setContent(List<Node>
is the list of nodes to use as the content for this branch. content)Implements org. List of
Node instances.
|
| public void | setDocType(DocumentType
DOCUMENT ME! docType)Implements org. |
| public void | |
| public void | setEntityResolver(EntityResolver
DOCUMENT ME! entityResolver)Implements org. |
| public void | setName(String
is the new name of this node name)Overrides org. Implements org.
Sets the text data of this node or this method will throw an
|
| content | back to summary |
|---|---|
| private List<Node> content Store the contents of the document as a lazily created | |
| docType | back to summary |
|---|---|
| private DocumentType docType The document type for this document | |
| documentFactory | back to summary |
|---|---|
| private DocumentFactory documentFactory The document factory used by default | |
| entityResolver | back to summary |
|---|---|
| private transient EntityResolver entityResolver The resolver of URIs | |
| name | back to summary |
|---|---|
| private String name The name of the document | |
| rootElement | back to summary |
|---|---|
| private Element rootElement The root element of this document | |
| DefaultDocument | back to summary |
|---|---|
| public DefaultDocument() | |
| DefaultDocument | back to summary |
|---|---|
| public DefaultDocument(String name) | |
| DefaultDocument | back to summary |
|---|---|
| public DefaultDocument(Element rootElement) | |
| DefaultDocument | back to summary |
|---|---|
| public DefaultDocument(DocumentType docType) | |
| DefaultDocument | back to summary |
|---|---|
| public DefaultDocument(Element rootElement, DocumentType docType) | |
| DefaultDocument | back to summary |
|---|---|
| public DefaultDocument(String name, Element rootElement, DocumentType docType) | |
| addDocType | back to summary |
|---|---|
| public Document addDocType(String docTypeName, String publicId, String systemId) Implements org. Doc from org. Adds a DOCTYPE declaration to this document | |
| addNode | back to summary |
|---|---|
| protected void addNode(Node node) Implements abstract org. | |
| addNode | back to summary |
|---|---|
| protected void addNode(int index, Node node) Implements abstract org. | |
| clearContent | back to summary |
|---|---|
| public void clearContent() Implements org. Doc from org. Clears the content for this branch, removing any | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides org. Implements org. Doc from org.
| |
| contentList | back to summary |
|---|---|
| protected List Implements abstract org. Doc from org. DOCUMENT ME! | |
| getDocType | back to summary |
|---|---|
| public DocumentType getDocType() Implements org. Doc from org. DOCUMENT ME!
| |
| getDocumentFactory | back to summary |
|---|---|
| protected DocumentFactory getDocumentFactory() | |
| getEntityResolver | back to summary |
|---|---|
| public EntityResolver getEntityResolver() Implements org. Doc from org. DOCUMENT ME!
| |
| getName | back to summary |
|---|---|
| public String getName() Overrides org. Implements org. Doc from org.
| |
| getRootElement | back to summary |
|---|---|
| public Element getRootElement() Implements org. Doc from org. Returns the root
| |
| getXMLEncoding | back to summary |
|---|---|
| public String getXMLEncoding() Overrides org. Implements org. Doc from org. Return the encoding of this document, as part of the XML declaration This
is
| |
| processingInstruction | back to summary |
|---|---|
| public ProcessingInstruction processingInstruction(String target) Implements org. Doc from org. DOCUMENT ME!
| |
| processingInstructions | back to summary |
|---|---|
| public List Implements org. Doc from org. Returns a list of all the processing instructions in this branch. The list is backed by this branch so that changes to the list will be reflected in the branch but the reverse is not the case.
| |
| processingInstructions | back to summary |
|---|---|
| public List Implements org. Doc from org. Returns a list of the processing instructions for the given target. The list is backed by this branch so that changes to the list will be reflected in the branch but the reverse is not the case.
| |
| removeNode | back to summary |
|---|---|
| protected boolean removeNode(Node node) Implements abstract org. | |
| removeProcessingInstruction | back to summary |
|---|---|
| public boolean removeProcessingInstruction(String target) Implements org. Doc from org. Removes the processing instruction for the given target if it exists
| |
| rootElementAdded | back to summary |
|---|---|
| protected void rootElementAdded(Element element) Implements abstract org. Doc from org. Called to set the root element variable
| |
| setContent | back to summary |
|---|---|
| public void setContent(List<Node> content) Implements org. Doc from org. Sets the contents of this branch as a | |
| setDocType | back to summary |
|---|---|
| public void setDocType(DocumentType docType) Implements org. Doc from org. Sets the DocumentType property
| |
| setDocumentFactory | back to summary |
|---|---|
| public void setDocumentFactory(DocumentFactory documentFactory) | |
| setEntityResolver | back to summary |
|---|---|
| public void setEntityResolver(EntityResolver entityResolver) Implements org. Doc from org. Sets the EntityResolver used to find resolve URIs such as for DTDs, or XML Schema documents
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Overrides org. Implements org. Doc from org.
Sets the text data of this node or this method will throw an
| |