Documentation Language: Swift

Initializer

init(object:shouldIgnoreUnresolvedFeatures:)

Initialise an EClass from a DynamicEObject.

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

Parameters

object

The DynamicEObject representing an EClass.

shouldIgnoreUnresolvedFeatures

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

Return Value

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

Discussion

Extracts class metadata and structural features from a dynamic object. When structural features cannot be resolved, behaviour depends on the shouldIgnoreUnresolvedFeatures parameter.