Name

XpathValue — Returned by XPath eval() function.

Synopsis

class XpathValue
  :  : public RefCountedWrappedObjectSernaApi::RefCountedWrappedObject
 {
public:
  // construct/copy/destruct
  XpathValue(const SString &);
  XpathValue(double);
  XpathValue(bool);
  XpathValue(const XpathNodeSet &);
  XpathValue(SernaApiBase * = 0);
  ~XpathValue();

  // public member functions

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

Description

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

XpathValue construct/copy/destruct

  1. XpathValue(const SString & );


  2. XpathValue(double );


  3. XpathValue(bool );


  4. XpathValue(const XpathNodeSet & );


  5. XpathValue(SernaApiBase * = 0);


  6. ~XpathValue();


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. void setString(const SString & ) ;

    Set xpath value as string.


  6. void setDouble(double ) ;

    Set xpath value as double.


  7. void setBool(bool ) ;

    Set xpath value as boolean.


  8. void setNodeSet(const XpathNodeSet & ) ;

    Set xpath value as nodeset.


  9. void 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.