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
To configure the JSon serializer/deserializer, we use a TypeMap to define the mapping between the EMF Interfaces and their respective Implementation class. However, this TypeMap is only used in the GModelElementTypeAdapter, which means only direct children of a GModelElement (and GModelElements themselves) can be properly serialized. When introducing a deeper data-type structure, (de)serialization fails, and we need to introduce custom TypeAdapters to solve it.
Instead of defining the TypeMap inside of the GModelElementTypeAdapter, we should (automatically) instantiate 1 TypeAdapter per EClass, so that all EMF-based TypeAdapters can work properly.
The text was updated successfully, but these errors were encountered:
To configure the JSon serializer/deserializer, we use a TypeMap to define the mapping between the EMF Interfaces and their respective Implementation class. However, this TypeMap is only used in the GModelElementTypeAdapter, which means only direct children of a GModelElement (and GModelElements themselves) can be properly serialized. When introducing a deeper data-type structure, (de)serialization fails, and we need to introduce custom TypeAdapters to solve it.
Instead of defining the TypeMap inside of the GModelElementTypeAdapter, we should (automatically) instantiate 1 TypeAdapter per EClass, so that all EMF-based TypeAdapters can work properly.
The text was updated successfully, but these errors were encountered: