TDAListExpression

Overview

The TDAListExpression class is a descendant of the TDAWhereExpression class and represents a complex expression, represented by a list of expressions.

Location

 

constructor Create  overload

Creates a new expression.

constructor Create

constructor Create (array of TDAWhereExpression)  overload

Creates a new expression with the specified collection of TDAWhereExpression items.

constructor Create(const aValues: array of TDAWhereExpression)

Parameters:


Add

Adds a new value to the current collection of TDAWhereExpression items.

procedure Add(aValue: TDAWhereExpression)

Parameters:

  • aValue: item.

Count

Represents the count of items in the current TDAListExpression collection. This property is read-only.

property Count: Integer read write

Delete

Deletes an item from the current collection of TDAWhereExpression itmes specified by index.

procedure Delete(index: Integer)

Parameters:

  • index: position.

DoValidate  protected    (declared in TDAWhereExpression)

Raised exception if aRaiseException is set

procedure DoValidate(aRaiseException: boolean; aName: string)

Parameters:

  • aRaiseException: specifies should the exception be raised or not.
  • aName: Name of property

Insert

Inserts the specified TDAWhereExpression item to the current collection in the specified position.

procedure Insert(Position: Integer; aValue: TDAWhereExpression)

Parameters:

  • Position: position.
  • aValue: item

Item

Represents the item in the current ListExpression collection with the specified index.

property Item[idx: Integer]: TDAWhereExpression read write

ParseException  protected    (declared in TDAWhereExpression)

Raises EDAWhereParseXmlException.

procedure ParseException(aName: string)

Parameters:

  • aName: property name.

ParseExpression (IXmlNode, string): TDAWhereExpression  protected overload    (declared in TDAWhereExpression)

Calls ParseException if xr is nil, otherwise calls overload ParseException.

function ParseExpression(xr: IXmlNode; aName: string): TDAWhereExpression

Parameters:

  • xr: source node.
  • aName: Name of property

ParseExpression (IXmlNode): TDAWhereExpression  overload    (declared in TDAWhereExpression)

Creates new Where expression from XML node.

class function ParseExpression(xr: IXmlNode): TDAWhereExpression

Parameters:

  • xr: given XML node.

ReadFromXml  override

Reads where expression from the XML.

procedure ReadFromXml(xr: IXmlNode)

Parameters:

  • xr: source node

Remove

Removes the first occurrence of the specified TDAWhereExpression object from the current collection.

procedure Remove(aValue: TDAWhereExpression)

Parameters:

  • aValue: item

Validate  override

Validates properties of expression.

procedure Validate

WriteToXml  override

Writes where expression to the XML.

procedure WriteToXml(sw: IXmlNode)

Parameters:

  • sw: destination node

 

Count

Represents the count of items in the current TDAListExpression collection. This property is read-only.

property Count: Integer read write

Item

Represents the item in the current ListExpression collection with the specified index.

property Item[idx: Integer]: TDAWhereExpression read write

 

ParseExpression (IXmlNode): TDAWhereExpression  overload    (declared in TDAWhereExpression)

Creates new Where expression from XML node.

class function ParseExpression(xr: IXmlNode): TDAWhereExpression

Parameters:

  • xr: given XML node.

 

constructor Create  overload

Creates a new expression.

constructor Create

constructor Create (array of TDAWhereExpression)  overload

Creates a new expression with the specified collection of TDAWhereExpression items.

constructor Create(const aValues: array of TDAWhereExpression)

Parameters:


Add

Adds a new value to the current collection of TDAWhereExpression items.

procedure Add(aValue: TDAWhereExpression)

Parameters:

  • aValue: item.

Delete

Deletes an item from the current collection of TDAWhereExpression itmes specified by index.

procedure Delete(index: Integer)

Parameters:

  • index: position.

DoValidate  protected    (declared in TDAWhereExpression)

Raised exception if aRaiseException is set

procedure DoValidate(aRaiseException: boolean; aName: string)

Parameters:

  • aRaiseException: specifies should the exception be raised or not.
  • aName: Name of property

Insert

Inserts the specified TDAWhereExpression item to the current collection in the specified position.

procedure Insert(Position: Integer; aValue: TDAWhereExpression)

Parameters:

  • Position: position.
  • aValue: item

ParseException  protected    (declared in TDAWhereExpression)

Raises EDAWhereParseXmlException.

procedure ParseException(aName: string)

Parameters:

  • aName: property name.

ParseExpression (IXmlNode, string): TDAWhereExpression  protected overload    (declared in TDAWhereExpression)

Calls ParseException if xr is nil, otherwise calls overload ParseException.

function ParseExpression(xr: IXmlNode; aName: string): TDAWhereExpression

Parameters:

  • xr: source node.
  • aName: Name of property

ReadFromXml  override

Reads where expression from the XML.

procedure ReadFromXml(xr: IXmlNode)

Parameters:

  • xr: source node

Remove

Removes the first occurrence of the specified TDAWhereExpression object from the current collection.

procedure Remove(aValue: TDAWhereExpression)

Parameters:

  • aValue: item

Validate  override

Validates properties of expression.

procedure Validate

WriteToXml  override

Writes where expression to the XML.

procedure WriteToXml(sw: IXmlNode)

Parameters:

  • sw: destination node