ConditionEx class

Implements

ExpressionParent

Extends

Condition

Index

Constructors

Public Properties

Protected Properties

Public Methods

Constructors


constructor

The default constructor. ⊕ new ConditionEx(query: Query,tag?: CondTag): ConditionEx

Parameters:


Public Properties


blockId

The block id.

● blockId: string


enabled

● enabled: boolean


expressions

The list of expression.

● expressions: Expression[]


id

● id: string


justAdded

Condition enabled option.

● justAdded: boolean


linkType

The linking type.

● linkType: LinkType


tag

The condition tag.

● tag: CondTag


Protected Properties


_enabled

The value indicating whether this Condition is enabled.

● _enabled: boolean


_id

● _id: string


conditions

The list of conditions.

● conditions: Condition[]


parent

● parent: Condition


query

● query: Query


Public Methods


addCondition

▸ addCondition(cond: Condition): number

Parameters:

Returns number


addExpressionByOperand

▸ addExpressionByOperand(operand: Operand,val?: string): Expression

Parameters:

  • operand: Operand
  • val: string, Optional

Returns Expression


clearConditions

▸ clearConditions(): void

Returns void


expressionChanged

▸ expressionChanged(expr: Expression,oldValue: string): void

Parameters:

Returns void


fireChangedEvent

▸ fireChangedEvent(condPart?: ConditionPart): void

Parameters:

Returns void


getConditions

▸ getConditions(): Condition[]

Returns Condition[]


getExpressionIndex

▸ getExpressionIndex(expr: Expression): number

Parameters:

Returns number


getLevel

▸ getLevel(): number

Returns number


getModel

▸ getModel(): DataModel

Returns DataModel


getOperatorId

▸ getOperatorId(): string

Returns string


getParent

▸ getParent(): Condition

Returns Condition


getQuery

▸ getQuery(): Query

Returns Query


isEmpty

▸ isEmpty(): boolean

Returns boolean


isGroup

▸ isGroup(): boolean

Returns boolean


isInJoin

▸ isInJoin(): boolean

Returns boolean


isParameterized

▸ isParameterized(): boolean

Returns boolean


isReadOnly

▸ isReadOnly(): boolean

Returns boolean


loadFromData

▸ loadFromData(model: DataModel,data: any): void

Parameters:

Returns void


removeConditionAt

▸ removeConditionAt(index: number): void

Parameters:

  • index: number

Returns void


saveToData

▸ saveToData(): any

Returns any


setInJoin

▸ setInJoin(value: boolean): void

Parameters:

  • value: boolean

Returns void


setOperatorId

▸ setOperatorId(newOperatorId: string,silent?: boolean): void

Parameters:

  • newOperatorId: string
  • silent: boolean, Optional

Returns void


setParameterized

▸ setParameterized(value: boolean): void

Parameters:

  • value: boolean

Returns void


setParent

▸ setParent(parent: Condition): void

Parameters:

Returns void


setReadOnly

▸ setReadOnly(value: boolean): void

Parameters:

  • value: boolean

Returns void