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
24
votes
7 answers

Javadoc Inserting UML Diagrams

Is there a way to embed images into my JavaDoc? Basically i want to include some UML diagrams explaining the hierarchy of my classes in some of the documentation. Thanks!
Mo .
  • 661
  • 2
  • 9
  • 17
23
votes
1 answer

JavaScript code to Class Diagram

I am looking for a tool that can generate class diagram from JavaScript code. Similar to the ones for C++ and Java. Is there any?
LogInIssue
23
votes
2 answers

How do I generate Diagrams and UML of Kotlin code?

How do I generate UML and diagrams for Kotlin code? I don't think getting the paid version of Intellij is an option for me. I have been trying Intellij plugins and I haven't found anything that works yet. I would like to generate the diagrams and…
Philip Nguyen
  • 871
  • 2
  • 10
  • 29
23
votes
2 answers

UML class model how to model many to many relationship

I have read several tutorials on what a UML model should contain and what it shouldn't. As a developer, I always think in terms of a relational data model where you could never have a many-to-many relationship between tables. Now, with a UML class…
Peter
  • 14,221
  • 15
  • 70
  • 110
22
votes
6 answers

generate Class diagram for iphone app

i know how to generate class diagram in Xcode for iPhone app. but i am searching for alternate way to represent it, because my app is very much big and it will difficult to put diagram and explanation in my thesis report. any idea how to represent…
Pooja
  • 2,162
  • 5
  • 33
  • 64
22
votes
2 answers

Update the 'code map' in Visual Studio 2013 automatically?

I've started liking the "show on code map" that appears when you right click any class/method/field etc within Visual Studio 2013. However, I've noticed that it doesn't seem to be smart enough to 'redraw' (or be commanded to redraw) when the…
DeepSpace101
  • 13,110
  • 9
  • 77
  • 127
19
votes
2 answers

How to add a Class Diagram to an ASP.NET Core project in VS 2017?

I followed the How to: Add class diagrams to projects, but I have no "Class Diagram" template in my ASP.NET Core project after installing the ClassDiagram Visual Studio Component (I restarted Visual Studio after the installation of the…
serge
  • 13,940
  • 35
  • 121
  • 205
18
votes
2 answers

Understanding why the extends arrow points in the opposite direction

In class diagrams I typically see something like ClassA extends ClassB where the arrow head points to ClassA. Example, here. This has always confused me. Why is the arrow head not pointing to ClassB?
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231
18
votes
4 answers

How to show a Singleton relationship in a class diagram

If a class contains pointer to a singleton class, can it beaggregation? To my understanding it cannot be a has-a relationship since the class does not make an instance of the singleton class, it is just using it like association relationship.
ahj
  • 745
  • 1
  • 6
  • 13
18
votes
2 answers

class diagram viewer application for python3 source

Is there any application which can generate from python3 source something like the below link (i don't care about the representation rather the perfect content) http://www.codeproject.com/KB/IP/Searcharoo_3/ClassDiagram.png
vpas
  • 513
  • 1
  • 5
  • 18
18
votes
2 answers

How to generate TypeScript UML class diagrams in VS Code?

Are there any tools that can generate a UML class diagram from a project in TypeScript or a similar language?
Daniel Santos
  • 14,328
  • 21
  • 91
  • 174
18
votes
1 answer

In class diagrams, should classes implementing an interface have the method names repeated?

I'm creating some UML diagrams, and I have a large number of classes implementing an interface. Is it necessary for these classes to also list the methods of the interface? It sounds quite trivial but will make the diagram look much simpler if they…
Tim MB
  • 4,413
  • 4
  • 38
  • 48
18
votes
3 answers

how do I add a final variable to class diagram

I am designing a class diagram for scrabble game. In one of the classes, I have final variable declared. Can anybody tell me, how can I indicate a variable as final in the UML class diagram?
Noopur Phalak
  • 313
  • 1
  • 2
  • 6
17
votes
2 answers

UML tool for Qt applications

Any one knows a reliable UML tool for generating class diagrams from Qt applications?
Wazery
  • 15,394
  • 19
  • 63
  • 95
17
votes
6 answers

UML free reverse engineering tool for C++ (.h/.cpp ==> Class Diagram)

What tools are available for creating UML Class Diagrams from a set of .h- or .cpp-files? I am looking for something that... is free runs out of the box on Windows does not require any particular IDE ideally provides a GUI
Ben
  • 15,938
  • 19
  • 92
  • 138