Hide Comments

The enum element defines a data type consisting of a set of named Enumeration Constants. Enumeration elements are of type int or string.

Syntax

enum (int | string) <enum-name>

[<enumeration-constant>]...

Examples

/** Integer enum using assigned, sequential integer values. */

enum int TaxFilingStatusEnum

DRAFT

PENDING_CPA_REVIEW

PENDING_CLIENT_REVIEW

FILED

AMENDED

CLOSED

 

/** Integer enum using explicit integer values. */

enum int SpecialValueEnum

NORMAL_VALUE : 0

NOT_AVAILABLE : -65534

NOT_APPLICABLE : -65533

RESTRICTED : -65532

 

/** Currency code enum using explicit string values. */

enum string CurrencyCodeEnum

EUR : "Euro"

CAD : "Canadian Dollar"

USD : "US Dollar"

CHF : "Swiss Franc"

JPY : "Japanese Yen"

INR : "Indian Rupee"

BRL : "Brazilian Real"

Parameters

Field Name

Type

Description

int

SName(Built-in Primitive Type - int)

Indicates that this is an int type Enumeration.

string

SName(Built-in Primitive Type - string)

Indicates that this is a string type Enumeration.

<enum-name>

Name

The Name assigned to this Enumeration. MUST be unique in the context of the parent Data Model.

Child Elements

Name

Topic

Description

<enumeration-constant>

Enumeration Constant

Defines a named value included in the Enumeration.

Parent Elements

Data Model

Created with Help & Manual 6 and styled with Premium Pack Version 2.51 © by EC Software