Class XPathHelper
- java.lang.Object
-
- org.eclipse.persistence.sdo.helper.extension.XPathHelper
-
public class XPathHelper extends java.lang.ObjectThis singleton provides support for querying DataObjects via xpath expression where the result is a List containing one or more simple types or DataObjects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classXPathHelper.QueryPartA QueryPart knows the name of the property to be queried against on a given DataObject, as well as the value to be used in the comparison.
-
Constructor Summary
Constructors Constructor Description XPathHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Listevaluate(java.lang.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.static XPathHelpergetInstance()Returns the one and only instance of this singleton.XPathExpressionprepareExpression(java.lang.String expression)Create and return an XPathExpression, using the provided string to create the expression.
-
-
-
Method Detail
-
getInstance
public static XPathHelper getInstance()
Returns the one and only instance of this singleton.
-
prepareExpression
public XPathExpression prepareExpression(java.lang.String expression)
Create and return an XPathExpression, using the provided string to create the expression.- Parameters:
expression-- Returns:
-
evaluate
public java.util.List evaluate(java.lang.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
-
-