umbrello/umbrello
UMLStereotype Class Reference
This class is used to set up information for a stereotype. More...
#include <stereotype.h>

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.
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] |
| 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:
KDE 4.4 API Reference