permaculture playing cards*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes depicting enumeration type in class diagram. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "depicting enumeration type in class diagram." Watch "depicting enumeration type in class diagram." New topic
Author

depicting enumeration type in class diagram.

Pratik Das
Greenhorn

Joined: Jun 28, 2008
Posts: 20
In a class diagram, how do you associate an enumeration with a class which uses this enumeration member variable.
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
java.lang.Enum<E> is a class. You can use a box to represent the enum. You can add a stereotype to indicate that it is an Enum.


[ August 26, 2008: Message edited by: James Clark ]
Pratik Das
Greenhorn

Joined: Jun 28, 2008
Posts: 20
Thanks James. Do you mean it is a "uses" relationship?
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Not sure what you are asking. In terms of the diagram the line from one box to the other is a symbol for an Association relationship.

In the UML there are three types of relationships:

1) Association

2) Composition

3) Aggregation


There is nothing in the UML called uses relationship.

Hope this helps.
[ August 27, 2008: Message edited by: James Clark ]
Pratik Das
Greenhorn

Joined: Jun 28, 2008
Posts: 20
Ok so enumeration is a directed association. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: depicting enumeration type in class diagram.
 
Similar Threads
what is the use of Enumeration class?
Class Diagram and Object Diagram
what are the difference between class diagram and sequence diagram?
enumeratio or iterator
MVC and UML : Architecture and Modeling