XPathExpression
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.
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private final List | |
| private final boolean | |
| private final List | |
| private final List | |
| private final XPathExpression |
| Access | Constructor and Description |
|---|---|
| public | XPathDiagnosticImpl(Object
The context against which the XPath query was run. dcontext, XPathExpression<T> The dxpath, List<?> XPathExpression instance which created this diagnostic.The data as returned from the XPath library. inraw, boolean If the XPath library was allowed to terminate after the first result. dfirstonly)Create a useful Diagnostic instance for tracing XPath query results. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public List | getFilteredResults()
Implements org. |
| public List | getRawResults()
Implements org. |
| public List | getResult()
Implements org. |
| public XPathExpression | |
| public boolean | isFirstOnly()
Implements org. |
| public String |
| dcontext | back to summary |
|---|---|
| private final Object dcontext | |
| dfiltered | back to summary |
|---|---|
| private final List<Object> dfiltered | |
| dfirstonly | back to summary |
|---|---|
| private final boolean dfirstonly | |
| draw | back to summary |
|---|---|
| private final List<Object> draw | |
| dresult | back to summary |
|---|---|
| private final List<T> dresult | |
| dxpath | back to summary |
|---|---|
| private final XPathExpression<T> dxpath | |
| XPathDiagnosticImpl | back to summary |
|---|---|
| public XPathDiagnosticImpl(Object dcontext, XPathExpression<T> dxpath, List<?> inraw, boolean dfirstonly) Create a useful Diagnostic instance for tracing XPath query results.
| |
| getContext | back to summary |
|---|---|
| public Object getContext() Implements org.
| |
| getFilteredResults | back to summary |
|---|---|
| public List Implements org. Doc from org. Returns the XPath results which are not returned by the regular evaluate process. | |
| getRawResults | back to summary |
|---|---|
| public List Implements org. Doc from org. Returns the XPath results before any were filtered. | |
| getResult | back to summary |
|---|---|
| public List Implements org. Doc from org. Returns the results as they would be returned by the regular evaluate process (read-only). | |
| getXPathExpression | back to summary |
|---|---|
| public XPathExpression Implements org.
| |
| isFirstOnly | back to summary |
|---|---|
| public boolean isFirstOnly() Implements org. Doc from org. Indicate whether the query was evaluated as a first-only evaluation. XPath libraries are allowed to stop processing the results after the first result is retrieved if first-only processing is set.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |