Documentation Language: Swift

Initializer

init(id:name:value:literal:eAnnotations:)

Creates a new enum literal.

init(id: EUUID = EUUID(), name: String, value: Int, literal: String? = nil, eAnnotations: [EAnnotation] = [])

Parameters

id

Unique identifier (generates a new UUID if not provided).

name

The name of the literal.

value

The integer value (typically ordinal position).

literal

Optional string representation (defaults to name if not provided).

eAnnotations

Annotations (empty by default).