"enum" CTO Statement Syntax

Q

What is the syntax of the "enum" CTO Statement

✍: FYIcenter.com

A

The "enum" statement declares an enumeration data type to represent data values with predefined options. Here is the syntax of an "enum" statement:

enum type_name [extends super_type] {
  o value_option
  ...
}

Syntax elements used in a "transaction" CTO Statement:

  • "type_name" - A required field to specify the name for this data type.
  • "extends super_type" - An optional field to specify the super "enum" type, if this data type is an extension data type.
  • "o" - A required flag to specify a value option for this data type.
  • "value_option" - A required field to specify the value option.

 

⇒ CTO Language Primitive Data Types

⇐ "concept" CTO Statement Syntax

⇑ Business Network CTO Modeling Language

⇑⇑ Hyperledger Composer Tutorials

2021-06-19, 826🔥, 0💬