DOMXPathResult
interface represents the result of the evaluation of an XPath 1.0 expression within the context of a particular node.
More...
#include <DOMXPathResult.hpp>
Public Types | |
Public Contants | |
enum | resultType { ANY_TYPE = 0, NUMBER_TYPE = 1, STRING_TYPE = 2, BOOLEAN_TYPE = 3, UNORDERED_NODE_ITERATOR_TYPE = 4, ORDERED_NODE_ITERATOR_TYPE = 5, UNORDERED_NODE_SNAPSHOT_TYPE = 6, ORDERED_NODE_SNAPSHOT_TYPE = 7, ANY_UNORDERED_NODE_TYPE = 8, FIRST_ORDERED_NODE_TYPE = 9 } |
Public Member Functions | |
Destructor | |
virtual | ~DOMXPathResult () |
Destructor. | |
Functions introduced in DOM Level 3 | |
virtual bool | getBooleanValue () const =0 |
Returns the boolean value of this result. | |
virtual bool | getInvalidIteratorState () const =0 |
Returns the state of the iterator. | |
virtual double | getNumberValue () const =0 |
Returns the number value of this result. | |
virtual short | getResultType () const =0 |
Returns the result type of this result. | |
virtual DOMNode * | getSingleNodeValue () const =0 |
Returns the single node value of this result. | |
virtual unsigned long | getSnapshotLength () const =0 |
Returns the snapshot length. | |
virtual const XMLCh * | getStringValue () const =0 |
Returns the string value of this result. | |
virtual DOMNode * | iterateNext () const =0 |
Iterates and returns the next node from the node set or nullif there are no more nodes. | |
virtual DOMNode * | snapshotItem (unsigned long index) const =0 |
Returns the indexth item in the snapshot collection. | |
Protected Member Functions | |
Hidden constructors | |
DOMXPathResult () |
DOMXPathResult
interface represents the result of the evaluation of an XPath 1.0 expression within the context of a particular node.
Since evaluation of an XPath expression can result in various result types, this object makes it possible to discover and manipulate the type and value of the result.
|
ANY_TYPE
ANY_UNORDERED_NODE_TYPE
BOOLEAN_TYPE
FIRST_ORDERED_NODE_TYPE
NUMBER_TYPE
ORDERED_NODE_ITERATOR_TYPE
ORDERED_NODE_SNAPSHOT_TYPE
STRING_TYPE
UNORDERED_NODE_ITERATOR_TYPE
UNORDERED_NODE_SNAPSHOT_TYPE |
|
|
|
Destructor.
|
|
Returns the boolean value of this result.
|
|
Returns the state of the iterator.
|
|
Returns the number value of this result.
|
|
Returns the result type of this result.
|
|
Returns the single node value of this result.
|
|
Returns the snapshot length.
|
|
Returns the string value of this result.
|
|
Iterates and returns the next node from the node set or nullif there are no more nodes.
|
|
Returns the indexth item in the snapshot collection. If index is greater than or equal to the number of nodes in the list, this method returns null. Unlike the iterator result, the snapshot does not become invalid, but may not correspond to the current document if it is mutated.
|