Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OnmsVersion

Hierarchy

  • OnmsVersion

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new OnmsVersion(version?: string, displayVersion?: string): OnmsVersion
  • construct a new version

    Parameters

    • Optional version: string

      the numeric version (x.x.x format)

    • Optional displayVersion: string

      the full version (including, eg, x.x.x-SNAPSHOT)

    Returns OnmsVersion

Properties

Private dv

dv: string

the internal display version

version

version: string

the numeric version (x.x.x format)

Accessors

displayVersion

  • get displayVersion(): string
  • set displayVersion(displayVersion: string): void
  • the display version

    Returns string

  • the display version

    Parameters

    • displayVersion: string

    Returns void

Methods

clone

  • Create a new OnmsVersion object from this existing one.

    Returns OnmsVersion

eq

  • eq(compare?: string): any
  • this version is equal to the passed version

    Parameters

    • Default value compare: string = "0.0.0"

    Returns any

ge

  • ge(compare?: string): any
  • this version is greater than or equal to the passed version

    Parameters

    • Default value compare: string = "0.0.0"

    Returns any

gt

  • gt(compare?: string): any
  • this version is greater than the passed version

    Parameters

    • Default value compare: string = "0.0.0"

    Returns any

le

  • le(compare?: string): any
  • this version is less than or equal to the passed version

    Parameters

    • Default value compare: string = "0.0.0"

    Returns any

lt

  • lt(compare?: string): any
  • this version is less than the passed version

    Parameters

    • Default value compare: string = "0.0.0"

    Returns any

toString

  • toString(): string
  • a human-readable representation of this version

    Returns string

Generated using TypeDoc