#include <XPath2Result.hpp>
Public Types | |
Public Constants | |
enum | ResultType { FIRST_RESULT = 100, ITERATOR_RESULT = 101, SNAPSHOT_RESULT = 102 } |
Public Member Functions | |
Destructor | |
virtual | ~XPath2Result () |
Destructor. | |
Functions introduced in DOM Level 3 | |
virtual ResultType | getResultType () const =0 |
Returns the result type of this result. | |
virtual bool | isNode () const =0 |
Returns true if the result has a current result and the value is a node. | |
virtual const xercesc::DOMTypeInfo * | getTypeInfo () const =0 |
Returns the DOM type info of the current result node or value. | |
virtual double | asDouble () const =0 |
Conversion of the current result to double. | |
virtual int | asInt () const =0 |
Conversion of the current result to int. | |
virtual const XMLCh * | asString () const =0 |
Conversion of the current result to string. | |
virtual bool | asBoolean () const =0 |
Conversion of the current result to boolean. | |
virtual const xercesc::DOMNode * | asNode () const =0 |
Retrieve the current node value. | |
virtual bool | getInvalidIteratorState () const =0 |
Signifies that the iterator has become invalid. | |
virtual unsigned long | getSnapshotLength () const =0 |
The number of items in the result snapshot. | |
virtual bool | iterateNext ()=0 |
Iterates and returns true if the current result is the next item from the sequence or false if there are no more items. | |
virtual bool | snapshotItem (unsigned long index)=0 |
Sets the current result to the indexth item in the snapshot collection. | |
Non-standard Extension | |
virtual void | release ()=0 |
Called to indicate that this object (and its associated children) is no longer in use and that the implementation may relinquish any resources associated with it and its associated children. | |
Protected Member Functions | |
Hidden constructors | |
XPath2Result () |
Since evaluation of an XPath 2.0 expression can result in various result types, this object makes it possible to discover and manipulate the type and value of the result.
|
FIRST_RESULT
ITERATOR_RESULT
SNAPSHOT_RESULT |
|
Destructor.
|
|
|
|
Conversion of the current result to boolean.
|
|
Conversion of the current result to double. If the native double type of the DOM binding does not directly support the exact IEEE 754 result of the XPath expression, then it is up to the definition of the binding to specify how the XPath number is converted to the native binding number.
|
|
Conversion of the current result to int.
|
|
Retrieve the current node value.
|
|
Conversion of the current result to string.
|
|
Signifies that the iterator has become invalid.
|
|
Returns the result type of this result.
|
|
The number of items in the result snapshot. Valid values for snapshotItem indices are 0 to snapshotLength-1 inclusive.
|
|
Returns the DOM type info of the current result node or value.
|
|
Returns true if the result has a current result and the value is a node.
|
|
Iterates and returns true if the current result is the next item from the sequence or false if there are no more items.
|
|
Called to indicate that this object (and its associated children) is no longer in use and that the implementation may relinquish any resources associated with it and its associated children. Access to a released object will lead to unexpected result. |
|
Sets the current result to the indexth item in the snapshot collection. If index is greater than or equal to the number of items in the list, this method returns false. Unlike the iterator result, the snapshot does not become invalid, but may not correspond to the current document if it is mutated.
|