Class XPathHelper


  • public class XPathHelper
    extends Object
    This singleton provides support for querying DataObjects via xpath expression where the result is a List containing one or more simple types or DataObjects.
    • Constructor Detail

      • XPathHelper

        public XPathHelper()
    • Method Detail

      • getInstance

        public static XPathHelper getInstance()
        Returns the one and only instance of this singleton.
      • prepareExpression

        public XPathExpression prepareExpression​(String expression)
        Create and return an XPathExpression, using the provided string to create the expression.
        Parameters:
        expression -
        Returns:
      • evaluate

        public List evaluate​(String expression,
                             commonj.sdo.DataObject dataObject)
        Evaluate an XPath expression in the specified context and return a List containing any types or DataObjects that match the search criteria.
        Parameters:
        expression -
        dataObject -
        Returns:
        List containing zero or more entries