module:MEnum

module:MEnum

Abstract enum class.

Constructor

(abstract) new (require("MEnum"))()

Methods

(static) getAttributeValues() → {Array}

Description:
  • Get attribute values of the enum class.

    Method ignores any member that doesn't start with k.

Returns:

Values as array of any.

Type
Array

(static) getAttributeValueByAttributeName(attributeName) → {null|*}

Description:
  • Get the value for the given attributeName.

Parameters:
Name Type Description
attributeName string

Name of the attribute.

Returns:
  • If no attribute with given attributeName found null will be returned.

    Type
    null
  • Value of the given attributeName.

    Type
    *