Class Operator

Represents a filter comparator.

Hierarchy

  • OnmsEnum<number>
    • Operator

Constructors

  • Parameters

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

    Returns Operator

Properties

aliases: string[] = ...

Aliases for the command-line.

Accessors

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
  • Given a label ('and', 'or'), return the corresponding operator.

    Parameters

    • label: string

    Returns any