umbrello
2.31.90
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
Sets up stereotype information. More...
#include <stereotype.h>
Protected Attributes | |
int | m_refCount |
![]() | |
Uml::ID::Type | m_nId |
object's id More... | |
QString | m_Doc |
object's documentation More... | |
QPointer< UMLStereotype > | m_pStereotype |
stereotype of the object if applicable More... | |
QString | m_name |
objects name More... | |
ObjectType | m_BaseType |
objects type More... | |
Uml::Visibility::Enum | m_visibility |
objects visibility More... | |
bool | m_bAbstract |
state of whether the object is abstract or not More... | |
bool | m_bStatic |
flag for instance scope More... | |
bool | m_bInPaste |
caller sets this true when in paste operation More... | |
bool | m_bCreationWasSignalled |
auxiliary to maybeSignalObjectCreated() More... | |
QPointer< UMLObject > | m_pSecondary |
QString | m_SecondaryId |
QString | m_SecondaryFallback |
UMLObjectPrivate * | m_d |
private data More... | |
Additional Inherited Members | |
![]() | |
enum | ObjectType { ot_Unknown = -1, ot_UMLObject = 100, ot_Actor, ot_UseCase, ot_Package, ot_Interface, ot_Datatype, ot_Enum, ot_Class, ot_Instance, 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, ot_Port, ot_InstanceAttribute, ot_SubSystem } |
![]() | |
void | emitModified () |
![]() | |
void | modified () |
![]() | |
static QString | toString (ObjectType ot) |
static QString | toI18nString (ObjectType t) |
static Icon_Utils::IconType | toIcon (ObjectType t) |
![]() | |
void | init () |
void | maybeSignalObjectCreated () |
virtual bool | load1 (QDomElement &element) |
Sets up stereotype information.
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.
|
explicit |
Sets up a stereotype.
name | The name of this UMLStereotype. |
id | The unique id given to this UMLStereotype. |
UMLStereotype::UMLStereotype | ( | ) |
Sets up a stereotype.
|
virtual |
Destructor.
|
virtual |
Make a clone of this object.
Reimplemented from UMLObject.
|
virtual |
Copy the internal presentation of this object into the new object.
Reimplemented from UMLObject.
void UMLStereotype::decrRefCount | ( | ) |
Decrements the reference count for this stereotype.
void UMLStereotype::incrRefCount | ( | ) |
Increments the reference count for this stereotype.
QString UMLStereotype::name | ( | bool | includeAdornments = false | ) | const |
Returns the name as string
bool UMLStereotype::operator== | ( | const UMLStereotype & | rhs | ) | const |
Overloaded '==' operator.
int UMLStereotype::refCount | ( | ) | const |
Returns the reference count for this stereotype.
|
virtual |
Saves to the <UML:StereoType> XMI element.
Reimplemented from UMLObject.
|
virtual |
Display the properties configuration dialog for the stereotype (just a line edit).
Reimplemented from UMLObject.
|
protected |