Documentation Language: Swift

Structure

ResourceModelWrapper

Lightweight wrapper providing IModel conformance for a Resource.

struct ResourceModelWrapper

Overview

This wrapper enables Resource instances to be registered directly with the execution engine for UUID resolution and model navigation without requiring a separate metamodel reference model. It is primarily used for model-to-text transformations where read-only access suffices.

Topics

Initializers

?
init(resource:)

Creates a new resource model wrapper.

Instance Properties

V
isTarget

Indicates whether this model allows modifications (always false).

V
referenceModel

The reference model for this wrapper.

V
resource

The underlying resource containing the model objects.

Instance Methods

F
createElement(ofType:)

Attempting to create elements throws a read-only error.

F
getElementsByType(_:)

Returns all elements matching the given type.

F
isModelOf(_:)

Checks if an object belongs to this model.

Relationships

Conforms To