You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to export a meta-model (i.e. the structure aspect of a langauge) from MPS, modelix uses the MPS solution `metamodel-export`.
13
13
This solution maps the structure of a language to corresponding serializable data classes of the https://api.modelix.org/2.3.0/model-api/org.modelix.model.data/index.html[`model-api`] (e.g. `LanguageData` and `ConcepData`).
14
-
Further, the `metamodel-expor` provides a command line interface to export these data classes to a JSON file from outside of MPS.
14
+
Further, the `metamodel-export` provides a command line interface to export these data classes to a JSON file from outside of MPS.
The *Model API* (`model-api`) is a Kotlin component which provides a metamodel independent model API.
@@ -21,25 +32,28 @@ The `model-api` provides three distinct parts
21
32
3. `org.modelix.model.area`: Model grouping and transactional access
22
33
23
34
24
-
=== `org.modelix.model.api`
35
+
=== 1. `org.modelix.model.api`
25
36
26
37
The following diagram provides a meta-model of the `model-api`
27
38
28
39
image::model-api.api.png[]
29
40
30
-
Using the `model-api` an **untyped** access to model content is always possible.
31
-
In case you want to use domain-specific model access, the xref:core:reference/component-model-api-gen.adoc[model-api-gen] provides a generator which generates a typed model API specializes the API provided by the `model-api`.
41
+
An **untyped** access to model content is possible when only using the `model-api`.
42
+
In case you want to use domain-specific model access (i.e. **typed** access), the xref:core:reference/component-model-api-gen.adoc[model-api-gen] provides a generator which generates a typed model API from your existing meta-model.
43
+
This generated API specializes the `model-api`.
32
44
33
45
34
-
=== `org.modelix.model.data`
46
+
=== 2.`org.modelix.model.data`
35
47
36
48
Additionally, the `model-api` provides serializable data classes to represent a meta-model.
37
49
The following diagrams show a class diagram of the data classes for the model and meta-model.
0 commit comments