|Initialise Map in OCL [message #1797996]
||Fri, 09 November 2018 16:40
| Florian Amberg
Registered: November 2018
I need to store some values in a Map where the keys and values are Tuples of Strings. I currently have my Pseudomap declared like this:
rel : Set(
k : Tuple(rst : String, ct : String),
v : Tuple(rt1 : String, rt2 : String)
It is working, but I rather have a real Map.
In the OCL standard library, it says, that a Map(K, V) type is supported, but I cannot seem to make it work and i cannot find an example of how to use it. So could someone give me an example of how to use the Map type in OCL?
Powered by FUDForum
. Page generated in 0.02121 seconds