Documentation Language: Swift

Method

createEClass(from:shouldIgnoreUnresolvedFeatures:)

Create an EClass from a DynamicEObject with full cross-reference resolution.

func createEClass(from object: any EObject, shouldIgnoreUnresolvedFeatures: Bool = false) async throws -> EClass

Parameters

object

The DynamicEObject representing an EClass.

shouldIgnoreUnresolvedFeatures

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

Return Value

A fully constructed EClass with all structural features resolved.

Discussion

This method constructs an EClass by resolving structural features through UUID-based cross-references. It provides a clean factory interface for creating metamodel classes without polluting the EClass type with resource dependencies.