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:
com.liferay.portal.kernel.xml.Branch, com.liferay.portal.kernel.xml.Document, com.liferay.portal.kernel.xml.Node

public class DocumentImpl
extends BranchImpl
implements com.liferay.portal.kernel.xml.Document

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
DocumentImpl(org.dom4j.Document document)
           
 
Method Summary
 com.liferay.portal.kernel.xml.Document addComment(java.lang.String comment)
           
 com.liferay.portal.kernel.xml.Document addDocType(java.lang.String name, java.lang.String publicId, java.lang.String systemId)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String formattedString()
           
 java.lang.String formattedString(java.lang.String indent)
           
 java.lang.String formattedString(java.lang.String indent, boolean expandEmptyElements)
           
 com.liferay.portal.kernel.xml.Element getRootElement()
           
 org.dom4j.Document getWrappedDocument()
           
 java.lang.String getXMLEncoding()
           
 int hashCode()
           
 void setRootElement(com.liferay.portal.kernel.xml.Element rootElement)
           
 void setXMLEncoding(java.lang.String encoding)
           
 
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, toString, 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 com.liferay.portal.kernel.xml.Document addComment(java.lang.String comment)
Specified by:
addComment in interface com.liferay.portal.kernel.xml.Document

addDocType

public com.liferay.portal.kernel.xml.Document addDocType(java.lang.String name,
                                                         java.lang.String publicId,
                                                         java.lang.String systemId)
Specified by:
addDocType in interface com.liferay.portal.kernel.xml.Document

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class BranchImpl

formattedString

public java.lang.String formattedString()
                                 throws java.io.IOException
Specified by:
formattedString in interface com.liferay.portal.kernel.xml.Document
Throws:
java.io.IOException

formattedString

public java.lang.String formattedString(java.lang.String indent)
                                 throws java.io.IOException
Specified by:
formattedString in interface com.liferay.portal.kernel.xml.Document
Throws:
java.io.IOException

formattedString

public java.lang.String formattedString(java.lang.String indent,
                                        boolean expandEmptyElements)
                                 throws java.io.IOException
Specified by:
formattedString in interface com.liferay.portal.kernel.xml.Document
Throws:
java.io.IOException

getRootElement

public com.liferay.portal.kernel.xml.Element getRootElement()
Specified by:
getRootElement in interface com.liferay.portal.kernel.xml.Document

getWrappedDocument

public org.dom4j.Document getWrappedDocument()

getXMLEncoding

public java.lang.String getXMLEncoding()
Specified by:
getXMLEncoding in interface com.liferay.portal.kernel.xml.Document

hashCode

public int hashCode()
Overrides:
hashCode in class BranchImpl

setRootElement

public void setRootElement(com.liferay.portal.kernel.xml.Element rootElement)
Specified by:
setRootElement in interface com.liferay.portal.kernel.xml.Document

setXMLEncoding

public void setXMLEncoding(java.lang.String encoding)
Specified by:
setXMLEncoding in interface com.liferay.portal.kernel.xml.Document