Questions tagged [class-diagram]

UML diagram describing object classes and relations among them.

A class diagram is a component of the Unified Modeling Language decribing object classes in the object oriented programming paradigm :

  • What they contain (attributes)
  • How they behave (methods)
  • How they are linked together (dependancy)
1529 questions
219
votes
4 answers

Generate UML Class Diagram from Java Project

Is there a good tool that can help to reverse engineer Java classes to UML that will show an overview of how my classes are related to each other? It doesn't need to decompile from JAR file because I have the sources. I know there are quite a few…
Carven
  • 14,988
  • 29
  • 118
  • 161
158
votes
10 answers

How to generate Class Diagram (UML) on Android Studio (IntelliJ Idea)

I've try to search and found this link, but Ctrl+Alt+Shift+D doesn't work. I also use find Action Ctrl+Shift+A to find action about diagram and uml but found nothing. I also search for the uml plugin, but most of them didn't work with new version of…
UmAnusorn
  • 10,420
  • 10
  • 72
  • 100
141
votes
7 answers

Use IntelliJ to generate class diagram

How do I get IntelliJ 10.5 (on the Mac) to generate a class diagram showing all of the classes in my project? I'm sure I'm overlooking something obvious, but I can only get the "Show Diagram" feature to show one class at a time. (I also figured…
Zack
  • 6,232
  • 8
  • 38
  • 68
128
votes
6 answers

How to use doxygen to create UML class diagrams from C++ source

I have been searching for some material that describes how to generate simple class diagrams with doxygen, but couldn't find one. Can anybody help? I need to create diagrams as shown below from a set of C++ files. If there are better tools to…
softwarematter
  • 28,015
  • 64
  • 169
  • 263
118
votes
11 answers

PHP UML Generator

How do I generate UML diagram based on existing classes in PHP?
Jeffrey04
  • 6,138
  • 12
  • 45
  • 68
112
votes
4 answers

Eclipse plugin for generating a class diagram

What is a good Eclipse plugin for generating a class diagram (for a project)? This image right here is exactly what I'm talking about.
user238033
108
votes
6 answers

In UML class diagrams, what are Boundary Classes, Control Classes, and Entity Classes?

I'm now using NetBeans as my IDE-of-choice, and it has a plugin for UML modeling. In the class diagram, there are model elements known as Boundary Class, Control Class, and Entity Class. However, I can't find a good definition of them, but I did…
Thomas Owens
  • 114,398
  • 98
  • 311
  • 431
89
votes
6 answers

UML relationships - dashed line vs solid line

What is the difference between these 2 relationships? Edit: Also if you could provide a simple code example illustrating the difference, that would be really helpful!
NPS
  • 6,003
  • 11
  • 53
  • 90
88
votes
3 answers

What does a diamond sign signify in UML class diagrams?

Consider the below two diagrams. The top one contains a plain arrow at the right end, and the bottom one contains an arrow with a diamond at the left end and a plain arrow at the right end. The great book GoF has usages of both of these two kinds…
Geek
  • 26,489
  • 43
  • 149
  • 227
74
votes
1 answer

constructor with parameters in UML class diagram

How would you create an uml class diagram for constructors with parameters? For default constructors (no parameters) you do policyholder() for the diagram and in the pseudo-code For constructors with parameters would you do the same…
blake
  • 771
  • 1
  • 6
  • 9
66
votes
1 answer

How to represent an attribute's data type as an array of objects on class diagram?

I have a SportsCentre class which contains an array of Employee objects. Which is the right way to show that an attribute's data type is an array of objects? I have found two different versions online: the first one uses the ArrayList<>…
Yiannis
  • 929
  • 2
  • 11
  • 14
57
votes
9 answers

Enterprise Architect: Export UML Diagrams in high quality

With Enterprise Architect (Version 9.2), I created some Class and Sequence UML Diagrams. Now I need those Diagrams in a Word document. My first approach was to just cut them out with the Windows 7 Snipping Tool and paste them into the document. But…
Toby
  • 3,815
  • 14
  • 51
  • 67
53
votes
2 answers

Generate a class diagram from Visual Studio

I would like to generate a class diagram with relations for my visual studio project. I opened my solution, added a new ModelingProject, added a new .classdiagram file but when i want to drag my folders or my classes onto the diagram layout I get…
sebastian.roibu
  • 2,579
  • 7
  • 37
  • 59
51
votes
8 answers

UML aggregation vs association

From Martin Fowler's UML Distilled: In the pre-UML days, people were usually rather vague on what was aggregation and what was association. Whether vague or not, they were always inconsistent with everyone else. As a result, many modelers think…
Andna
  • 6,539
  • 13
  • 71
  • 120
45
votes
4 answers

C# code for association, aggregation, composition

I am trying to confirm my understanding of what the code would look like for association, aggregation & composition. So here goes. Aggregation: Has-a. It has an existing object of another type public class Aggregation { SomeUtilityClass objSC …
user20358
  • 14,182
  • 36
  • 114
  • 186
1
2 3
99 100