umbrello/umbrello
#include <uniqueconstraint.h>
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) |
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 () |
Signals inherited from UMLObject | |
void | modified () |
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) |
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 |
Properties inherited from QObject | |
objectName | |
Detailed Description
This class is used to set up information for a unique entity constraint.
Sets up Unique entity constraint information.
- See also
- UMLObject UMLClassifierListItem UMLEntityConstraint Bugs and comments to umbre or llo- devel @kde .orghttp://bugs.kde.org
Definition at line 28 of file uniqueconstraint.h.
Constructor & Destructor Documentation
UMLUniqueConstraint::UMLUniqueConstraint | ( | UMLObject * | parent, |
const QString & | name, | ||
Uml::ID::Type | id = Uml::ID::None |
||
) |
Sets up a constraint.
- Parameters
-
parent The parent of this UMLUniqueConstraint. name The name of this UMLUniqueConstraint. id The unique id given to this UMLUniqueConstraint.
Definition at line 31 of file uniqueconstraint.cpp.
|
explicit |
Sets up a constraint.
- Parameters
-
parent The parent of this UMLUniqueConstraint.
Definition at line 42 of file uniqueconstraint.cpp.
|
virtual |
Destructor.
Definition at line 65 of file uniqueconstraint.cpp.
Member Function Documentation
bool UMLUniqueConstraint::addEntityAttribute | ( | UMLEntityAttribute * | attr | ) |
Adds a UMLEntityAttribute to the list.
The UMLEntityAttribute should already exist and should belong to the parent UMLEntity.
- Parameters
-
attr The UMLEntityAttribute to add
- Returns
- false if it failed to add, else true
Definition at line 243 of file uniqueconstraint.cpp.
void UMLUniqueConstraint::clearAttributeList | ( | ) |
Clear the list of attributes contained in this UniqueConstraint.
Definition at line 321 of file uniqueconstraint.cpp.
|
virtual |
Make a clone of the UMLUniqueConstraint.
Implements UMLEntityConstraint.
Definition at line 98 of file uniqueconstraint.cpp.
|
virtual |
Copy the internal presentation of this object into the UMLUniqueConstraint object.
Reimplemented from UMLEntityConstraint.
Definition at line 73 of file uniqueconstraint.cpp.
UMLEntityAttributeList UMLUniqueConstraint::getEntityAttributeList | ( | ) | const |
Get the Entity Attributes List.
Definition at line 308 of file uniqueconstraint.cpp.
QString UMLUniqueConstraint::getFullyQualifiedName | ( | const QString & | separator = QString() , |
bool | includeRoot = false |
||
) | const |
Definition at line 139 of file uniqueconstraint.cpp.
bool UMLUniqueConstraint::hasEntityAttribute | ( | UMLEntityAttribute * | attr | ) |
Check if a entity attribute is present in m_entityAttributeList.
- Parameters
-
attr The Entity Attribute to check for existence in list
- Returns
- true if it exists in the list, else false
Definition at line 224 of file uniqueconstraint.cpp.
|
protectedvirtual |
Loads the <UML:UniqueConstraint> XMI element.
Reimplemented from UMLObject.
Definition at line 179 of file uniqueconstraint.cpp.
bool UMLUniqueConstraint::operator== | ( | const UMLUniqueConstraint & | rhs | ) | const |
Overloaded '==' operator.
Definition at line 51 of file uniqueconstraint.cpp.
bool UMLUniqueConstraint::removeEntityAttribute | ( | UMLEntityAttribute * | attr | ) |
Removes a UMLEntityAttribute from the list.
- Parameters
-
attr The UMLEntityAttribute to remove from list
- Returns
- false if it failed to remove the attribute from the list
Definition at line 276 of file uniqueconstraint.cpp.
|
virtual |
Creates the <UML:UniqueConstraint> XMI element.
Implements UMLObject.
Definition at line 149 of file uniqueconstraint.cpp.
|
virtual |
Display the properties configuration dialog for the attribute.
Implements UMLClassifierListItem.
Definition at line 170 of file uniqueconstraint.cpp.
|
virtual |
Returns a string representation of the UMLUniqueConstraint.
- Parameters
-
sig If true will show the attribute type and initial value.
- Returns
- Returns a string representation of the UMLAttribute.
Reimplemented from UMLClassifierListItem.
Definition at line 112 of file uniqueconstraint.cpp.
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.