Documentation Language: Swift

Structure

ResourceProxy

A proxy representing an unresolved cross-resource reference

struct ResourceProxy

Overview

ResourceProxy stores information about a reference to an object in another resource that hasn’t been loaded yet. When the target resource is loaded, the proxy can be resolved to the actual object.

Usage Example

// Create a proxy for a cross-resource reference
let proxy = ResourceProxy(uri: "department-b.xmi", fragment: "/")

// Later, resolve the proxy when the resource is loaded
if let object = await proxy.resolve(in: resourceSet) {
    // Use the resolved object
}

Topics

Operators

Initializers

?
init(uri:fragment:)

Creates a new resource proxy

Instance Properties

V
fragment

The fragment identifier within the external resource (e.g., “/” or “//@members.0”)

V
uri

The URI of the external resource (relative or absolute)

Instance Methods

F
resolve(in:)

Resolve the proxy to an actual object

F
resolveObject(in:)

Resolve the proxy to an actual object (convenience method)

Default Implementations

Relationships

Conforms To