Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a filter comparator.

Hierarchy

  • OnmsEnum<number>
    • Comparator

Index

Constructors

  • new Comparator(id: number, label: string, ...aliases: string[]): API.Comparator

Properties

aliases: string[] = ...

Aliases for the command-line.

Accessors

  • get id(): T
  • get index(): T
  • get label(): string

Methods

  • matches(comparator: string): boolean
  • Whether this comparator matches the given comparator string.

    Parameters

    • comparator: string

    Returns boolean

  • toDisplayString(): string
  • convert this enum to a string suitable for display

    Returns string

  • toJSON(): { id: number; label: string }
  • convert to the JSON representation

    Returns { id: number; label: string }

    • id: number
    • label: string
  • toString(): number

Generated using TypeDoc