Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OnmsEnum

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new OnmsEnum(id: number, label: string): OnmsEnum
  • construct an enum object with an id and label

    Parameters

    • id: number
    • label: string

    Returns OnmsEnum

Properties

Private i

i: number

the internal index/id

Private l

l: string

the type/label

Accessors

id

  • get id(): number
  • get the index/id of this enum entry

    Returns number

index

  • get index(): number
  • an alias for {@link #id}

    Returns number

label

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

    Returns string

Methods

toJSON

  • toJSON(): object
  • convert to the JSON representation

    Returns object

    • id: number
    • label: string

Generated using TypeDoc