Method
registerMetamodel(_:uri:)
Registers a metamodel package with its namespace URI.
func registerMetamodel(_ package: EPackage, uri: String)
Parameters
package-
The root package of the metamodel to register.
uri-
The namespace URI identifying this metamodel.
Discussion
This enables namespace-based metamodel resolution without global variables. The package becomes available for model instantiation and reference resolution.