Documentation Language: Swift

Initializer

init(url:enableDebugging:)

Loads an EPackage from a .ecore file.

init(url: URL, enableDebugging: Bool = false) async throws

Parameters

url

URL to the .ecore file.

enableDebugging

Whether to enable debug output during parsing.

Discussion

Parses the .ecore file and constructs a fully-formed EPackage with all classifiers and subpackages.

Example

let url = URL(fileURLWithPath: "/path/to/Model.ecore")
let package = try await EPackage(url: url)
print("Loaded package: \(package.name)")