com.liferay.portal.xml
Class XPathImpl
java.lang.Object
com.liferay.portal.xml.XPathImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.xml.XPath
public class XPathImpl
- extends java.lang.Object
- implements com.liferay.portal.kernel.xml.XPath
View Source
- Author:
- Brian Wing Shun Chan
Constructor Summary |
XPathImpl(org.dom4j.XPath xPath)
|
Method Summary |
boolean |
booleanValueOf(java.lang.Object context)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
evaluate(java.lang.Object context)
|
java.lang.String |
getText()
|
org.dom4j.XPath |
getWrappedXPath()
|
int |
hashCode()
|
boolean |
matches(com.liferay.portal.kernel.xml.Node node)
|
java.lang.Number |
numberValueOf(java.lang.Object context)
|
java.util.List<com.liferay.portal.kernel.xml.Node> |
selectNodes(java.lang.Object context)
|
java.util.List<com.liferay.portal.kernel.xml.Node> |
selectNodes(java.lang.Object context,
com.liferay.portal.kernel.xml.XPath sortXPath)
|
java.util.List<com.liferay.portal.kernel.xml.Node> |
selectNodes(java.lang.Object context,
com.liferay.portal.kernel.xml.XPath sortXPath,
boolean distinct)
|
com.liferay.portal.kernel.xml.Node |
selectSingleNode(java.lang.Object context)
|
void |
sort(java.util.List<com.liferay.portal.kernel.xml.Node> nodes)
|
void |
sort(java.util.List<com.liferay.portal.kernel.xml.Node> nodes,
boolean distinct)
|
protected java.lang.Object |
toNewContext(java.lang.Object context)
|
protected java.lang.Object |
toOldContext(java.lang.Object context)
|
java.lang.String |
valueOf(java.lang.Object context)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
XPathImpl
public XPathImpl(org.dom4j.XPath xPath)
booleanValueOf
public boolean booleanValueOf(java.lang.Object context)
- Specified by:
booleanValueOf
in interface com.liferay.portal.kernel.xml.XPath
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
evaluate
public java.lang.Object evaluate(java.lang.Object context)
- Specified by:
evaluate
in interface com.liferay.portal.kernel.xml.XPath
getText
public java.lang.String getText()
- Specified by:
getText
in interface com.liferay.portal.kernel.xml.XPath
getWrappedXPath
public org.dom4j.XPath getWrappedXPath()
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
matches
public boolean matches(com.liferay.portal.kernel.xml.Node node)
- Specified by:
matches
in interface com.liferay.portal.kernel.xml.XPath
numberValueOf
public java.lang.Number numberValueOf(java.lang.Object context)
- Specified by:
numberValueOf
in interface com.liferay.portal.kernel.xml.XPath
selectNodes
public java.util.List<com.liferay.portal.kernel.xml.Node> selectNodes(java.lang.Object context)
- Specified by:
selectNodes
in interface com.liferay.portal.kernel.xml.XPath
selectNodes
public java.util.List<com.liferay.portal.kernel.xml.Node> selectNodes(java.lang.Object context,
com.liferay.portal.kernel.xml.XPath sortXPath)
- Specified by:
selectNodes
in interface com.liferay.portal.kernel.xml.XPath
selectNodes
public java.util.List<com.liferay.portal.kernel.xml.Node> selectNodes(java.lang.Object context,
com.liferay.portal.kernel.xml.XPath sortXPath,
boolean distinct)
- Specified by:
selectNodes
in interface com.liferay.portal.kernel.xml.XPath
selectSingleNode
public com.liferay.portal.kernel.xml.Node selectSingleNode(java.lang.Object context)
- Specified by:
selectSingleNode
in interface com.liferay.portal.kernel.xml.XPath
sort
public void sort(java.util.List<com.liferay.portal.kernel.xml.Node> nodes)
- Specified by:
sort
in interface com.liferay.portal.kernel.xml.XPath
sort
public void sort(java.util.List<com.liferay.portal.kernel.xml.Node> nodes,
boolean distinct)
- Specified by:
sort
in interface com.liferay.portal.kernel.xml.XPath
valueOf
public java.lang.String valueOf(java.lang.Object context)
- Specified by:
valueOf
in interface com.liferay.portal.kernel.xml.XPath
toNewContext
protected java.lang.Object toNewContext(java.lang.Object context)
toOldContext
protected java.lang.Object toOldContext(java.lang.Object context)