Documentation Language: Swift

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

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

Creates a new enum literal.

?
init(object:)

Initialise an EEnumLiteral from a DynamicEObject.

Instance Properties

V
eAnnotations

Annotations attached to this literal.

V
eClass

The metaclass describing this enum literal.

V
id

Unique identifier for this literal.

V
literal

The string literal representation (optional).

V
name

The name of this literal.

V
value

The integer value of this literal.

Instance Methods

F
eGet(_:)

Reflectively retrieves the value of a feature.

F
eIsSet(_:)

Checks whether a feature has been explicitly set.

F
eSet(_:_:)

Reflectively sets the value of a feature.

F
eUnset(_:)

Unsets a feature, returning it to its default value.

F
hash(into:)

Hashes the essential components of this literal.

Type Aliases

T
EEnumLiteral.Classifier

The type of classifier for this enum literal.

Default Implementations

Relationships

Conforms To

See Also

Classifiers

P
EClassifier

A classifier (type) in the Ecore metamodel.

S
EDataType

A data type in the Ecore metamodel.

S
EEnum

An enumeration type in the Ecore metamodel.