Name

XpathValue — Returned by XPath eval() function.

Synopsis

class XpathValue
  :  (RefCountedWrappedObjectSernaApi::RefCountedWrappedObject) 
:
  # construct/copy/destruct
  __init__(const SString &)
  __init__(double)
  __init__(bool)
  __init__(const XpathNodeSet &)
  __init__(SernaApiBase * = 0)
  __del__()

  # public member functions

  SString getString() const
  double getDouble() const
  XpathNodeSet getNodeSet() const
  bool getBool() const
  None setString(const SString &) 
  None setDouble(double) 
  None setBool(bool) 
  None setNodeSet(const XpathNodeSet &) 
  None notifyChanged() 

Description

It can represent four basic types (string, double, bool, node-set), as described in XPath specification.

XpathValue construct/copy/destruct

  1. __init__(const SString & )


  2. __init__(double )


  3. __init__(bool )


  4. __init__(const XpathNodeSet & )


  5. __init__(SernaApiBase * = 0)


  6. __del__()


XpathValue public member functions

  1. SString getString() const

    Get xpath value as string.


  2. double getDouble() const

    Get xpath value as double.


  3. XpathNodeSet getNodeSet() const

    Get xpath value as nodeset.


  4. bool getBool() const

    Get xpath value as boolean.


  5. None setString(const SString & )

    Set xpath value as string.


  6. None setDouble(double )

    Set xpath value as double.


  7. None setBool(bool )

    Set xpath value as boolean.


  8. None setNodeSet(const XpathNodeSet & )

    Set xpath value as nodeset.


  9. None notifyChanged()

    Force value change notification. This is intended primarily for the user-defined XSLT functions, which must notify XSLT about change of their return value.