public class NodeImpl
extends 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) |
String |
asXML() |
com.liferay.portal.kernel.xml.Node |
asXPathResult(com.liferay.portal.kernel.xml.Element parent) |
String |
compactString() |
com.liferay.portal.kernel.xml.Node |
detach() |
boolean |
equals(Object obj) |
String |
formattedString() |
String |
formattedString(String indent) |
String |
formattedString(String indent,
boolean expandEmptyElements) |
String |
formattedString(String indent,
boolean expandEmptyElements,
boolean trimText) |
com.liferay.portal.kernel.xml.Document |
getDocument() |
String |
getName() |
com.liferay.portal.kernel.xml.Element |
getParent() |
String |
getPath() |
String |
getPath(com.liferay.portal.kernel.xml.Element context) |
String |
getStringValue() |
String |
getText() |
String |
getUniquePath() |
String |
getUniquePath(com.liferay.portal.kernel.xml.Element context) |
org.dom4j.Node |
getWrappedNode() |
boolean |
hasContent() |
int |
hashCode() |
boolean |
isReadOnly() |
boolean |
matches(String xPathExpression) |
Number |
numberValueOf(String xPathExpression) |
List<com.liferay.portal.kernel.xml.Node> |
selectNodes(String xPathExpression) |
List<com.liferay.portal.kernel.xml.Node> |
selectNodes(String xPathExpression,
String comparisonXPathExpression) |
List<com.liferay.portal.kernel.xml.Node> |
selectNodes(String xPathExpression,
String comparisonXPathExpression,
boolean removeDuplicates) |
Object |
selectObject(String xPathExpression) |
com.liferay.portal.kernel.xml.Node |
selectSingleNode(String xPathExpression) |
void |
setName(String name) |
void |
setText(String text) |
boolean |
supportsParent() |
String |
toString() |
String |
valueOf(String xPathExpression) |
void |
write(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.Node
public String asXML()
asXML
in interface com.liferay.portal.kernel.xml.Node
public com.liferay.portal.kernel.xml.Node asXPathResult(com.liferay.portal.kernel.xml.Element parent)
asXPathResult
in interface com.liferay.portal.kernel.xml.Node
public String compactString() throws IOException
compactString
in interface com.liferay.portal.kernel.xml.Node
IOException
public com.liferay.portal.kernel.xml.Node detach()
detach
in interface com.liferay.portal.kernel.xml.Node
public boolean equals(Object obj)
equals
in class Object
public String formattedString() throws IOException
formattedString
in interface com.liferay.portal.kernel.xml.Node
IOException
public String formattedString(String indent) throws IOException
formattedString
in interface com.liferay.portal.kernel.xml.Node
IOException
public String formattedString(String indent, boolean expandEmptyElements) throws IOException
formattedString
in interface com.liferay.portal.kernel.xml.Node
IOException
public String formattedString(String indent, boolean expandEmptyElements, boolean trimText) throws IOException
formattedString
in interface com.liferay.portal.kernel.xml.Node
IOException
public com.liferay.portal.kernel.xml.Document getDocument()
getDocument
in interface com.liferay.portal.kernel.xml.Node
public String getName()
getName
in interface com.liferay.portal.kernel.xml.Node
public com.liferay.portal.kernel.xml.Element getParent()
getParent
in interface com.liferay.portal.kernel.xml.Node
public String getPath()
getPath
in interface com.liferay.portal.kernel.xml.Node
public String getPath(com.liferay.portal.kernel.xml.Element context)
getPath
in interface com.liferay.portal.kernel.xml.Node
public String getStringValue()
getStringValue
in interface com.liferay.portal.kernel.xml.Node
public String getText()
getText
in interface com.liferay.portal.kernel.xml.Node
public String getUniquePath()
getUniquePath
in interface com.liferay.portal.kernel.xml.Node
public String getUniquePath(com.liferay.portal.kernel.xml.Element context)
getUniquePath
in interface com.liferay.portal.kernel.xml.Node
public org.dom4j.Node getWrappedNode()
public boolean hasContent()
hasContent
in interface com.liferay.portal.kernel.xml.Node
public int hashCode()
hashCode
in class Object
public boolean isReadOnly()
isReadOnly
in interface com.liferay.portal.kernel.xml.Node
public boolean matches(String xPathExpression)
matches
in interface com.liferay.portal.kernel.xml.Node
public Number numberValueOf(String xPathExpression)
numberValueOf
in interface com.liferay.portal.kernel.xml.Node
public List<com.liferay.portal.kernel.xml.Node> selectNodes(String xPathExpression)
selectNodes
in interface com.liferay.portal.kernel.xml.Node
public List<com.liferay.portal.kernel.xml.Node> selectNodes(String xPathExpression, String comparisonXPathExpression)
selectNodes
in interface com.liferay.portal.kernel.xml.Node
public List<com.liferay.portal.kernel.xml.Node> selectNodes(String xPathExpression, String comparisonXPathExpression, boolean removeDuplicates)
selectNodes
in interface com.liferay.portal.kernel.xml.Node
public Object selectObject(String xPathExpression)
selectObject
in interface com.liferay.portal.kernel.xml.Node
public com.liferay.portal.kernel.xml.Node selectSingleNode(String xPathExpression)
selectSingleNode
in interface com.liferay.portal.kernel.xml.Node
public void setName(String name)
setName
in interface com.liferay.portal.kernel.xml.Node
public void setText(String text)
setText
in interface com.liferay.portal.kernel.xml.Node
public boolean supportsParent()
supportsParent
in interface com.liferay.portal.kernel.xml.Node
public String toString()
toString
in class Object
public String valueOf(String xPathExpression)
valueOf
in interface com.liferay.portal.kernel.xml.Node
public void write(Writer writer) throws IOException
write
in interface com.liferay.portal.kernel.xml.Node
IOException