Class TXQValueSequence

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TXQValueSequence = class(TXQValue)

Description

Type for a sequence containing an arbitrary number (>= 0) of other IXQValue

Hierarchy

  • TInterfacedObject
  • TXQValue
  • TXQValueSequence

Overview

Fields

Public seq: TXQVList;

Methods

Public constructor create(capacity: integer = 0);
Public constructor create(firstChild: IXQValue);
Public constructor create(list: TXQVList);
Public class function classKind: TXQValueKind; override;
Public function isUndefined: boolean; override;
Public function toBoolean: boolean; override;
Public function toBooleanEffective: boolean; override;
Public function toInt64: Int64; override;
Public function toDecimal: BigDecimal; override;
Public function toFloatChecked(scontext: TXQStaticContext): xqfloat; override;
Public function toString: string; override;
Public function toJoinedString(const sep: string=' '): string; override;
Public function toDateTime: TDateTime; override;
Public function toNode: TTreeNode; override;
Public function toArray: TXQVArray; override;
Public function toXQVList: TXQVList; override;
Public function getSequenceCount: integer; override;
Public function get(i: integer): IXQValue; override;
Public function GetEnumeratorPtrUnsafe: TXQValueEnumeratorPtrUnsafe; override;
Public function map(const q: string): IXQValue; override;
Public function order(const q: string): IXQValue; 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 procedure add(const value: IXQValue); inline;
Public procedure addOrdered(const node: IXQValue); inline;
Public destructor Destroy; override;

Description

Fields

Public seq: TXQVList;

list of the contained sequence values.

Methods

Public constructor create(capacity: integer = 0);
 
Public constructor create(firstChild: IXQValue);
 
Public constructor create(list: TXQVList);
 
Public class function classKind: TXQValueKind; override;
 
Public function isUndefined: boolean; override;
 
Public function toBoolean: boolean; override;

Converts the first element to boolean

Public function toBooleanEffective: boolean; override;
 
Public function toInt64: Int64; override;

Converts the first element to integer

Public function toDecimal: BigDecimal; override;

Converts the first element to BigDecimal

Public function toFloatChecked(scontext: TXQStaticContext): xqfloat; override;
 
Public function toString: string; override;

Converts the first element to string

Public function toJoinedString(const sep: string=' '): string; override;
 
Public function toDateTime: TDateTime; override;

Converts the first element to TDateTime

Public function toNode: TTreeNode; override;

Converts the first element to a node

Public function toArray: TXQVArray; override;

Returns all elements as array

Public function toXQVList: TXQVList; override;

Returns all elements as list (which must be freed by the caller)

Public function getSequenceCount: integer; override;
 
Public function get(i: integer): IXQValue; override;
 
Public function GetEnumeratorPtrUnsafe: TXQValueEnumeratorPtrUnsafe; override;
 
Public function map(const q: string): IXQValue; override;
 
Public function order(const q: string): IXQValue; 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 procedure add(const value: IXQValue); inline;

Simply adds a value to the sequence (notice that a xpath sequence cannot contain another sequence, so they will be merged)

Public procedure addOrdered(const node: IXQValue); inline;

Adds a value to a sequence of nodes sorted in document order(notice that a xpath sequence cannot contain another sequence, so they will be merged)

Public destructor Destroy; override;
 

Generated by PasDoc 0.14.0.