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

umbrello/umbrello

UMLStereotype Class Reference

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

#include <stereotype.h>

Inheritance diagram for UMLStereotype:
Inheritance graph
[legend]

List of all members.

Public Member Functions

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

Protected Attributes

int m_refCount

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 27 of file stereotype.h.


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 30 of file stereotype.cpp.

UMLStereotype::UMLStereotype (  ) 

Sets up a stereotype.

Definition at line 41 of file stereotype.cpp.

UMLStereotype::~UMLStereotype (  )  [virtual]

destructor

Definition at line 46 of file stereotype.cpp.


Member Function Documentation

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

Make a clone of this object.

Implements UMLObject.

Definition at line 72 of file stereotype.cpp.

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

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

Definition at line 64 of file stereotype.cpp.

void UMLStereotype::decrRefCount (  ) 

Decrements the reference count for this stereotype.

Definition at line 113 of file stereotype.cpp.

void UMLStereotype::incrRefCount (  ) 

Increments the reference count for this stereotype.

Definition at line 106 of file stereotype.cpp.

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

Overloaded '==' operator.

Reimplemented from UMLObject.

Definition at line 48 of file stereotype.cpp.

int UMLStereotype::refCount (  )  const

Returns the reference count for this stereotype.

Definition at line 120 of file stereotype.cpp.

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

Saves to the <UML:StereoType> XMI element.

Implements UMLObject.

Definition at line 84 of file stereotype.cpp.

bool UMLStereotype::showPropertiesDialog ( QWidget *  parent  ) 

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

Definition at line 94 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 72 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"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
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