umbrello API Documentation

UMLEntityAttribute Class Reference

This class is used to set up information for an entityattribute. Sets up entityattribute information. More...

#include <entityattribute.h>

Inheritance diagram for UMLEntityAttribute:

UMLAttribute UMLClassifierListItem UMLObject List of all members.

Public Member Functions

 UMLEntityAttribute (const 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.
 UMLEntityAttribute (const UMLObject *parent)
 Sets up an entityattribute.
bool operator== (UMLEntityAttribute &rhs)
 Overloaded '==' operator.
virtual ~UMLEntityAttribute ()
 destructor.
virtual void copyInto (UMLEntityAttribute *rhs) const
 Copy the internal presentation of this object into the UMLEntityAttribute object.
virtual UMLObjectclone () const
 Make a clone of the UMLEntityAttribute.
QString getAttributes ()
 Returns The value of the UMLEntityAttribute's attributes property.
void setAttributes (const QString &attributes)
 Sets the UMLEntityAttribute's attributes property.
Uml::DBIndex_Type getIndexType ()
 Returns the UMLEntityAttribute's index type property.
void setIndexType (const Uml::DBIndex_Type indexType)
 Sets the UMLEntityAttribute's index type property.
QString getValues ()
 Returns the UMLEntityAttribute's length/values property.
void setValues (const QString &values)
 Sets the UMLEntityAttribute's length/values property.
bool getAutoIncrement ()
 Returns the UMLEntityAttribute's auto_increment boolean.
void setAutoIncrement (const bool autoIncrement)
 Sets the UMLEntityAttribute's auto_increment property.
bool getNull ()
 Returns the UMLEntityAttribute's allow null value.
void setNull (const bool null)
 Sets the UMLEntityAttribute's allow null value.
QString toString (Uml::Signature_Type sig=Uml::st_NoSig)
 Returns a string representation of the UMLEntityAttribute.
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
 Creates the <UML:EntityAttribute> XMI element.
bool showPropertiesDialog (QWidget *parent)
 Display the properties configuration dialog for the entityattribute.

Protected Member Functions

void init ()
 Initialize members of this class.
bool load (QDomElement &element)
 Loads the <UML:EntityAttribute> XMI element.

Detailed Description

This class is used to set up information for an entityattribute. Sets up entityattribute information.

This is a database field It has a type, name, index type and default value.

Author:
Jonathan Riddell <jr .org>
See also:
UMLObject Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 27 of file entityattribute.h.


Constructor & Destructor Documentation

UMLEntityAttribute::UMLEntityAttribute const 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 24 of file entityattribute.cpp.

References init(), and UMLObject::setBaseType().

Referenced by clone().

UMLEntityAttribute::UMLEntityAttribute const UMLObject parent  ) 
 

Sets up an entityattribute.

Parameters:
parent The parent of this UMLEntityAttribute.

Definition at line 34 of file entityattribute.cpp.

References init().

UMLEntityAttribute::~UMLEntityAttribute  )  [virtual]
 

destructor.

Definition at line 38 of file entityattribute.cpp.


Member Function Documentation

bool UMLEntityAttribute::operator== UMLEntityAttribute rhs  ) 
 

Overloaded '==' operator.

Definition at line 105 of file entityattribute.cpp.

References UMLObject::m_pSecondary, and UMLObject::operator==().

void UMLEntityAttribute::copyInto UMLEntityAttribute rhs  )  const [virtual]
 

Copy the internal presentation of this object into the UMLEntityAttribute object.

Definition at line 120 of file entityattribute.cpp.

References UMLClassifierListItem::copyInto(), UMLObject::m_pSecondary, and UMLObject::m_SecondaryId.

Referenced by clone().

UMLObject * UMLEntityAttribute::clone  )  const [virtual]
 

Make a clone of the UMLEntityAttribute.

Reimplemented from UMLAttribute.

Definition at line 132 of file entityattribute.cpp.

References clone(), copyInto(), and UMLEntityAttribute().

Referenced by clone(), and UMLEntityAttributeList::copyInto().

QString UMLEntityAttribute::getAttributes  ) 
 

Returns The value of the UMLEntityAttribute's attributes property.

Returns:
The value of the UMLEntityAttribute's attributes property.

Definition at line 47 of file entityattribute.cpp.

Referenced by UMLEntityAttributeDialog::setupDialog().

void UMLEntityAttribute::setAttributes const QString &  attributes  ) 
 

Sets the UMLEntityAttribute's attributes property.

Parameters:
attributes The new value for the attributes property.

Definition at line 51 of file entityattribute.cpp.

Referenced by UMLEntityAttributeDialog::apply().

Uml::DBIndex_Type UMLEntityAttribute::getIndexType  ) 
 

Returns the UMLEntityAttribute's index type property.

Returns:
The value of the UMLEntityAttribute's index type property.

Definition at line 71 of file entityattribute.cpp.

Referenced by EntityWidget::draw(), and UMLEntityAttributeDialog::setupDialog().

void UMLEntityAttribute::setIndexType const Uml::DBIndex_Type  indexType  ) 
 

Sets the UMLEntityAttribute's index type property.

Parameters:
indexType The UMLEntityAttribute's index type property.

Definition at line 75 of file entityattribute.cpp.

Referenced by UMLEntityAttributeDialog::apply().

QString UMLEntityAttribute::getValues  ) 
 

Returns the UMLEntityAttribute's length/values property.

Returns:
The UMLEntityAttribute's length/values property.

Definition at line 55 of file entityattribute.cpp.

Referenced by UMLEntityAttributeDialog::setupDialog().

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 59 of file entityattribute.cpp.

Referenced by UMLEntityAttributeDialog::apply().

bool UMLEntityAttribute::getAutoIncrement  ) 
 

Returns the UMLEntityAttribute's auto_increment boolean.

Returns:
The UMLEntityAttribute's auto_increment boolean

Definition at line 63 of file entityattribute.cpp.

Referenced by UMLEntityAttributeDialog::setupDialog().

void UMLEntityAttribute::setAutoIncrement const bool  autoIncrement  ) 
 

Sets the UMLEntityAttribute's auto_increment property.

Parameters:
autoIncrement The UMLEntityAttribute's auto_increment property

Definition at line 67 of file entityattribute.cpp.

Referenced by UMLEntityAttributeDialog::apply().

bool UMLEntityAttribute::getNull  ) 
 

Returns the UMLEntityAttribute's allow null value.

Returns:
The UMLEntityAttribute's allow null value.

Definition at line 79 of file entityattribute.cpp.

Referenced by UMLEntityAttributeDialog::setupDialog().

void UMLEntityAttribute::setNull const bool  null  ) 
 

Sets the UMLEntityAttribute's allow null value.

Parameters:
null The UMLEntityAttribute's allow null value.

Definition at line 83 of file entityattribute.cpp.

Referenced by UMLEntityAttributeDialog::apply().

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 87 of file entityattribute.cpp.

References UMLObject::getName(), and UMLClassifierListItem::getTypeName().

void UMLEntityAttribute::saveToXMI QDomDocument &  qDoc,
QDomElement &  qElement
[virtual]
 

Creates the <UML:EntityAttribute> XMI element.

Reimplemented from UMLAttribute.

Definition at line 141 of file entityattribute.cpp.

References UMLObject::getID(), and UMLObject::save().

bool UMLEntityAttribute::showPropertiesDialog QWidget *  parent  )  [virtual]
 

Display the properties configuration dialog for the entityattribute.

Reimplemented from UMLAttribute.

Definition at line 172 of file entityattribute.cpp.

void UMLEntityAttribute::init  )  [protected, virtual]
 

Initialize members of this class.

Auxiliary method used by constructors.

Reimplemented from UMLObject.

Definition at line 40 of file entityattribute.cpp.

Referenced by UMLEntityAttribute().

bool UMLEntityAttribute::load QDomElement &  element  )  [protected, virtual]
 

Loads the <UML:EntityAttribute> XMI element.

Reimplemented from UMLAttribute.

Definition at line 160 of file entityattribute.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:07 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003