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)
1289 questions
205
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
  • 12,832
  • 24
  • 97
  • 139
142
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
  • 7,853
  • 8
  • 57
  • 89
125
votes
6 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
  • 5,156
  • 8
  • 29
  • 47
111
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
111
votes
11 answers

PHP UML Generator

How do I generate UML diagram based on existing classes in PHP?
Jeffrey04
  • 5,428
  • 10
  • 40
  • 62
99
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
  • 25,053
  • 59
  • 155
  • 250
90
votes
5 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
  • 107,741
  • 94
  • 299
  • 427
74
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
  • 23,609
  • 39
  • 133
  • 212
73
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
  • 5,261
  • 8
  • 46
  • 80
55
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,575
  • 12
  • 43
  • 64
50
votes
1 answer

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

Which way is the right one to show that an attribute's data type is an array of objects? I have found two different versions online. I have a SportsCentre class and I also have an Employee class
Yiannis
  • 709
  • 2
  • 7
  • 13
32
votes
3 answers

How to show Dependency Injection on a UML class diagram?

How do I show Dependency Injection of an object or class in a UML class diagram?
Roman
  • 59,060
  • 84
  • 230
  • 322
31
votes
2 answers

C# code to class diagram

I have a C# solution which has 2 projects in it and I need to generate class diagram from code. I know there is a built-in diagram tool in visual studio, but I'm using 2010 express and it doesn't have that. Is there any free software that is able to…
isklenar
  • 928
  • 2
  • 14
  • 30
29
votes
2 answers

Shortcut for denoting or implying getters and setters in UML class diagrams

In a UML class diagram, if a class has 5 private attributes that need to be mutable and readable, the UML gets pretty ugly with 10 get/set methods even without any of the class' interesting functionality: Ugliness aside, I feel like the UML should…
kdbanman
  • 9,073
  • 8
  • 40
  • 74
29
votes
1 answer

How to build project-wide UML diagram in IntelliJ IDEA?

Trying to reverse-engineer existing project and it would be of great help to see how classes collaborate/depend on each other. Is there a way to build project-wide UML diagram (or class diagram of any kind) in IntelliJ IDEA using build-in…
Denis Kulagin
  • 7,244
  • 13
  • 50
  • 104
1
2 3
85 86