Java Enum UML Representation

I am creating a UML class diagram for Java Enum with multiple values. Example:

public enum ExtractType {
      Type1 ("Value1", "Value2"),
      Type2 ("Value1", "Value2"),
      ...
}

      

Does the UML spec indicate anything about including values ​​when drawing an Enum class diagram? Or is it as simple as below?

    +---------------------+
    |   <<enumeration>>   |
    |     ExtractType     |
    +---------------------+
    |        Type1        |
    |        Type2        |
    |        .....        |
    +---------------------+

      

+3


source to share


1 answer


Yes, your example is great. This is described in many places in the   UML Specification : enter image description here



+6


source







All Articles