Liferay 6.0.5

com.liferay.portal.xml
Class DocumentImpl

java.lang.Object
  extended by com.liferay.portal.xml.NodeImpl
      extended by com.liferay.portal.xml.BranchImpl
          extended by 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)
           
 
Method Summary
 Document addComment(String comment)
           
 Document addDocType(String name, String publicId, String systemId)
           
 boolean equals(Object obj)
           
 String formattedString()
           
 String formattedString(String indent)
           
 String formattedString(String indent, boolean expandEmptyElements)
           
 Element getRootElement()
           
 org.dom4j.Document getWrappedDocument()
           
 String getXMLEncoding()
           
 int hashCode()
           
 void setRootElement(Element rootElement)
           
 void setXMLEncoding(String encoding)
           
 String toString()
           
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

DocumentImpl

public DocumentImpl(org.dom4j.Document document)
Method Detail

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

Liferay 6.0.5