Class XPathImpl

Object
com.liferay.portal.xml.XPathImpl
All Implemented Interfaces:
com.liferay.portal.kernel.xml.XPath, Serializable

public class XPathImpl extends Object implements com.liferay.portal.kernel.xml.XPath
Author:
Brian Wing Shun Chan
See Also:
  • Constructor Details

    • XPathImpl

      public XPathImpl(org.dom4j.XPath xPath, Map<String,String> namespaceContextMap)
  • Method Details

    • booleanValueOf

      public boolean booleanValueOf(Object context)
      Specified by:
      booleanValueOf in interface com.liferay.portal.kernel.xml.XPath
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • evaluate

      public Object evaluate(Object context)
      Specified by:
      evaluate in interface com.liferay.portal.kernel.xml.XPath
    • getText

      public 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 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 Number numberValueOf(Object context)
      Specified by:
      numberValueOf in interface com.liferay.portal.kernel.xml.XPath
    • selectNodes

      public List<com.liferay.portal.kernel.xml.Node> selectNodes(Object context)
      Specified by:
      selectNodes in interface com.liferay.portal.kernel.xml.XPath
    • selectNodes

      public List<com.liferay.portal.kernel.xml.Node> selectNodes(Object context, com.liferay.portal.kernel.xml.XPath sortXPath)
      Specified by:
      selectNodes in interface com.liferay.portal.kernel.xml.XPath
    • selectNodes

      public List<com.liferay.portal.kernel.xml.Node> selectNodes(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(Object context)
      Specified by:
      selectSingleNode in interface com.liferay.portal.kernel.xml.XPath
    • sort

      public void sort(List<com.liferay.portal.kernel.xml.Node> nodes)
      Specified by:
      sort in interface com.liferay.portal.kernel.xml.XPath
    • sort

      public void sort(List<com.liferay.portal.kernel.xml.Node> nodes, boolean distinct)
      Specified by:
      sort in interface com.liferay.portal.kernel.xml.XPath
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • valueOf

      public String valueOf(Object context)
      Specified by:
      valueOf in interface com.liferay.portal.kernel.xml.XPath
    • toNewContext

      protected Object toNewContext(Object context)
    • toOldContext

      protected Object toOldContext(Object context)