Skip to content
Advertisement

Tag: uml

UML modelling enumeration with attributes

I would like to create an UML diagram with Java enumerations (enum), that have one or more attributes, but I am confused about how to do it. For example an enum could be declared like this: Without the attributes, it is easy: But how do you model it with attributes elegantly? Should it be like this? I found only this

UML Squence Diagram – visualize validation of data

A method performs successively validation checks with some passed data. If a validation check fails, a exception will be immediately thrown and the method aborted. How can visualize this flow with UML sequence diagrams? Is it possible / allowed to show exceptions in sequence diagrams? A possible solution perhaps is to use nested alternatives. Answer UML does not provide something

Advertisement