Documentation Language: Swift

Structure

EcoreReferenceModel

Reference model implementation for EPackages.

struct EcoreReferenceModel

Overview

Represents a metamodel as a reference model within the execution framework. Reference models define the structure and types available for instance models but do not themselves contain instance data. They serve as the schema or metamodel definition that instance models conform to.

Usage

let package = EPackage(name: "company", nsURI: "http://company/1.0", nsPrefix: "comp")
let resource = Resource()
let referenceModel = EcoreReferenceModel(rootPackage: package, resource: resource)

// Use in execution engine
let instanceModel = EcoreModel(resource: instanceResource, referenceModel: referenceModel)

Thread Safety

This struct is Sendable and safe to use across concurrent contexts.

Topics

Initializers

?
init(rootPackage:resource:)

Initialises a new reference model with the specified root package and resource.

Instance Properties

V
isTarget

Indicates whether this model allows modifications.

V
resource

The resource containing the metamodel definition.

V
rootPackage

The root package defining the metamodel structure.

Default Implementations

Relationships

Conforms To