Represents a filter comparator.

Hierarchy

  • OnmsEnum<number>
    • Operator

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • id: number
    • label: string
    • Rest ...aliases: string[]

    Returns API.Operator

Properties

aliases: string[] = ...

Aliases for the command-line.

Accessors

  • get label(): string
  • get the label of this enum entry

    Returns string

Methods

  • Whether this comparator matches the given comparator string.

    Parameters

    • comparator: string

    Returns boolean

  • convert this enum to a string suitable for display

    Returns string

  • convert to the JSON representation

    Returns { id: number; label: string }

    • id: number
    • label: string
  • convert this enum to a string

    Returns number

  • Given a label ('and', 'or'), return the corresponding operator.

    Parameters

    • label: string

    Returns any

Generated using TypeDoc