Package com.liferay.portal.xml
Class DocumentImpl
Object
com.liferay.portal.xml.NodeImpl
com.liferay.portal.xml.BranchImpl
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
,Serializable
,Cloneable
- Author:
- Brian Wing Shun Chan
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T,
V extends com.liferay.portal.kernel.xml.Visitor<T>>
Taccept
(V visitor) com.liferay.portal.kernel.xml.Document
addComment
(String comment) com.liferay.portal.kernel.xml.Document
addDocumentType
(String name, String publicId, String systemId) com.liferay.portal.kernel.xml.Document
clone()
boolean
com.liferay.portal.kernel.xml.DocumentType
com.liferay.portal.kernel.xml.Element
org.dom4j.Document
int
hashCode()
void
setRootElement
(com.liferay.portal.kernel.xml.Element rootElement) void
setXMLEncoding
(String encoding) 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, compactString, detach, formattedString, formattedString, formattedString, formattedString, 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
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, compactString, detach, formattedString, formattedString, formattedString, formattedString, getDocument, getName, getParent, getPath, getPath, getStringValue, getText, getUniquePath, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setName, setText, supportsParent, valueOf, write
-
Constructor Details
-
DocumentImpl
public DocumentImpl(org.dom4j.Document document)
-
-
Method Details
-
accept
public <T,V extends com.liferay.portal.kernel.xml.Visitor<T>> T accept(V visitor) -
addComment
- Specified by:
addComment
in interfacecom.liferay.portal.kernel.xml.Document
-
addDocumentType
public com.liferay.portal.kernel.xml.Document addDocumentType(String name, String publicId, String systemId) - Specified by:
addDocumentType
in interfacecom.liferay.portal.kernel.xml.Document
-
clone
public com.liferay.portal.kernel.xml.Document clone() -
equals
- Overrides:
equals
in classBranchImpl
-
getDocumentType
public com.liferay.portal.kernel.xml.DocumentType getDocumentType()- Specified by:
getDocumentType
in interfacecom.liferay.portal.kernel.xml.Document
-
getRootElement
public com.liferay.portal.kernel.xml.Element getRootElement()- Specified by:
getRootElement
in interfacecom.liferay.portal.kernel.xml.Document
-
getWrappedDocument
public org.dom4j.Document getWrappedDocument() -
getXMLEncoding
- Specified by:
getXMLEncoding
in interfacecom.liferay.portal.kernel.xml.Document
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBranchImpl
-
setRootElement
public void setRootElement(com.liferay.portal.kernel.xml.Element rootElement) - Specified by:
setRootElement
in interfacecom.liferay.portal.kernel.xml.Document
-
setXMLEncoding
- Specified by:
setXMLEncoding
in interfacecom.liferay.portal.kernel.xml.Document
-
toString
- Overrides:
toString
in classBranchImpl
-