OpenNMS.js - v2.6.2-SNAPSHOT
    Preparing search index...

    Class Operator

    Represents a filter comparator.

    Hierarchy

    • OnmsEnum<number>
      • Operator
    Index

    Constructors

    • Parameters

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

      Returns Operator

    Accessors

    Methods

    • Whether this comparator matches the given comparator string.

      Parameters

      • comparator: string

      Returns boolean

    • Parameters

      • pattern: string | RegExp
      • replaceWith: string

      Returns string

    • convert this enum to a string suitable for display

      Returns string

    • convert to the JSON representation

      Returns {
          id: number;
          label: string;
          replace: (pattern: string | RegExp, replaceWith: string) => string;
      }

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

      Parameters

      • label: string

      Returns any