Method
loadXMIResource(uri:)
Load an XMI resource from a file URL
func loadXMIResource(uri: String) async throws -> Resource
Parameters
uri-
The URI of the XMI file to load
Return Value
The loaded Resource, either newly loaded or cached from previous load
Discussion
This method is a convenience for loading XMI files without requiring resource factories to be set up. It creates an XMIParser and loads the resource directly.
This method is automatically called when resolving ResourceProxy objects that reference external resources. For example, when a reference like href="department-b.xmi#/" is resolved, this method loads the target resource.