Documentation Language: Swift

Initializer

init(object:shouldIgnoreUnresolvedLiterals:)

Initialise an EEnum from a DynamicEObject.

init?(object: any EObject, shouldIgnoreUnresolvedLiterals: Bool = false)

Parameters

object

The DynamicEObject representing an EEnum.

shouldIgnoreUnresolvedLiterals

If true, continues processing when literal resolution fails; if false, returns nil on resolution failure (default: false).

Return Value

A new EEnum instance, or nil if the object is invalid or missing required attributes.

Discussion

Extracts enum metadata and literals from a dynamic object. When enum literals cannot be resolved, behaviour depends on the shouldIgnoreUnresolvedLiterals parameter.