umbrello/umbrello
#include <stereotype.h>
Public Member Functions | |
UMLStereotype (const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLStereotype () | |
virtual | ~UMLStereotype () |
virtual UMLObject * | clone () const |
virtual void | copyInto (UMLObject *lhs) const |
void | decrRefCount () |
void | incrRefCount () |
bool | operator== (const UMLStereotype &rhs) const |
int | refCount () const |
void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
bool | showPropertiesDialog (QWidget *parent) |
Public Member Functions inherited from UMLObject | |
UMLObject (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLObject (UMLObject *parent) | |
UMLObject (const QString &name=QString(), Uml::ID::Type id=Uml::ID::None) | |
virtual | ~UMLObject () |
virtual bool | acceptAssociationType (Uml::AssociationType::Enum) |
ObjectType | baseType () const |
QLatin1String | baseTypeStr () const |
QString | doc () const |
virtual QString | fullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const |
bool | hasDoc () const |
virtual Uml::ID::Type | id () const |
bool | isAbstract () const |
bool | isStatic () const |
virtual bool | loadFromXMI (QDomElement &element) |
bool | loadStereotype (QDomElement &element) |
QString | name () const |
bool | operator== (const UMLObject &rhs) const |
QString | package (const QString &separator=QString(), bool includeRoot=false) |
UMLPackageList | packages (bool includeRoot=false) const |
virtual bool | resolveRef () |
QDomElement | save (const QString &tag, QDomDocument &qDoc) |
QString | secondaryFallback () const |
QString | secondaryId () const |
void | setAbstract (bool bAbstract) |
virtual void | setBaseType (ObjectType ot) |
void | setDoc (const QString &d) |
virtual void | setID (Uml::ID::Type NewID) |
void | setInPaste (bool bInPaste=true) |
virtual void | setName (const QString &strName) |
void | setNameCmd (const QString &strName) |
void | setPackage (const QString &_name) |
void | setSecondaryFallback (const QString &id) |
void | setSecondaryId (const QString &id) |
void | setStatic (bool bStatic) |
void | setStereotype (const QString &_name) |
void | setStereotypeCmd (const QString &_name) |
bool | setUMLPackage (UMLPackage *pPkg) |
void | setUMLStereotype (UMLStereotype *stereo) |
void | setVisibility (Uml::Visibility::Enum visibility) |
void | setVisibilityCmd (Uml::Visibility::Enum visibility) |
virtual bool | showPropertiesPagedDialog (int page=0, bool assoc=false) |
QString | stereotype (bool includeAdornments=false) const |
UMLPackage * | umlPackage () |
const UMLStereotype * | umlStereotype () |
Uml::Visibility::Enum | visibility () const |
Protected Attributes | |
int | m_refCount |
Protected Attributes inherited from UMLObject | |
bool | m_bAbstract |
ObjectType | m_BaseType |
bool | m_bCreationWasSignalled |
bool | m_bInPaste |
bool | m_bStatic |
QString | m_Doc |
QString | m_name |
Uml::ID::Type | m_nId |
UMLObject * | m_pSecondary |
UMLStereotype * | m_pStereotype |
UMLPackage * | m_pUMLPackage |
QString | m_SecondaryFallback |
QString | m_SecondaryId |
Uml::Visibility::Enum | m_visibility |
Additional Inherited Members | |
Public Types inherited from UMLObject | |
enum | ObjectType { ot_UMLObject = 100, ot_Actor, ot_UseCase, ot_Package, ot_Interface, ot_Datatype, ot_Enum, ot_Class, ot_Association, ot_Attribute, ot_Operation, ot_EnumLiteral, ot_Template, ot_Component, ot_Artifact, ot_Node, ot_Stereotype, ot_Role, ot_Entity, ot_EntityAttribute, ot_Folder, ot_EntityConstraint, ot_UniqueConstraint, ot_ForeignKeyConstraint, ot_CheckConstraint, ot_Category } |
Public Slots inherited from UMLObject | |
void | emitModified () |
Signals inherited from UMLObject | |
void | modified () |
Static Public Member Functions inherited from UMLObject | |
static QString | toString (ObjectType ot) |
Protected Member Functions inherited from UMLObject | |
void | init () |
virtual bool | load (QDomElement &element) |
void | maybeSignalObjectCreated () |
Detailed Description
This class is used to set up information for a stereotype.
Stereotypes are used essentially as properties of attributes and operations etc.
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.
The one and only owner of all stereotypes is the UMLDoc, and the ownership is specially managed (umlPackage() returns NULL for a UMLStereotype.) The reason for this special treatment is that class UMLDoc does not inherit from class UMLPackage, and therefore setUMLPackage() cannot be used for stereotypes.
Sets up stereotype information.
Definition at line 40 of file stereotype.h.
Constructor & Destructor Documentation
|
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 45 of file stereotype.cpp.
|
virtual |
Destructor.
Definition at line 55 of file stereotype.cpp.
Member Function Documentation
|
virtual |
|
virtual |
Copy the internal presentation of this object into the new object.
Reimplemented from UMLObject.
Definition at line 79 of file stereotype.cpp.
void UMLStereotype::decrRefCount | ( | ) |
Decrements the reference count for this stereotype.
Definition at line 130 of file stereotype.cpp.
void UMLStereotype::incrRefCount | ( | ) |
Increments the reference count for this stereotype.
Definition at line 122 of file stereotype.cpp.
bool UMLStereotype::operator== | ( | const UMLStereotype & | rhs | ) | const |
Overloaded '==' operator.
Definition at line 62 of file stereotype.cpp.
int UMLStereotype::refCount | ( | ) | const |
Returns the reference count for this stereotype.
Definition at line 138 of file stereotype.cpp.
|
virtual |
Saves to the <UML:StereoType> XMI element.
Implements UMLObject.
Definition at line 98 of file stereotype.cpp.
bool UMLStereotype::showPropertiesDialog | ( | QWidget * | parent | ) |
Display the properties configuration dialog for the stereotype (just a line edit).
Definition at line 109 of file stereotype.cpp.
Member Data Documentation
|
protected |
Definition at line 64 of file stereotype.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.