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
13
votes
1 answer

What is "Derived attributes" in a Class Diagram?

I am going through a class diagram. Some attributes inside the class are marked with a slash "/" ex ( / -accountBalance:Dollar = 0 ). When we say "derived attribute", can we mean it is Enumeration or other class instance (generally a custom data…
user160677
  • 4,233
  • 12
  • 42
  • 55
12
votes
1 answer

How do I denote a pure virtual function in a UML class diagram?

I am a student learning C++. I am creating a UML class diagram for my program that involves inheritance and abstract / concrete classes, but I'm not too sure how I would denote a pure virtual function. Any help is appreciated, thank you!
john grey
  • 123
  • 1
  • 1
  • 4
12
votes
2 answers

What is Navigability in UML diagrams?

What is an example of Navigability in UML diagrams? My professor has provided the follow figure, but I can't seem to figure it out:
Peter Tao
  • 1,668
  • 6
  • 18
  • 29
12
votes
1 answer

How to show attribute as "readonly" in UML?

I want to describe some models of an API in a diagram. Is there a standard how to mark an attribute as readonly? These attributes are set by the system and cannot be modified by the API consumer. Currently I abuse the class diagram notation for…
nipeco
  • 760
  • 2
  • 9
  • 24
12
votes
1 answer

VS2015 Enterprise Reverse Engineer Code to UML

I'm looking at the various Architecture features of Visual Studio 2015 Enterprise edition. All looks good. However, I have code that is all ready written and I would like to generate Class Diagrams from it. NOT the standard Add Class Diagram in…
Andez
  • 5,588
  • 20
  • 75
  • 116
12
votes
10 answers

UML Diagram Tool - Eclipse plugin?

Can anyone help me? I am currently using Eclipse Java IDE, and would like a plug-in that will automatically look at my classes and draw up a class diagram in UML. Any suggestions?
KP65
  • 13,315
  • 13
  • 45
  • 46
12
votes
2 answers

How to represent "event" in a UML Class Diagram?

This is my code snippet public class Notation : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; private Notes _note; } How to write public event PropertyChangedEventHandler PropertyChanged; in UML Class…
Moses Aprico
  • 1,951
  • 5
  • 30
  • 53
12
votes
7 answers

How can I create a class diagram with NetBeans' 6.8 UML module?

It seems to me the UML module of NetBeans is a bit too much hidden. In NetBeans 6.5 it was very easy to create an UML diagram. No plugin installation necessary or sth. like. Read my post where I found a zip file to install the UML module. And now,…
Karussell
  • 17,085
  • 16
  • 97
  • 197
12
votes
0 answers

How do I show (collection) associations in Visual Studio's generated class diagrams?

Visual studio doesn't seem to recognize c++ STL classes properly when it comes to generating class diagrams. There are two options when right-clicking class elements in the generated diagrams: - Show as Association - Show as Collection…
12
votes
3 answers

How Can I Save A Class Diagram In Intellij?

I discovered that in Intellij I can create nice class diagrams by going to New > Diagram > Java Class Diagram. I can do everything that I want to do, except figure out how to save the diagram after I'm done. When I create a diagram, save it, shut…
HappyCoder86
  • 2,267
  • 3
  • 25
  • 40
12
votes
4 answers

UML to Java code generation tool

I have recently been looking for a tool to generate Java code from a UML diagram. I have already looked at Papyrus and Omondo for Eclipse. The problem I am having is that the tool is needed in a number of projects that are loaded with JPA and JAXB…
Martin Nielsen
  • 1,865
  • 6
  • 30
  • 54
11
votes
2 answers

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: public enum Enumeration_type { LITERAL_A("attr1_value",…
Kit Ostrihon
  • 824
  • 2
  • 14
  • 36
11
votes
2 answers

Code Iris plugin on Android Studio

I am trying to make code iris plugin work on Android studio. I press right click -> Create Code Iris graph and then I get a notification that my graph is ready. But I do not know when this graph is stored, what is the name of the file created and…
Cap Barracudas
  • 2,347
  • 4
  • 23
  • 54
10
votes
2 answers

JavaScript libraries for drawing UML class diagramms

I am looking for a javaScript library which automatically draws UML class diagramms from the code I provide (not yet sure but most probably from xml-files). The classes should have individual features like color or type size. Therefore I am going…
maxpower
  • 101
  • 1
  • 1
  • 3
10
votes
3 answers

How to create a class diagram for class library in VS2017?

I have a C# class library project in Visual Studio 2017 that I would like to create a class diagram for. The Class Designer is installed. Looking at the context menu for the namespace or any of the classes in the Class View I see the "View Class…
Toby
  • 9,696
  • 16
  • 68
  • 132