Documentation Language: Swift

Structure

EcoreModel

Default implementation wrapping Resource.

struct EcoreModel

Overview

This implementation provides the standard ECore model abstraction, delegating operations to the underlying Resource whilst maintaining the IModel contract.

Topics

Operators

Initializers

?
init(resource:referenceModel:isTarget:)

Creates a new EcoreModel wrapping the given resource.

Instance Properties

V
isTarget

Indicates if this model allows modifications.

V
referenceModel

The reference model (metamodel) for this model.

V
resource

The underlying resource containing the model elements.

Instance Methods

F
createElement(ofType:)

Creates a new element of the specified metatype.

F
getElementsByType(_:)

Returns all elements matching the given type.

F
isModelOf(_:)

Checks if an object belongs to this model.

Default Implementations

Relationships

Conforms To