T
- The generic type of the results from the XPathExpression
public class XPathDiagnosticImpl<T> extends Object implements XPathDiagnostic<T>
This class tries to make all the data available as part of the internal structure which may assist people who are stepping-through the code from a debugging environment.
Constructor and Description |
---|
XPathDiagnosticImpl(Object dcontext,
XPathExpression<T> dxpath,
List<?> inraw,
boolean dfirstonly)
Create a useful Diagnostic instance for tracing XPath query results.
|
Modifier and Type | Method and Description |
---|---|
Object |
getContext() |
List<Object> |
getFilteredResults()
Returns the XPath results which are not returned by the regular evaluate
process.
|
List<Object> |
getRawResults()
Returns the XPath results before any were filtered.
|
List<T> |
getResult()
Returns the results as they would be returned by the regular evaluate
process (read-only).
|
XPathExpression<T> |
getXPathExpression() |
boolean |
isFirstOnly()
Indicate whether the query was evaluated as a first-only evaluation.
|
String |
toString() |
public XPathDiagnosticImpl(Object dcontext, XPathExpression<T> dxpath, List<?> inraw, boolean dfirstonly)
dcontext
- The context against which the XPath query was run.dxpath
- The XPathExpression
instance which created this diagnostic.inraw
- The data as returned from the XPath library.dfirstonly
- If the XPath library was allowed to terminate after the first result.public Object getContext()
getContext
in interface XPathDiagnostic<T>
public XPathExpression<T> getXPathExpression()
getXPathExpression
in interface XPathDiagnostic<T>
XPathExpression
instance that generated this
diagnostic.public List<T> getResult()
XPathDiagnostic
getResult
in interface XPathDiagnostic<T>
public List<Object> getFilteredResults()
XPathDiagnostic
getFilteredResults
in interface XPathDiagnostic<T>
public List<Object> getRawResults()
XPathDiagnostic
getRawResults
in interface XPathDiagnostic<T>
public boolean isFirstOnly()
XPathDiagnostic
isFirstOnly
in interface XPathDiagnostic<T>
Copyright ? 2014 Jason Hunter, Brett McLaughlin. All Rights Reserved.