com.liferay.portal.xml
Class DocumentImpl
java.lang.Object
com.liferay.portal.xml.NodeImpl
com.liferay.portal.xml.BranchImpl
com.liferay.portal.xml.DocumentImpl
- All Implemented Interfaces:
- Branch, Document, Node, Serializable
public class DocumentImpl
- extends BranchImpl
- implements Document
- See Also:
- Serialized Form
Constructor Summary |
DocumentImpl(org.dom4j.Document document)
|
Methods inherited from class com.liferay.portal.xml.BranchImpl |
add, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, getWrappedBranch, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructions |
Methods inherited from class com.liferay.portal.xml.NodeImpl |
asXML, asXPathResult, detach, getDocument, getName, getParent, getPath, getPath, getStringValue, getText, getUniquePath, getUniquePath, getWrappedNode, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setName, setText, supportsParent, valueOf, write |
Methods inherited from interface com.liferay.portal.kernel.xml.Branch |
add, add, add, add, addElement, addElement, addElement, appendContent, clearContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, normalize, processingInstruction, processingInstructions, processingInstructions, remove, remove, remove, remove, removeProcessingInstruction, setContent, setProcessingInstructions |
Methods inherited from interface com.liferay.portal.kernel.xml.Node |
asXML, asXPathResult, detach, getDocument, getName, getParent, getPath, getPath, getStringValue, getText, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setName, setText, supportsParent, valueOf, write |
DocumentImpl
public DocumentImpl(org.dom4j.Document document)
addComment
public Document addComment(String comment)
- Specified by:
addComment
in interface Document
addDocType
public Document addDocType(String name,
String publicId,
String systemId)
- Specified by:
addDocType
in interface Document
equals
public boolean equals(Object obj)
- Overrides:
equals
in class BranchImpl
formattedString
public String formattedString()
throws IOException
- Specified by:
formattedString
in interface Document
- Throws:
IOException
formattedString
public String formattedString(String indent)
throws IOException
- Specified by:
formattedString
in interface Document
- Throws:
IOException
formattedString
public String formattedString(String indent,
boolean expandEmptyElements)
throws IOException
- Specified by:
formattedString
in interface Document
- Throws:
IOException
getRootElement
public Element getRootElement()
- Specified by:
getRootElement
in interface Document
getWrappedDocument
public org.dom4j.Document getWrappedDocument()
getXMLEncoding
public String getXMLEncoding()
- Specified by:
getXMLEncoding
in interface Document
hashCode
public int hashCode()
- Overrides:
hashCode
in class BranchImpl
setRootElement
public void setRootElement(Element rootElement)
- Specified by:
setRootElement
in interface Document
setXMLEncoding
public void setXMLEncoding(String encoding)
- Specified by:
setXMLEncoding
in interface Document
toString
public String toString()
- Overrides:
toString
in class BranchImpl