Main Page | Class Hierarchy | Class List | File List | Class Members

HTML_XPathResult Class Reference

Result object of an XPath execution. More...

List of all members.

Public Member Functions

 HTML_XPathResult (const QString &jsref)
bool booleanValue () const
double numberValue () const
HTML_ObjectsingleNodeValue () const
const char * stringValue () const
int snapshotLength () const
HTML_ObjectsnapshotItem (int index) const


Detailed Description

Result object of an XPath execution.

When evauating a XPath statement on any HTML_Object (see HTML_Object::evaluateXPath()), an object of type HTML_XPathResult is returned. This object contains the results of the XPath execution.


Member Function Documentation

bool HTML_XPathResult::booleanValue  )  const
 

Returns the XPath result as boolean value.

double HTML_XPathResult::numberValue  )  const
 

Returns the XPath result as numerical value.

HTML_Object * HTML_XPathResult::singleNodeValue  )  const
 

Returns the first node of the node list if the result of the XPath execution was a node list.

HTML_Object * HTML_XPathResult::snapshotItem int  index  )  const
 

Returns the node at index index of the node list if the result of the XPath execution was a node list.

int HTML_XPathResult::snapshotLength  )  const
 

Returns the number of nodes returned by the XPath execution. If snapshotLength is -1, no node list has been returned.

const char * HTML_XPathResult::stringValue  )  const
 

Returns the XPath result as string value.


Generated on Mon Apr 28 14:33:34 2008 for Squish HTML API by doxygen 1.3.6