General (#1) - Type casting (#13) - Message List

Type casting
 unsolved

How I can assign a arbitrary type value to a String property? (something like: toString())

e.g.

_b : Boolean;

...

t = _b --Type of t is String

  • Message #29

    I guess this is not possible, if OCL not itself provides means to do this. However you can write a metamodel operation (implemented in generated EMF model code) which does this.

Attachments

No attachments created.