facebook

Hom to create an enumeration

  1. MyEclipse Archived
  2.  > 
  3. UML Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #238906 Reply

    daschneider
    Member

    How do I create an enumeration in a UML class diagram?

    Dave

    #238931 Reply

    Kapil Kapre
    Member

    Dave,
    We currently dont provide a premade Stereotype for that. You need to define your own Enumeration stereotype. Hit the «» Icon on the Properties View toolbar and you can do just that.

    #264969 Reply

    jhm
    Member

    And how could I customize the code generation for getting a valid enum-Implementation?

    class: <<Enum>> Days
    attribute: <<EnumValues>> values : int = {MON,TUE,WED,THU,FRI,SAT,SUN}
    public enum Days {
        MON,TUE,WED,THU,FRI,SAT,SUN
    }
      * use “enum” instead “class” if class has “Enum” stereotype
      * ignore the attribute type and name if it has “EnumValues” stereotype
      * just get the initial values of <<EnumValues>> flagged attribute
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Hom to create an enumeration

You must be logged in to post in the forum log in