[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XPath' (#lazutils)

TXPathVariable

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Base class used to represent an XPath variables and results.

Declaration

Source position: laz2_xpath.pas line 256

type TXPathVariable = class

protected

  FRefCount: Integer;

  procedure Error();

  

Raises an exception with the specified message and arguments.

public

  class function TypeName; virtual; abstract;

  

Gets the Type name for the XPath variable class instance.

  procedure Release;

  

Decrements the reference count for the variable.

  function AsNodeSet; virtual;

  

Gets the XPath variable as a node set.

  function AsBoolean; virtual; abstract;

  

Gets the XPath variable as a Boolean value.

  function AsNumber; virtual; abstract;

  

Gets the XPath variable as a Numeric value.

  function AsText; virtual; abstract;

  

Gets the XPath variable as a String value.

end;

Inheritance

TXPathVariable

  

Base class used to represent an XPath variables and results.

|

TObject

Description

TXPathVariable is a class used to represent Variables and Results for an XPath expression. TXPathVariable is a base class, and contains abstract methods which must be implemented in descendent classes for the Node Set, String, Number, and Boolean data types allowed in XPath variables and results.

TXPathVariable is used as the return type for the Evaluate method in TXPathExprNode and descendent classes. It is also used as the return value for Functions implemented in TXPathEnvironment.


Version 4.0 Generated 2025-05-03 Home