public class XPathImpl
extends Object
implements com.liferay.portal.kernel.xml.XPath
Constructor and Description |
---|
XPathImpl(org.dom4j.XPath xPath,
Map<String,String> namespaceContextMap) |
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValueOf(Object context) |
boolean |
equals(Object obj) |
Object |
evaluate(Object context) |
String |
getText() |
org.dom4j.XPath |
getWrappedXPath() |
int |
hashCode() |
boolean |
matches(com.liferay.portal.kernel.xml.Node node) |
Number |
numberValueOf(Object context) |
List<com.liferay.portal.kernel.xml.Node> |
selectNodes(Object context) |
List<com.liferay.portal.kernel.xml.Node> |
selectNodes(Object context,
com.liferay.portal.kernel.xml.XPath sortXPath) |
List<com.liferay.portal.kernel.xml.Node> |
selectNodes(Object context,
com.liferay.portal.kernel.xml.XPath sortXPath,
boolean distinct) |
com.liferay.portal.kernel.xml.Node |
selectSingleNode(Object context) |
void |
sort(List<com.liferay.portal.kernel.xml.Node> nodes) |
void |
sort(List<com.liferay.portal.kernel.xml.Node> nodes,
boolean distinct) |
protected Object |
toNewContext(Object context) |
protected Object |
toOldContext(Object context) |
String |
toString() |
String |
valueOf(Object context) |
public XPathImpl(org.dom4j.XPath xPath, Map<String,String> namespaceContextMap)
public boolean booleanValueOf(Object context)
booleanValueOf
in interface com.liferay.portal.kernel.xml.XPath
public boolean equals(Object obj)
equals
in class Object
public Object evaluate(Object context)
evaluate
in interface com.liferay.portal.kernel.xml.XPath
public String getText()
getText
in interface com.liferay.portal.kernel.xml.XPath
public org.dom4j.XPath getWrappedXPath()
public int hashCode()
hashCode
in class Object
public boolean matches(com.liferay.portal.kernel.xml.Node node)
matches
in interface com.liferay.portal.kernel.xml.XPath
public Number numberValueOf(Object context)
numberValueOf
in interface com.liferay.portal.kernel.xml.XPath
public List<com.liferay.portal.kernel.xml.Node> selectNodes(Object context)
selectNodes
in interface com.liferay.portal.kernel.xml.XPath
public List<com.liferay.portal.kernel.xml.Node> selectNodes(Object context, com.liferay.portal.kernel.xml.XPath sortXPath)
selectNodes
in interface com.liferay.portal.kernel.xml.XPath
public List<com.liferay.portal.kernel.xml.Node> selectNodes(Object context, com.liferay.portal.kernel.xml.XPath sortXPath, boolean distinct)
selectNodes
in interface com.liferay.portal.kernel.xml.XPath
public com.liferay.portal.kernel.xml.Node selectSingleNode(Object context)
selectSingleNode
in interface com.liferay.portal.kernel.xml.XPath
public void sort(List<com.liferay.portal.kernel.xml.Node> nodes)
sort
in interface com.liferay.portal.kernel.xml.XPath
public void sort(List<com.liferay.portal.kernel.xml.Node> nodes, boolean distinct)
sort
in interface com.liferay.portal.kernel.xml.XPath
public String toString()
toString
in class Object
public String valueOf(Object context)
valueOf
in interface com.liferay.portal.kernel.xml.XPath
protected Object toNewContext(Object context)
protected Object toOldContext(Object context)