Class TXQValueNode

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TXQValueNode = class(TXQValueJSONIQStructuredItem)

Description

Type for a node

Hierarchy

Overview

Fields

Public node: TTreeNode;

Methods

Public constructor create(anode: TTreeNode = nil); reintroduce; virtual;
Public class function classKind: TXQValueKind; override;
Public function toBoolean: boolean; override;
Public function toBooleanEffective: boolean; override;
Public function toString: string; override;
Public function toDateTime: TDateTime; override;
Public function toFloatChecked(scontext: TXQStaticContext): xqfloat; override;
Public function toNode: TTreeNode; override;
Public function clone: IXQValue; override;
Public function jsonSerialize(nodeFormat: TTreeNodeSerialization; insertWhitespace: boolean = false; const indent: string = ''): string; override;
Public function xmlSerialize(nodeFormat: TTreeNodeSerialization; sequenceTag: string = 'seq'; elementTag: string = 'e'; objectTag: string = 'object'): string; override;
Public class function nodeTypeAnnotation(tn: TTreeNode): TXSType; static;

Description

Fields

Public node: TTreeNode;

reference to a tree node in the html tree.
Attention: this tree is shared, you don't have to free anything, but the pointer becomes invalid if the tree is free

Methods

Public constructor create(anode: TTreeNode = nil); reintroduce; virtual;
 
Public class function classKind: TXQValueKind; override;
 
Public function toBoolean: boolean; override;

Converts the TXQValue dynamically to boolean

Public function toBooleanEffective: boolean; override;

Returns true

Public function toString: string; override;

Converts the TXQValue dynamically to string

Public function toDateTime: TDateTime; override;

Converts the TXQValue dynamically to TDateTime

Public function toFloatChecked(scontext: TXQStaticContext): xqfloat; override;
 
Public function toNode: TTreeNode; override;

Returns the node

Public function clone: IXQValue; override;
 
Public function jsonSerialize(nodeFormat: TTreeNodeSerialization; insertWhitespace: boolean = false; const indent: string = ''): string; override;
 
Public function xmlSerialize(nodeFormat: TTreeNodeSerialization; sequenceTag: string = 'seq'; elementTag: string = 'e'; objectTag: string = 'object'): string; override;
 
Public class function nodeTypeAnnotation(tn: TTreeNode): TXSType; static;
 

Generated by PasDoc 0.14.0.