umbrello/umbrello
UMLEntityAttribute Class Reference
This class is used to set up information for an entityattribute. More...
#include <entityattribute.h>

Public Member Functions | |
| UMLEntityAttribute (UMLObject *parent) | |
| UMLEntityAttribute (UMLObject *parent, const QString &name, Uml::IDType id=Uml::id_None, Uml::Visibility s=Uml::Visibility::Private, UMLObject *type=0, const QString &iv=0) | |
| virtual | ~UMLEntityAttribute () |
| virtual UMLObject * | clone () const |
| virtual void | copyInto (UMLObject *lhs) const |
| QString | getAttributes () const |
| bool | getAutoIncrement () const |
| Uml::DBIndex_Type | getIndexType () const |
| bool | getNull () const |
| QString | getValues () const |
| bool | operator== (const UMLEntityAttribute &rhs) |
| virtual void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
| void | setAttributes (const QString &attributes) |
| void | setAutoIncrement (const bool autoIncrement) |
| void | setIndexType (const Uml::DBIndex_Type indexType) |
| void | setNull (const bool null) |
| void | setValues (const QString &values) |
| bool | showPropertiesDialog (QWidget *parent) |
| QString | toString (Uml::Signature_Type sig=Uml::st_NoSig) |
Protected Member Functions | |
| void | init () |
| bool | load (QDomElement &element) |
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.
Constructor & Destructor Documentation
| UMLEntityAttribute::UMLEntityAttribute | ( | UMLObject * | parent, | |
| const QString & | name, | |||
| Uml::IDType | id = Uml::id_None, |
|||
| Uml::Visibility | s = Uml::Visibility::Private, |
|||
| UMLObject * | type = 0, |
|||
| const QString & | iv = 0 | |||
| ) |
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 32 of file entityattribute.cpp.
| UMLEntityAttribute::UMLEntityAttribute | ( | UMLObject * | parent | ) |
Sets up an entityattribute.
- Parameters:
-
parent The parent of this UMLEntityAttribute.
Definition at line 47 of file entityattribute.cpp.
| UMLEntityAttribute::~UMLEntityAttribute | ( | ) | [virtual] |
Destructor.
Definition at line 56 of file entityattribute.cpp.
Member Function Documentation
| UMLObject * UMLEntityAttribute::clone | ( | ) | const [virtual] |
Make a clone of the UMLEntityAttribute.
Reimplemented from UMLAttribute.
Definition at line 225 of file entityattribute.cpp.
| void UMLEntityAttribute::copyInto | ( | UMLObject * | lhs | ) | const [virtual] |
Copy the internal presentation of this object into the UMLEntityAttribute object.
Reimplemented from UMLAttribute.
Definition at line 208 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 76 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 112 of file entityattribute.cpp.
| Uml::DBIndex_Type UMLEntityAttribute::getIndexType | ( | ) | const |
Returns the UMLEntityAttribute's index type property.
- Returns:
- The value of the UMLEntityAttribute's index type property.
Definition at line 130 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 148 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 94 of file entityattribute.cpp.
| void UMLEntityAttribute::init | ( | ) | [protected] |
Initialize members of this class.
Auxiliary method used by constructors.
Reimplemented from UMLObject.
Definition at line 64 of file entityattribute.cpp.
| bool UMLEntityAttribute::load | ( | QDomElement & | element | ) | [protected, virtual] |
Loads the <UML:EntityAttribute> XMI element.
Reimplemented from UMLAttribute.
Definition at line 257 of file entityattribute.cpp.
| bool UMLEntityAttribute::operator== | ( | const UMLEntityAttribute & | rhs | ) |
Overloaded '==' operator.
Reimplemented from UMLAttribute.
Definition at line 188 of file entityattribute.cpp.
| void UMLEntityAttribute::saveToXMI | ( | QDomDocument & | qDoc, | |
| QDomElement & | qElement | |||
| ) | [virtual] |
Creates the <UML:EntityAttribute> XMI element.
Reimplemented from UMLAttribute.
Definition at line 236 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 85 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 121 of file entityattribute.cpp.
| void UMLEntityAttribute::setIndexType | ( | const Uml::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 139 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 157 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 103 of file entityattribute.cpp.
| bool UMLEntityAttribute::showPropertiesDialog | ( | QWidget * | parent | ) | [virtual] |
Display the properties configuration dialog for the entityattribute.
Reimplemented from UMLAttribute.
Definition at line 273 of file entityattribute.cpp.
| QString UMLEntityAttribute::toString | ( | Uml::Signature_Type | sig = Uml::st_NoSig |
) | [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 167 of file entityattribute.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference