I have a Text class. Objects of this class will have many versions. So there will be history of text changes.
How to indicate this on class diagram properly?
I need to show when it was changed and by who? Create class for text change? It is littlebit strange. Generalization?
Thanks for answer.
How's this diagram below? (I'm sorry if I am misunderstanding your description.)
Also, the Memento design pattern may help you.
Related
I need to create a Class Diagram with some Model Packages. I have to use Visual Paradigm as modeling editor. The target I'm looking for is a diagram like this one:
My problem is the following: how to create a Class like the classes in this picture?
I'm trying with the default Class command:
but it's not what I'm looking for. The class name must be centered and without the separation line. How can I do this?
I have also tried with Rectangles and Text Boxes overlapped, but in this case I'm not able to draw associations between the classes.
Thanks in advance.
The solution is very simple: you have to hide all the class attributes and methods (thank you, clapas!)
Is it possible to add a class as an attribute of another class?
If it is normal situation, how can I do this?
There are two (possibly three) ways of doing this:
1- using the attribute text.
2- using the association notation.
(3- both)
See this image.
This is the full article by Craig Larman.
This is absolutely normal.
Response by #jurgenreza is comprehensive.
Among the various options he shows, I'm one of the detractors of option 3 (because of redundancy).
I have a file very big file .umlclass. It has a lot of classes, Enumerationtypes, relations.... I want to organize it in the class diagram Editor, but it is impossible because I don't know where the things are.
In the Project Explorer of Eclipse I can see the tree and in the view properties I can see the properties of each one, but I can't see it in the class diagram Editor.
Is there any kind of select or find each resource in the diagram Editor? I'm using the UML2Tools plugin.
Thanks in advance.
Ramón.
Actually the UML2Tools don't have a full fledged editor. Consider using another editor for your Eclipse UML2 Model.
Omondo EclipseUML can read all UML2Tools model.
You just need to to create an empty class diagram and drag and drop one classifier inside the diagram. The project will immediately import all models and then allow you to navigate graphically in the model using the class diagram as a viewer of your model.
It is really good because your diagrams are not anymore the model itself as it is for many tools but only a viewer of your model.
Really cool feature :-)
I'm Using Papyrus UML and I have to use in my diagram, a class which is defined in another .uml file. HowI can do it?
Thank you
You need to create a shortcut but for me this is not usable because I prefer to mix usecase and class diagram elements inside the same model and sometimes even the same diagram.
You can do it with RSA IBM or Omondo EclipseUML.
I do not know particularly about Papyrus, but in UML in general, you should have a Model-element at the top-level, and in there, you create a PackageImport. Now you should be able to set the ``Imported Package'' reference---but the other UML must be loaded from the workspace first:
This is where things become interesting! in the plain Eclipse UML editor, you have to load the resource first using the 'UML Editor' menu or the ``Additional Resources'' sub-tree in the model-outline. I guess Papyrus offers at least the same way through the outline.
I can't see anything to do so whereas stereotype can be shown ?
Finally I got the answer: JDeveloper is not capable of creating stereotypes :( Must wait for future versions.