umbrello/umbrello
#include <entityattribute.h>
Public Types | |
enum | DBIndex_Type { None = 1100, Primary, Index, Unique } |
Public Types inherited from UMLObject | |
enum | ObjectType { 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 } |
Public Member Functions | |
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()) | |
UMLEntityAttribute (UMLObject *parent) | |
virtual | ~UMLEntityAttribute () |
virtual UMLObject * | clone () const |
virtual void | copyInto (UMLObject *lhs) const |
QString | getAttributes () const |
bool | getAutoIncrement () const |
bool | getNull () const |
QString | getValues () const |
DBIndex_Type | indexType () const |
bool | operator== (const UMLEntityAttribute &rhs) const |
virtual void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
void | setAttributes (const QString &attributes) |
void | setAutoIncrement (const bool autoIncrement) |
void | setIndexType (const DBIndex_Type indexType) |
void | setNull (const bool null) |
void | setValues (const QString &values) |
bool | showPropertiesDialog (QWidget *parent) |
QString | toString (Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig) |
Public Member Functions inherited from 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()) | |
UMLAttribute (UMLObject *parent) | |
virtual | ~UMLAttribute () |
QString | getFullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const |
QString | getInitialValue () const |
Uml::ParameterDirection::Enum | getParmKind () const |
virtual UMLClassifierList | getTemplateParams () |
bool | operator== (const UMLAttribute &rhs) const |
void | setInitialValue (const QString &iv) |
void | setName (const QString &name) |
void | setParmKind (Uml::ParameterDirection::Enum pk) |
void | setVisibility (Uml::Visibility::Enum s) |
Public Member Functions inherited from UMLClassifierListItem | |
UMLClassifierListItem (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLClassifierListItem (UMLObject *parent) | |
virtual | ~UMLClassifierListItem () |
UMLClassifier * | getType () const |
virtual QString | getTypeName () const |
virtual void | setType (UMLObject *type) |
void | setTypeName (const QString &type) |
Public Member Functions inherited from UMLObject | |
UMLObject (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLObject (UMLObject *parent) | |
UMLObject (const QString &name=QString(), Uml::ID::Type id=Uml::ID::None) | |
virtual | ~UMLObject () |
virtual bool | acceptAssociationType (Uml::AssociationType::Enum) |
ObjectType | baseType () const |
QLatin1String | baseTypeStr () const |
QString | doc () const |
virtual QString | fullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const |
bool | hasDoc () const |
virtual Uml::ID::Type | id () const |
bool | isAbstract () const |
bool | isStatic () const |
virtual bool | loadFromXMI (QDomElement &element) |
bool | loadStereotype (QDomElement &element) |
QString | name () const |
bool | operator== (const UMLObject &rhs) const |
QString | package (const QString &separator=QString(), bool includeRoot=false) |
UMLPackageList | packages (bool includeRoot=false) const |
virtual bool | resolveRef () |
QDomElement | save (const QString &tag, QDomDocument &qDoc) |
QString | secondaryFallback () const |
QString | secondaryId () const |
void | setAbstract (bool bAbstract) |
virtual void | setBaseType (ObjectType ot) |
void | setDoc (const QString &d) |
virtual void | setID (Uml::ID::Type NewID) |
void | setInPaste (bool bInPaste=true) |
void | setNameCmd (const QString &strName) |
void | setPackage (const QString &_name) |
void | setSecondaryFallback (const QString &id) |
void | setSecondaryId (const QString &id) |
void | setStatic (bool bStatic) |
void | setStereotype (const QString &_name) |
void | setStereotypeCmd (const QString &_name) |
bool | setUMLPackage (UMLPackage *pPkg) |
void | setUMLStereotype (UMLStereotype *stereo) |
void | setVisibility (Uml::Visibility::Enum visibility) |
void | setVisibilityCmd (Uml::Visibility::Enum visibility) |
virtual bool | showPropertiesPagedDialog (int page=0, bool assoc=false) |
QString | stereotype (bool includeAdornments=false) const |
UMLPackage * | umlPackage () |
const UMLStereotype * | umlStereotype () |
Uml::Visibility::Enum | visibility () const |
Protected Member Functions | |
void | init () |
bool | load (QDomElement &element) |
Protected Member Functions inherited from UMLObject | |
void | init () |
void | maybeSignalObjectCreated () |
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) |
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 |
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.