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

umbrello/umbrello

UMLAttribute Class Reference

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

#include <attribute.h>

Inheritance diagram for UMLAttribute:
Inheritance graph
[legend]

List of all members.

Signals

void attributeChanged ()

Public Member Functions

 UMLAttribute (UMLObject *parent)
 UMLAttribute (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 ~UMLAttribute ()
virtual UMLObject * clone () const
virtual void copyInto (UMLObject *lhs) const
QString getFullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const
QString getInitialValue () const
Uml::Parameter_Direction getParmKind () const
virtual UMLClassifierList getTemplateParams ()
bool operator== (const UMLAttribute &rhs)
virtual void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
void setInitialValue (const QString &iv)
void setName (const QString &name)
void setParmKind (Uml::Parameter_Direction pk)
void setVisibility (Uml::Visibility s)
virtual bool showPropertiesDialog (QWidget *parent)
QString toString (Uml::Signature_Type sig=Uml::st_NoSig)

Protected Member Functions

bool load (QDomElement &element)

Protected Attributes

QString m_InitialValue
Uml::Parameter_Direction m_ParmKind

Detailed Description

This class is used to set up information for an attribute.

This is like a programming attribute. It has a type, name, visibility and initial value.

Sets up attribute information.

Author:
Paul Hensgen <phensgen@techie.com>
See also:
UMLObject Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 27 of file attribute.h.


Constructor & Destructor Documentation

UMLAttribute::UMLAttribute ( 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 attribute.

Parameters:
parent The parent of this UMLAttribute.
name The name of this UMLAttribute.
id The unique id given to this UMLAttribute.
s The visibility of the UMLAttribute.
type The type of this UMLAttribute.
iv The initial value of the attribute.

Definition at line 24 of file attribute.cpp.

UMLAttribute::UMLAttribute ( UMLObject *  parent  ) 

Sets up an attribute.

Parameters:
parent The parent of this UMLAttribute.

Definition at line 42 of file attribute.cpp.

UMLAttribute::~UMLAttribute (  )  [virtual]

destructor.

Definition at line 49 of file attribute.cpp.


Member Function Documentation

void UMLAttribute::attributeChanged (  )  [signal]
UMLObject * UMLAttribute::clone (  )  const [virtual]

Make a clone of the UMLAttribute.

Implements UMLClassifierListItem.

Reimplemented in UMLEntityAttribute.

Definition at line 226 of file attribute.cpp.

void UMLAttribute::copyInto ( UMLObject *  lhs  )  const [virtual]

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

Reimplemented from UMLClassifierListItem.

Reimplemented in UMLEntityAttribute.

Definition at line 210 of file attribute.cpp.

QString UMLAttribute::getFullyQualifiedName ( const QString &  separator = QString(),
bool  includeRoot = false 
) const [virtual]

Reimplement method from UMLObject.

Reimplemented from UMLObject.

Definition at line 165 of file attribute.cpp.

QString UMLAttribute::getInitialValue (  )  const

Returns The initial value of the UMLAttribute.

Returns:
The initial value of the Atrtibute.

Definition at line 80 of file attribute.cpp.

Uml::Parameter_Direction UMLAttribute::getParmKind (  )  const

Definition at line 103 of file attribute.cpp.

UMLClassifierList UMLAttribute::getTemplateParams (  )  [virtual]

Returns all the template params (if any) that are in the type of this attribute.

Definition at line 366 of file attribute.cpp.

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

Loads the <UML:Attribute> XMI element.

Reimplemented from UMLObject.

Reimplemented in UMLEntityAttribute.

Definition at line 255 of file attribute.cpp.

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

Overloaded '==' operator.

Reimplemented from UMLObject.

Reimplemented in UMLEntityAttribute.

Definition at line 190 of file attribute.cpp.

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

Creates the <UML:Attribute> XMI element.

Implements UMLObject.

Reimplemented in UMLEntityAttribute.

Definition at line 238 of file attribute.cpp.

void UMLAttribute::setInitialValue ( const QString &  iv  ) 

Sets the initial value of the UMLAttribute.

Parameters:
iv The initial value of the UMLAttribute.

Definition at line 90 of file attribute.cpp.

void UMLAttribute::setName ( const QString &  name  )  [virtual]

Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.

Reimplemented from UMLObject.

Definition at line 57 of file attribute.cpp.

void UMLAttribute::setParmKind ( Uml::Parameter_Direction  pk  ) 

Definition at line 98 of file attribute.cpp.

void UMLAttribute::setVisibility ( Uml::Visibility  s  ) 

Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.

Reimplemented from UMLObject.

Definition at line 68 of file attribute.cpp.

bool UMLAttribute::showPropertiesDialog ( QWidget *  parent  )  [virtual]

Display the properties configuration dialog for the attribute.

Implements UMLClassifierListItem.

Reimplemented in UMLEntityAttribute.

Definition at line 305 of file attribute.cpp.

QString UMLAttribute::toString ( Uml::Signature_Type  sig = Uml::st_NoSig  )  [virtual]

Returns a string representation of the UMLAttribute.

Parameters:
sig If true will show the attribute type and initial value.
Returns:
Returns a string representation of the UMLAttribute.

Reimplemented from UMLClassifierListItem.

Reimplemented in UMLEntityAttribute.

Definition at line 115 of file attribute.cpp.


Member Data Documentation

QString UMLAttribute::m_InitialValue [protected]

text for the attribute's initial value.

Definition at line 98 of file attribute.h.

Uml::Parameter_Direction UMLAttribute::m_ParmKind [protected]

Definition at line 99 of file attribute.h.


The documentation for this class was generated from the following files:
  • attribute.h
  • attribute.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"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
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