public class NodeImpl
extends java.lang.Object
implements com.liferay.portal.kernel.xml.Node
| Constructor and Description |
|---|
NodeImpl(org.dom4j.Node node) |
| Modifier and Type | Method and Description |
|---|---|
<T,V extends com.liferay.portal.kernel.xml.Visitor<T>> |
accept(V visitor) |
java.lang.String |
asXML() |
com.liferay.portal.kernel.xml.Node |
asXPathResult(com.liferay.portal.kernel.xml.Element parent) |
java.lang.String |
compactString() |
com.liferay.portal.kernel.xml.Node |
detach() |
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) |
java.lang.String |
formattedString(java.lang.String indent,
boolean expandEmptyElements,
boolean trimText) |
com.liferay.portal.kernel.xml.Document |
getDocument() |
java.lang.String |
getName() |
com.liferay.portal.kernel.xml.Element |
getParent() |
java.lang.String |
getPath() |
java.lang.String |
getPath(com.liferay.portal.kernel.xml.Element context) |
java.lang.String |
getStringValue() |
java.lang.String |
getText() |
java.lang.String |
getUniquePath() |
java.lang.String |
getUniquePath(com.liferay.portal.kernel.xml.Element context) |
org.dom4j.Node |
getWrappedNode() |
boolean |
hasContent() |
int |
hashCode() |
boolean |
isReadOnly() |
boolean |
matches(java.lang.String xPathExpression) |
java.lang.Number |
numberValueOf(java.lang.String xPathExpression) |
java.util.List<com.liferay.portal.kernel.xml.Node> |
selectNodes(java.lang.String xPathExpression) |
java.util.List<com.liferay.portal.kernel.xml.Node> |
selectNodes(java.lang.String xPathExpression,
java.lang.String comparisonXPathExpression) |
java.util.List<com.liferay.portal.kernel.xml.Node> |
selectNodes(java.lang.String xPathExpression,
java.lang.String comparisonXPathExpression,
boolean removeDuplicates) |
java.lang.Object |
selectObject(java.lang.String xPathExpression) |
com.liferay.portal.kernel.xml.Node |
selectSingleNode(java.lang.String xPathExpression) |
void |
setName(java.lang.String name) |
void |
setText(java.lang.String text) |
boolean |
supportsParent() |
java.lang.String |
toString() |
java.lang.String |
valueOf(java.lang.String xPathExpression) |
void |
write(java.io.Writer writer) |
public <T,V extends com.liferay.portal.kernel.xml.Visitor<T>> T accept(V visitor)
accept in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.String asXML()
asXML in interface com.liferay.portal.kernel.xml.Nodepublic com.liferay.portal.kernel.xml.Node asXPathResult(com.liferay.portal.kernel.xml.Element parent)
asXPathResult in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.String compactString()
throws java.io.IOException
compactString in interface com.liferay.portal.kernel.xml.Nodejava.io.IOExceptionpublic com.liferay.portal.kernel.xml.Node detach()
detach in interface com.liferay.portal.kernel.xml.Nodepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String formattedString()
throws java.io.IOException
formattedString in interface com.liferay.portal.kernel.xml.Nodejava.io.IOExceptionpublic java.lang.String formattedString(java.lang.String indent)
throws java.io.IOException
formattedString in interface com.liferay.portal.kernel.xml.Nodejava.io.IOExceptionpublic java.lang.String formattedString(java.lang.String indent,
boolean expandEmptyElements)
throws java.io.IOException
formattedString in interface com.liferay.portal.kernel.xml.Nodejava.io.IOExceptionpublic java.lang.String formattedString(java.lang.String indent,
boolean expandEmptyElements,
boolean trimText)
throws java.io.IOException
formattedString in interface com.liferay.portal.kernel.xml.Nodejava.io.IOExceptionpublic com.liferay.portal.kernel.xml.Document getDocument()
getDocument in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.String getName()
getName in interface com.liferay.portal.kernel.xml.Nodepublic com.liferay.portal.kernel.xml.Element getParent()
getParent in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.String getPath()
getPath in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.String getPath(com.liferay.portal.kernel.xml.Element context)
getPath in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.String getStringValue()
getStringValue in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.String getText()
getText in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.String getUniquePath()
getUniquePath in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.String getUniquePath(com.liferay.portal.kernel.xml.Element context)
getUniquePath in interface com.liferay.portal.kernel.xml.Nodepublic org.dom4j.Node getWrappedNode()
public boolean hasContent()
hasContent in interface com.liferay.portal.kernel.xml.Nodepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isReadOnly()
isReadOnly in interface com.liferay.portal.kernel.xml.Nodepublic boolean matches(java.lang.String xPathExpression)
matches in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.Number numberValueOf(java.lang.String xPathExpression)
numberValueOf in interface com.liferay.portal.kernel.xml.Nodepublic java.util.List<com.liferay.portal.kernel.xml.Node> selectNodes(java.lang.String xPathExpression)
selectNodes in interface com.liferay.portal.kernel.xml.Nodepublic java.util.List<com.liferay.portal.kernel.xml.Node> selectNodes(java.lang.String xPathExpression,
java.lang.String comparisonXPathExpression)
selectNodes in interface com.liferay.portal.kernel.xml.Nodepublic java.util.List<com.liferay.portal.kernel.xml.Node> selectNodes(java.lang.String xPathExpression,
java.lang.String comparisonXPathExpression,
boolean removeDuplicates)
selectNodes in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.Object selectObject(java.lang.String xPathExpression)
selectObject in interface com.liferay.portal.kernel.xml.Nodepublic com.liferay.portal.kernel.xml.Node selectSingleNode(java.lang.String xPathExpression)
selectSingleNode in interface com.liferay.portal.kernel.xml.Nodepublic void setName(java.lang.String name)
setName in interface com.liferay.portal.kernel.xml.Nodepublic void setText(java.lang.String text)
setText in interface com.liferay.portal.kernel.xml.Nodepublic boolean supportsParent()
supportsParent in interface com.liferay.portal.kernel.xml.Nodepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String valueOf(java.lang.String xPathExpression)
valueOf in interface com.liferay.portal.kernel.xml.Nodepublic void write(java.io.Writer writer)
throws java.io.IOException
write in interface com.liferay.portal.kernel.xml.Nodejava.io.IOException