Structure
ATLTargetModel
Adapter for ATL target models to conform to ECore IModel interface.
struct ATLTargetModel
Overview
Target models provide write access for creating transformed output data. The adapter supports element creation, modification, and deletion whilst maintaining consistency with the underlying resource structure.
Example Usage
let targetAdapter = ATLTargetModel(
resource: personsResource,
alias: "Persons",
metamodel: personsMetamodel
)
let newPerson = try await targetAdapter.createElement(personClass)
Topics
Initializers
Create a new target model adapter.
Instance Properties
Model alias for namespace identification.
Target models are writable.
Associated metamodel package for type operations.
Reference model (metamodel) for this target model.
The underlying resource for storing created elements.
Instance Methods
Add an existing element to this model.
Clear all created element tracking.
Create a new element of the specified type.
Creates a new element of the specified type.
Get statistics about element creation.
Get all elements of a specific type.
Check if an object belongs to this model.
Remove an element from this model.
Relationships
Conforms To
See Also
Model Adapters
Adapter for ATL source models to conform to ECore IModel interface.
Factory for creating model adapters from ATL execution context.