Main Page   Class Hierarchy   Compound List   File List   Compound Members  

XPath::Value Class Reference

An XPath value. More...

#include <xpath_value.h>

Inheritance diagram for XPath::Value::

XPath::XPathNode XPath::Boolean XPath::Exception XPath::NodeSet XPath::Number XPath::String List of all members.

Public Types

enum  ValueType {
  ValueNull, ValueException, ValueNodeSet, ValueBoolean,
  ValueNumber, ValueString
}

Public Methods

 Value ()
 Value (const Value &res)
virtual ~Value ()
bool isNull () const
bool isException () const
bool isNodeSet () const
bool isBoolean () const
bool isNumber () const
bool isString () const
ValueType type () const
Exception toException ()
NodeSet toNodeSet ()
Boolean toBoolean ()
Number toNumber ()
String toString ()
virtual QString qstring () const
QCString toCString () const

Protected Methods

 Value (ValueType t)

Detailed Description

An XPath value.

In addition to the four types required by the XPath specification, we define a null type and a type for reporting exceptions.

See REC-xpath-19991116 1.0 Section 1.

Version:
Id:
xmldemo.h,v 1.3 2002/02/18 00:45:47 rich Exp
Author:
Richard Moore, rich@kde.org


Member Function Documentation

virtual QString qstring const [virtual]
 

Returns a dump of the node.

Reimplemented from XPath::XPathNode.

Reimplemented in XPath::Exception, XPath::String, XPath::Boolean, and XPath::Number.


The documentation for this class was generated from the following file:
Generated at Sat Feb 15 02:18:36 2003 for 'KHTML::XPath' by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001