Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PredicateTree

Implements

  • IPredicateTree

Index

Constructors

constructor

  • Parameters

    Returns PredicateTree

Properties

Private _ascendChild

_ascendChild: any

Private _defaultJunction

_defaultJunction: any

Private _tree

_tree: any

Accessors

defaultJunction

  • get defaultJunction(): TPredicatePropertiesJunction
  • Returns TPredicatePropertiesJunction

queryId

  • get queryId(): string
  • Returns string

rootNodeId

  • get rootNodeId(): string
  • Returns string

Methods

acceptVisitor

  • Parameters

    Returns void

appendPredicate

  • appendPredicate(parentId: string, predicate: TPredicateNode): string
  • Parameters

    Returns string

getChildrenIds

  • getChildrenIds(predicateId: string): string[]
  • Parameters

    • predicateId: string

    Returns string[]

getPredicateById

  • Parameters

    • predicateId: string

    Returns null | TPredicateNode

getPredicateByIdOrThrow

  • Parameters

    • predicateId: string

    Returns TPredicateNode

getPredicateJunctionPropsById

  • getPredicateJunctionPropsById(predicateId: string): null | TPredicateJunctionPropsWithChildIds
  • Parameters

    • predicateId: string

    Returns null | TPredicateJunctionPropsWithChildIds

getPredicateJunctionPropsByIdOrThrow

  • getPredicateJunctionPropsByIdOrThrow(predicateId: string): TPredicateJunctionPropsWithChildIds
  • Parameters

    • predicateId: string

    Returns TPredicateJunctionPropsWithChildIds

getPredicatePropsById

  • Parameters

    • predicateId: string

    Returns null | TPredicateProperties

getPredicatePropsByIdOrThrow

  • Parameters

    • predicateId: string

    Returns TPredicateProperties

isBranch

  • isBranch(predicateId: string): boolean
  • Parameters

    • predicateId: string

    Returns boolean

removePredicate

  • removePredicate(predicateId: string): void
  • Parameters

    • predicateId: string

    Returns void

replacePredicate

  • replacePredicate(predicateId: string, predicate: TPredicateNode): void
  • Parameters

    Returns void

toJson

  • Returns TSerializedPredicateTree

Static deserialize

  • Parameters

    • serializedTree: string

    Returns PredicateTree

Static fromFlatObject

  • fromFlatObject(serialized: SerializedTree<TPredicateNodeJson>, newTreeRootNode?: string): PredicateTree
  • Parameters

    • serialized: SerializedTree<TPredicateNodeJson>
    • Optional newTreeRootNode: string

    Returns PredicateTree

Static isBranchOperator

  • isBranchOperator(operator: string): boolean
  • Parameters

    • operator: string

    Returns boolean

Static serialize

  • Parameters

    Returns string

Static toFlatObject

  • Parameters

    Returns SerializedTree<TPredicateNode>

Generated using TypeDoc