I want to represent some key-value pairs in an UML enum type. For instance, lets say we have some elements and their symbol:
ROAD => 'R'
CAR => 'C'
NOTHING => ' '
In Java, it would be something similar to the following:
public enum AsciiCodes {
ROAD ('R'),
CAR ('C'),
NOTHING (' ');
private final char code;
private AsciiCodes(char code) {
this.code = code;
}
}
How can I represent that in UML?
What I have so far:


