public class XPathHelper extends Object
Modifier and Type | Class and Description |
---|---|
class |
XPathHelper.QueryPart
A 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 and Description |
---|
XPathHelper() |
Modifier and Type | Method and Description |
---|---|
protected List |
addResultsToList(Object obj,
List results)
Convenience method that will add the provided object to the 'results' list
if the object is non-null.
|
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.
|
static XPathHelper |
getInstance()
Returns the one and only instance of this singleton.
|
protected String |
getPathWithAtRemoved(String expression)
Convenience method that strips off '@' portion, if
one exists.
|
protected String |
getPathWithPrefixRemoved(String expression)
Convenience method that strips off 'ns0:' portion, if
one exists.
|
XPathExpression |
prepareExpression(String expression)
Create and return an XPathExpression, using the provided
string to create the expression.
|
protected boolean |
shouldCallXPathEngine(String expression)
Convenience method for determining if XPathEngine should be
called, i.e.
|
public static XPathHelper getInstance()
public XPathExpression prepareExpression(String expression)
expression
- public List evaluate(String expression, commonj.sdo.DataObject dataObject)
expression
- dataObject
- protected List addResultsToList(Object obj, List results)
obj
- results
- protected String getPathWithAtRemoved(String expression)
expression
- protected String getPathWithPrefixRemoved(String expression)
expression
- protected boolean shouldCallXPathEngine(String expression)
expression
- Copyright © 2007–2020 Eclipse.org - EclipseLink Project. All rights reserved.