Certain types of model elements can be roundtripped.
In general, you can roundtrip the following model
elements:
- Classes and class aggregations (template class,
types, nested classes)
- Class elements (attributes, bodies of primitive
operations, arguments, types)
- Class member functions (name, return type, arguments)
- Operations (comments, name, arguments type/name,
arguments addition/removal, return type, visibility)
- Global elements (functions, variables, types, template
functions)
- Relations (comments, name, other class association,
multiplicity, visibility, static-property)
- Events (comments, name, default argument value,
arguments type, arguments addition/removal, return type)
- Actions placed on transition labels
- Actions placed inside a state: on entry, on exit,
or as a static reaction.
- Code within annotations
- #define-s.