Structure
ATLSourceModel
Adapter for ATL source models to conform to ECore IModel interface.
struct ATLSourceModel
Overview
Source models provide read-only access to input data for transformations. The adapter bridges ATL’s resource-based model representation to the ECore execution engine’s IModel interface, enabling seamless integration with navigation and query operations.
Example Usage
let sourceAdapter = ATLSourceModel(
resource: familiesResource,
alias: "Families",
metamodel: familiesMetamodel
)
let engine = ECoreExecutionEngine(models: [
"Families": sourceAdapter
])
Topics
Initializers
Create a new source model adapter.
Instance Properties
Model alias for namespace identification.
Source models are read-only.
Associated metamodel package for type queries.
Reference model (metamodel) for this source model.
The underlying resource containing model elements.
Instance Methods
Creates a new element of the specified type.
Find elements matching a predicate.
Get all elements in the model.
Get all elements of a specific type.
Check if an object belongs to this model.
Relationships
Conforms To
See Also
Model Adapters
Adapter for ATL target models to conform to ECore IModel interface.
Factory for creating model adapters from ATL execution context.