• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

umbrello/umbrello

UMLEntityAttribute Class Reference

#include <entityattribute.h>

Inheritance diagram for UMLEntityAttribute:

Inheritance graph
[legend]

List of all members.


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.

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

Definition at line 26 of file entityattribute.h.


Public Member Functions

 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)
 UMLEntityAttribute (UMLObject *parent)
bool operator== (const UMLEntityAttribute &rhs)
virtual ~UMLEntityAttribute ()
virtual void copyInto (UMLObject *lhs) const
virtual UMLObject * clone () const
QString getAttributes () const
void setAttributes (const QString &attributes)
Uml::DBIndex_Type getIndexType () const
void setIndexType (const Uml::DBIndex_Type indexType)
QString getValues () const
void setValues (const QString &values)
bool getAutoIncrement () const
void setAutoIncrement (const bool autoIncrement)
bool getNull () const
void setNull (const bool null)
QString toString (Uml::Signature_Type sig=Uml::st_NoSig)
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
bool showPropertiesDialog (QWidget *parent)

Protected Member Functions

void init ()
bool load (QDomElement &element)

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

UMLEntityAttribute::UMLEntityAttribute ( UMLObject *  parent  ) 

Sets up an entityattribute.

Parameters:
parent The parent of this UMLEntityAttribute.

Definition at line 34 of file entityattribute.cpp.

UMLEntityAttribute::~UMLEntityAttribute (  )  [virtual]

destructor.

Definition at line 38 of file entityattribute.cpp.


Member Function Documentation

bool UMLEntityAttribute::operator== ( const UMLEntityAttribute &  rhs  ) 

Overloaded '==' operator.

Definition at line 104 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 119 of file entityattribute.cpp.

UMLObject * UMLEntityAttribute::clone (  )  const [virtual]

Make a clone of the UMLEntityAttribute.

Reimplemented from UMLAttribute.

Definition at line 133 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 47 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 51 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 71 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 75 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 55 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 59 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 63 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 67 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 79 of file entityattribute.cpp.

void UMLEntityAttribute::setNull ( const bool  null  ) 

Sets the initial value of the UMLEntityAttribute's allow null value.

Parameters:
null The initial value of the UMLEntityAttribute's allow null value.

Definition at line 83 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 87 of file entityattribute.cpp.

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

Creates the <UML:EntityAttribute> XMI element.

Reimplemented from UMLAttribute.

Definition at line 142 of file entityattribute.cpp.

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.

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:
  • entityattribute.h
  • entityattribute.cpp

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdesdk

Skip menu "kdesdk"
  • kate
  •     kate
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal