Class: MetadataEnum

MetadataEnum

new MetadataEnum(options)

A metadata enum.

Name Type Description
options object

Object with the following properties:

Name Type Default Description
id string

The ID of the enum.

values Array.<MetadataEnumValue>

The enum values.

valueType MetadataComponentType MetadataComponentType.UINT16 可选

The enum value type.

name string 可选

The name of the enum.

description string 可选

The description of the enum.

extras * 可选

Extra user-defined properties.

extensions object 可选

An object containing extensions.

Members

readonly descriptionstring

The description of the enum.

readonly extensionsobject

An object containing extensions.

readonly extras*

Extra user-defined properties.

readonly idstring

The ID of the enum.

readonly namestring

The name of the enum.

readonly valuesArray.<MetadataEnumValue>

The enum values.

readonly valueTypeMetadataComponentType

The enum value type.