• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

umbrello/umbrello

UMLStereotype Class Reference

#include <stereotype.h>

Inheritance diagram for UMLStereotype:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class is used to set up information for a stereotype.

Stereotypes are used essentially as properties of attributes and operations etc.

Sets up stereotype information.

Author:
Jonathan Riddell

Oliver Kellogg Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 28 of file stereotype.h.


Public Member Functions

 UMLStereotype (const QString &name, Uml::IDType id=Uml::id_None)
 UMLStereotype ()
bool operator== (const UMLStereotype &rhs)
virtual ~UMLStereotype ()
virtual void copyInto (UMLObject *lhs) const
virtual UMLObject * clone () const
void incrRefCount ()
void decrRefCount ()
int refCount () const
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
bool showPropertiesDialog (QWidget *parent)

Protected Attributes

int m_refCount

Constructor & Destructor Documentation

UMLStereotype::UMLStereotype ( const QString &  name,
Uml::IDType  id = Uml::id_None 
) [explicit]

Sets up a stereotype.

Parameters:
name The name of this UMLStereotype.
id The unique id given to this UMLStereotype.

Definition at line 24 of file stereotype.cpp.

UMLStereotype::UMLStereotype (  ) 

Sets up a stereotype.

Definition at line 35 of file stereotype.cpp.

UMLStereotype::~UMLStereotype (  )  [virtual]

destructor

Definition at line 40 of file stereotype.cpp.


Member Function Documentation

bool UMLStereotype::operator== ( const UMLStereotype &  rhs  ) 

Overloaded '==' operator.

Definition at line 42 of file stereotype.cpp.

void UMLStereotype::copyInto ( UMLObject *  lhs  )  const [virtual]

Copy the internal presentation of this object into the new object.

Reimplemented from UMLObject.

Definition at line 54 of file stereotype.cpp.

UMLObject * UMLStereotype::clone (  )  const [virtual]

Make a clone of this object.

Implements UMLObject.

Definition at line 59 of file stereotype.cpp.

void UMLStereotype::incrRefCount (  ) 

Increments the reference count for this stereotype.

Definition at line 83 of file stereotype.cpp.

void UMLStereotype::decrRefCount (  ) 

Decrements the reference count for this stereotype.

Definition at line 87 of file stereotype.cpp.

int UMLStereotype::refCount (  )  const

Returns the reference count for this stereotype.

Definition at line 91 of file stereotype.cpp.

void UMLStereotype::saveToXMI ( QDomDocument &  qDoc,
QDomElement &  qElement 
) [virtual]

Saves to the <UML:StereoType> XMI element.

Implements UMLObject.

Definition at line 68 of file stereotype.cpp.

bool UMLStereotype::showPropertiesDialog ( QWidget *  parent  ) 

Display the properties configuration dialog for the stereotype (just a line edit).

Definition at line 74 of file stereotype.cpp.


Member Data Documentation

int UMLStereotype::m_refCount [protected]

Each stereotype object is reference counted, i.e.

client code manages it such that it comes into existence as soon as there is at least one user, and ceases existing when the number of users drops to 0. m_refCount reflects the number of users. It is externally managed, i.e. client code must take care to call incrRefCount() and decrRefCount() as appropriate.

Definition at line 100 of file stereotype.h.


The documentation for this class was generated from the following files:
  • stereotype.h
  • stereotype.cpp

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdesdk

Skip menu "kdesdk"
  • kate
  •     kate
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal