Class OnmsPrimaryType

Represents an OpenNMS "SNMP primary" type.

Hierarchy

  • OnmsEnum<string>
    • OnmsPrimaryType

Implements

Constructors

Accessors

Methods

  • 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: string;
        label: string;
        replace: (pattern: string | RegExp, replaceWith: string) => string;
    }

  • Given an ID, return the matching primary type object.

    Parameters

    • Optionalid: string

    Returns any

  • Given a label, return the matching primary type object.

    Parameters

    • Optionallabel: string

    Returns any