Options
All
  • Public
  • Public/Protected
  • All
Menu

Class V2FilterProcessor

Converts a Filter into ReSTv2 FIQL parameters.

Hierarchy

  • V2FilterProcessor

Implements

Index

Properties

Static NULL_DATE

NULL_DATE: string = "1970-01-01T00:00:00.000+0000"

Constant used to represent null dates in the V2 API. This must be explicitly set as the restriction value when using either the NULL or NOTNULL comparators on date fields.

Static NULL_VALUE

NULL_VALUE: string = ""

Constant used to represent null values in the V2 API.

Methods

getParameters

Static Private toFIQL

  • toFIQL(clauses: Clause[]): string
  • Given a list of clauses, recursively generate the FIQL query string.

    Parameters

    Returns string

Static Private toFIQLComparator

  • toFIQLComparator(comparator: Comparator): "==" | "!=" | "=gt=" | "=lt=" | "=ge=" | "=le="
  • Given a comparator, convert it to a correspond comparator that can be used in the FIQL expression.

    Parameters

    Returns "==" | "!=" | "=gt=" | "=lt=" | "=ge=" | "=le="

Static Private toFIQLOperator

  • toFIQLOperator(operator: Operator): ";" | ","
  • Given an operator, convert it to the corresponding FIQL operator.

    Parameters

    Returns ";" | ","

Static Private toFIQLValue

  • Given a restriction, compute the value to use in the FIQL expression.

    Parameters

    Returns any

Generated using TypeDoc