umbrello/umbrello
#include <attribute.h>
Signals | |
void | attributeChanged () |
Signals inherited from UMLObject | |
void | modified () |
Protected Member Functions | |
bool | load (QDomElement &element) |
Protected Member Functions inherited from UMLObject | |
void | init () |
void | maybeSignalObjectCreated () |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Attributes | |
QString | m_InitialValue |
Uml::ParameterDirection::Enum | m_ParmKind |
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_Unknown = -1, 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, ot_Port } |
Public Slots inherited from UMLObject | |
void | emitModified () |
Static Public Member Functions inherited from UMLObject | |
static QString | toString (ObjectType ot) |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
This class is used to set up information for an attribute.
This is like a programming attribute. It has a type, name, visibility and initial value.
Sets up attribute information.
- See also
- UMLObject Bugs and comments to umbre or llo- devel @kde .orghttp://bugs.kde.org
Definition at line 27 of file attribute.h.
Constructor & Destructor Documentation
UMLAttribute::UMLAttribute | ( | UMLObject * | parent, |
const QString & | name, | ||
Uml::ID::Type | id = Uml::ID::None , |
||
Uml::Visibility::Enum | s = Uml::Visibility::Private , |
||
UMLObject * | type = 0 , |
||
const QString & | iv = QString() |
||
) |
Sets up an attribute.
- Parameters
-
parent The parent of this UMLAttribute. name The name of this UMLAttribute. id The unique id given to this UMLAttribute. s The visibility of the UMLAttribute. type The type of this UMLAttribute. iv The initial value of the attribute.
Definition at line 35 of file attribute.cpp.
|
explicit |
Sets up an attribute.
- Parameters
-
parent The parent of this UMLAttribute.
Definition at line 58 of file attribute.cpp.
|
virtual |
Destructor.
Definition at line 68 of file attribute.cpp.
Member Function Documentation
|
signal |
|
virtual |
Make a clone of the UMLAttribute.
Implements UMLClassifierListItem.
Reimplemented in UMLEntityAttribute.
Definition at line 247 of file attribute.cpp.
|
virtual |
Copy the internal presentation of this object into the UMLAttribute object.
Reimplemented from UMLClassifierListItem.
Reimplemented in UMLEntityAttribute.
Definition at line 231 of file attribute.cpp.
QString UMLAttribute::getFullyQualifiedName | ( | const QString & | separator = QString() , |
bool | includeRoot = false |
||
) | const |
Reimplement method from UMLObject.
Definition at line 183 of file attribute.cpp.
QString UMLAttribute::getInitialValue | ( | ) | const |
Returns The initial value of the UMLAttribute.
- Returns
- The initial value of the Atrtibute.
Definition at line 99 of file attribute.cpp.
Uml::ParameterDirection::Enum UMLAttribute::getParmKind | ( | ) | const |
Definition at line 122 of file attribute.cpp.
|
virtual |
Returns all the template params (if any) that are in the type of this attribute.
Definition at line 404 of file attribute.cpp.
|
protectedvirtual |
Loads the <UML:Attribute> XMI element.
Reimplemented from UMLObject.
Reimplemented in UMLEntityAttribute.
Definition at line 276 of file attribute.cpp.
bool UMLAttribute::operator== | ( | const UMLAttribute & | rhs | ) | const |
Overloaded '==' operator.
Definition at line 211 of file attribute.cpp.
|
virtual |
Creates the <UML:Attribute> XMI element.
Implements UMLObject.
Reimplemented in UMLEntityAttribute.
Definition at line 259 of file attribute.cpp.
void UMLAttribute::setInitialValue | ( | const QString & | iv | ) |
Sets the initial value of the UMLAttribute.
- Parameters
-
iv The initial value of the UMLAttribute.
Definition at line 109 of file attribute.cpp.
|
virtual |
Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.
Reimplemented from UMLObject.
Definition at line 76 of file attribute.cpp.
void UMLAttribute::setParmKind | ( | Uml::ParameterDirection::Enum | pk | ) |
Definition at line 117 of file attribute.cpp.
void UMLAttribute::setVisibility | ( | Uml::Visibility::Enum | s | ) |
Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.
Definition at line 87 of file attribute.cpp.
|
virtual |
Display the properties configuration dialog for the attribute.
Implements UMLClassifierListItem.
Reimplemented in UMLEntityAttribute.
Definition at line 343 of file attribute.cpp.
|
virtual |
Returns a string representation of the UMLAttribute.
- Parameters
-
sig If true will show the attribute type and initial value.
- Returns
- Returns a string representation of the UMLAttribute.
Reimplemented from UMLClassifierListItem.
Reimplemented in UMLEntityAttribute.
Definition at line 133 of file attribute.cpp.
Member Data Documentation
|
protected |
text for the attribute's initial value.
Definition at line 75 of file attribute.h.
|
protected |
Definition at line 76 of file attribute.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.