umbrello/umbrello
#include <entityattribute.h>
Public Types | |
enum | DBIndex_Type { None = 1100, Primary, Index, Unique } |
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 } |
Protected Member Functions | |
void | init () |
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 Slots inherited from UMLObject | |
void | emitModified () |
Signals inherited from UMLAttribute | |
void | attributeChanged () |
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 UMLAttribute | |
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 |
Properties inherited from QObject | |
objectName | |
Detailed Description
This class is used to set up information for an entityattribute.
This is a database field It has a type, name, index type and default value.
Sets up entityattribute information.
Definition at line 25 of file entityattribute.h.
Member Enumeration Documentation
Enumerator | |
---|---|
None | |
Primary | |
Index | |
Unique |
Definition at line 30 of file entityattribute.h.
Constructor & Destructor Documentation
UMLEntityAttribute::UMLEntityAttribute | ( | 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 entityattribute.
- Parameters
-
parent The parent of this UMLEntityAttribute. name The name of this UMLEntityAttribute. id The unique id given to this UMLEntityAttribute. s The visibility of the UMLEntityAttribute. type The type of this UMLEntityAttribute. iv The initial value of the entityattribute.
Definition at line 34 of file entityattribute.cpp.
|
explicit |
Sets up an entityattribute.
- Parameters
-
parent The parent of this UMLEntityAttribute.
Definition at line 49 of file entityattribute.cpp.
|
virtual |
Destructor.
Definition at line 58 of file entityattribute.cpp.
Member Function Documentation
|
virtual |
Make a clone of the UMLEntityAttribute.
Reimplemented from UMLAttribute.
Definition at line 227 of file entityattribute.cpp.
|
virtual |
Copy the internal presentation of this object into the UMLEntityAttribute object.
Reimplemented from UMLAttribute.
Definition at line 210 of file entityattribute.cpp.
QString UMLEntityAttribute::getAttributes | ( | ) | const |
Returns the value of the UMLEntityAttribute's attributes property.
- Returns
- The value of the UMLEntityAttribute's attributes property.
Definition at line 78 of file entityattribute.cpp.
bool UMLEntityAttribute::getAutoIncrement | ( | ) | const |
Returns the UMLEntityAttribute's auto_increment boolean.
- Returns
- The UMLEntityAttribute's auto_increment boolean
Definition at line 114 of file entityattribute.cpp.
bool UMLEntityAttribute::getNull | ( | ) | const |
Returns the UMLEntityAttribute's allow null value.
- Returns
- The UMLEntityAttribute's allow null value.
Definition at line 150 of file entityattribute.cpp.
QString UMLEntityAttribute::getValues | ( | ) | const |
Returns the UMLEntityAttribute's length/values property.
- Returns
- The new value of the length/values property.
Definition at line 96 of file entityattribute.cpp.
UMLEntityAttribute::DBIndex_Type UMLEntityAttribute::indexType | ( | ) | const |
Returns the UMLEntityAttribute's index type property.
- Returns
- The value of the UMLEntityAttribute's index type property.
Definition at line 132 of file entityattribute.cpp.
|
protected |
Initialize members of this class.
Auxiliary method used by constructors.
Definition at line 66 of file entityattribute.cpp.
|
protectedvirtual |
Loads the <UML:EntityAttribute> XMI element.
Reimplemented from UMLAttribute.
Definition at line 259 of file entityattribute.cpp.
bool UMLEntityAttribute::operator== | ( | const UMLEntityAttribute & | rhs | ) | const |
Overloaded '==' operator.
Definition at line 190 of file entityattribute.cpp.
|
virtual |
Creates the <UML:EntityAttribute> XMI element.
Reimplemented from UMLAttribute.
Definition at line 238 of file entityattribute.cpp.
void UMLEntityAttribute::setAttributes | ( | const QString & | attributes | ) |
Sets the UMLEntityAttribute's attributes property.
- Parameters
-
attributes The new value for the attributes property.
Definition at line 87 of file entityattribute.cpp.
void UMLEntityAttribute::setAutoIncrement | ( | const bool | autoIncrement | ) |
Sets the UMLEntityAttribute's auto_increment boolean.
- Parameters
-
autoIncrement The UMLEntityAttribute's auto_increment boolean
Definition at line 123 of file entityattribute.cpp.
void UMLEntityAttribute::setIndexType | ( | const DBIndex_Type | indexType | ) |
Sets the initial value of the UMLEntityAttribute's index type property.
- Parameters
-
indexType The initial value of the UMLEntityAttribute's index type property.
Definition at line 141 of file entityattribute.cpp.
void UMLEntityAttribute::setNull | ( | const bool | nullIn | ) |
Sets the initial value of the UMLEntityAttribute's allow null value.
- Parameters
-
nullIn The initial value of the UMLEntityAttribute's allow null value.
Definition at line 159 of file entityattribute.cpp.
void UMLEntityAttribute::setValues | ( | const QString & | values | ) |
Sets the UMLEntityAttribute's length/values property.
- Parameters
-
values The new value of the length/values property.
Definition at line 105 of file entityattribute.cpp.
|
virtual |
Display the properties configuration dialog for the entityattribute.
Reimplemented from UMLAttribute.
Definition at line 275 of file entityattribute.cpp.
|
virtual |
Returns a string representation of the UMLEntityAttribute.
- Parameters
-
sig If true will show the entityattribute type and initial value.
- Returns
- Returns a string representation of the UMLEntityAttribute.
Reimplemented from UMLAttribute.
Definition at line 169 of file entityattribute.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.