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

umbrello/umbrello

UMLUniqueConstraint Class Reference

This class is used to set up information for a unique entity constraint. More...

#include <uniqueconstraint.h>

Inheritance diagram for UMLUniqueConstraint:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 UMLUniqueConstraint (UMLObject *parent)
 UMLUniqueConstraint (UMLObject *parent, const QString &name, Uml::IDType id=Uml::id_None)
virtual ~UMLUniqueConstraint ()
bool addEntityAttribute (UMLEntityAttribute *attr)
void clearAttributeList ()
virtual UMLObject * clone () const
virtual void copyInto (UMLObject *lhs) const
UMLEntityAttributeList getEntityAttributeList () const
QString getFullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const
bool hasEntityAttribute (UMLEntityAttribute *attr)
bool operator== (const UMLUniqueConstraint &rhs)
bool removeEntityAttribute (UMLEntityAttribute *attr)
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
virtual bool showPropertiesDialog (QWidget *parent)
QString toString (Uml::Signature_Type sig=Uml::st_NoSig)

Protected Member Functions

bool load (QDomElement &element)

Detailed Description

This class is used to set up information for a unique entity constraint.

Sets up Unique entity constraint information.

Author:
Sharan Rao
See also:
UMLObject UMLClassifierListItem UMLEntityConstraint Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 28 of file uniqueconstraint.h.


Constructor & Destructor Documentation

UMLUniqueConstraint::UMLUniqueConstraint ( UMLObject *  parent,
const QString &  name,
Uml::IDType  id = Uml::id_None 
)

Sets up a constraint.

Parameters:
parent The parent of this UMLUniqueConstraint.
name The name of this UMLUniqueConstraint.
id The unique id given to this UMLUniqueConstraint.

Definition at line 33 of file uniqueconstraint.cpp.

UMLUniqueConstraint::UMLUniqueConstraint ( UMLObject *  parent  ) 

Sets up a constraint.

Parameters:
parent The parent of this UMLUniqueConstraint.

Definition at line 44 of file uniqueconstraint.cpp.

UMLUniqueConstraint::~UMLUniqueConstraint (  )  [virtual]

Destructor.

Definition at line 67 of file uniqueconstraint.cpp.


Member Function Documentation

bool UMLUniqueConstraint::addEntityAttribute ( UMLEntityAttribute *  attr  ) 

Adds a UMLEntityAttribute to the list.

The UMLEntityAttribute should already exist and should belong to the parent UMLEntity.

Parameters:
attr The UMLEntityAttribute to add
Returns:
false if it failed to add , else true

Definition at line 245 of file uniqueconstraint.cpp.

void UMLUniqueConstraint::clearAttributeList (  ) 

Clear the list of attributes contained in this UniqueConstraint.

Definition at line 323 of file uniqueconstraint.cpp.

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

Make a clone of the UMLUniqueConstraint.

Implements UMLEntityConstraint.

Definition at line 100 of file uniqueconstraint.cpp.

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

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

Reimplemented from UMLEntityConstraint.

Definition at line 75 of file uniqueconstraint.cpp.

UMLEntityAttributeList UMLUniqueConstraint::getEntityAttributeList (  )  const

Get the Entity Attributes List.

Definition at line 310 of file uniqueconstraint.cpp.

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

Returns the fully qualified name, i.e.

all package prefixes and then m_Name.

Parameters:
separator The separator string to use (optional.) If not given then the separator is chosen according to the currently selected active programming language of import and code generation.
includeRoot Whether to prefix the root folder name to the FQN. See UMLDoc::getRootFolder(). Default: false.
Returns:
The fully qualified name of this UMLObject.

Reimplemented from UMLObject.

Definition at line 141 of file uniqueconstraint.cpp.

bool UMLUniqueConstraint::hasEntityAttribute ( UMLEntityAttribute *  attr  ) 

Check if a entity attribute is present in m_entityAttributeList.

Parameters:
attr The Entity Attribute to check for existence in list
Returns:
true if it exists in the list, else false

Definition at line 226 of file uniqueconstraint.cpp.

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

Loads the <UML:UniqueConstraint> XMI element.

Reimplemented from UMLObject.

Definition at line 181 of file uniqueconstraint.cpp.

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

Overloaded '==' operator.

Reimplemented from UMLEntityConstraint.

Definition at line 53 of file uniqueconstraint.cpp.

bool UMLUniqueConstraint::removeEntityAttribute ( UMLEntityAttribute *  attr  ) 

Removes a UMLEntityAttribute from the list.

Parameters:
attr The UMLEntityAttribute to remove from list
Returns:
false if it failed to remove the attribute from the list

Definition at line 278 of file uniqueconstraint.cpp.

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

Creates the <UML:UniqueConstraint> XMI element.

Implements UMLObject.

Definition at line 151 of file uniqueconstraint.cpp.

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

Display the properties configuration dialog for the attribute.

Implements UMLClassifierListItem.

Definition at line 172 of file uniqueconstraint.cpp.

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

Returns a string representation of the UMLUniqueConstraint.

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

Reimplemented from UMLClassifierListItem.

Definition at line 114 of file uniqueconstraint.cpp.


The documentation for this class was generated from the following files:
  • uniqueconstraint.h
  • uniqueconstraint.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