umbrello 2.39.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
Sets up stereotype information. More...
#include <stereotype.h>
Classes | |
class | AttributeDef |
Public Types | |
typedef QVector< AttributeDef > | AttributeDefs |
size is at most N_STEREOATTRS | |
![]() | |
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 } |
Protected Attributes | |
int | m_refCount |
AttributeDefs | m_attrDefs |
![]() | |
Uml::ID::Type | m_nId |
object's id | |
QString | m_Doc |
object's documentation | |
QPointer< UMLStereotype > | m_pStereotype |
stereotype of the object if applicable | |
QString | m_name |
objects name | |
ObjectType | m_BaseType |
objects type | |
Uml::Visibility::Enum | m_visibility |
objects visibility | |
bool | m_bAbstract |
state of whether the object is abstract or not | |
bool | m_bStatic |
flag for instance scope | |
bool | m_bCreationWasSignalled |
auxiliary to maybeSignalObjectCreated() | |
QPointer< UMLObject > | m_pSecondary |
QString | m_SecondaryId |
QString | m_SecondaryFallback |
QStringList | m_TaggedValues |
UMLObjectPrivate * | m_d |
private data | |
Additional Inherited Members | |
![]() | |
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 () |
void | save1end (QXmlStreamWriter &writer) |
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 nullptr 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.
QVector<AttributeDef> UMLStereotype::AttributeDefs |
size is at most N_STEREOATTRS
|
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.
void UMLStereotype::clearAttributeDefs | ( | ) |
Reset stereotype attribute definitions to none.
|
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.
UMLStereotype::AttributeDefs & UMLStereotype::getAttributeDefs | ( | ) |
Getter for stereotype attribute definitions returning writable data.
const UMLStereotype::AttributeDefs & UMLStereotype::getAttributeDefs | ( | ) | const |
Const getter for stereotype attribute definitions.
void UMLStereotype::incrRefCount | ( | ) |
Increments the reference count for this stereotype.
|
virtual |
Auxiliary to loadFromXMI: The loading of stereotype attributes is implemented here.
Reimplemented from UMLObject.
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.
void UMLStereotype::setAttributeDefs | ( | const AttributeDefs & | adefs | ) |
Setter for stereotype attribute definitions.
|
virtual |
Display the properties configuration dialog for the stereotype (just a line edit).
Reimplemented from UMLObject.
|
protected |
|
protected |