Structure
EEnumLiteral
A literal value within an enumeration.
struct EEnumLiteral
Overview
EEnumLiteral represents a single named value in an EEnum, similar to enum cases in Swift or constants in Java enums.
Example
let blackbird = EEnumLiteral(
name: "blackbird",
value: 0,
literal: "BLACKBIRD"
)
Topics
Operators
Compares two enum literals for equality.
Initializers
Creates a new enum literal.
Initialise an EEnumLiteral from a DynamicEObject.
Instance Properties
Annotations attached to this literal.
The metaclass describing this enum literal.
Unique identifier for this literal.
The string literal representation (optional).
The name of this literal.
The integer value of this literal.
Instance Methods
Reflectively retrieves the value of a feature.
Checks whether a feature has been explicitly set.
Reflectively sets the value of a feature.
Unsets a feature, returning it to its default value.
Hashes the essential components of this literal.
Type Aliases
The type of classifier for this enum literal.
Default Implementations
Relationships
Conforms To
See Also
Classifiers
A classifier (type) in the Ecore metamodel.
A data type in the Ecore metamodel.
An enumeration type in the Ecore metamodel.