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

umbrello/umbrello

UMLCheckConstraint Class Reference

#include <checkconstraint.h>

Inheritance diagram for UMLCheckConstraint:

Inheritance graph
[legend]

List of all members.


Detailed Description

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

Sets up Check Constraint information for UMLEntities.

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 26 of file checkconstraint.h.


Public Member Functions

 UMLCheckConstraint (UMLObject *parent, const QString &name, Uml::IDType id=Uml::id_None)
 UMLCheckConstraint (UMLObject *parent)
bool operator== (const UMLCheckConstraint &rhs)
virtual ~UMLCheckConstraint ()
virtual void copyInto (UMLObject *lhs) const
virtual UMLObject * clone () const
QString toString (Uml::Signature_Type sig=Uml::st_NoSig)
QString getFullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const
void saveToXMI (QDomDocument &qDoc, QDomElement &qElement)
virtual bool showPropertiesDialog (QWidget *parent)
QString getCheckCondition () const
void setCheckCondition (const QString &condition)

Protected Member Functions

bool load (QDomElement &element)

Constructor & Destructor Documentation

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

Sets up a constraint.

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

Definition at line 21 of file checkconstraint.cpp.

UMLCheckConstraint::UMLCheckConstraint ( UMLObject *  parent  ) 

Sets up a constraint.

Parameters:
parent The parent of this UMLCheckConstraint.

Definition at line 27 of file checkconstraint.cpp.

UMLCheckConstraint::~UMLCheckConstraint (  )  [virtual]

destructor.

Definition at line 42 of file checkconstraint.cpp.


Member Function Documentation

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

Overloaded '==' operator.

Definition at line 32 of file checkconstraint.cpp.

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

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

Reimplemented from UMLEntityConstraint.

Definition at line 44 of file checkconstraint.cpp.

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

Make a clone of the UMLCheckConstraint.

Implements UMLEntityConstraint.

Definition at line 54 of file checkconstraint.cpp.

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

Returns a string representation of the UMLCheckConstraint.

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 61 of file checkconstraint.cpp.

QString UMLCheckConstraint::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 71 of file checkconstraint.cpp.

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

Creates the <UML:UniqueConstraint> XMI element.

Implements UMLObject.

Definition at line 77 of file checkconstraint.cpp.

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

Display the properties configuration dialog for the attribute.

Implements UMLClassifierListItem.

Definition at line 86 of file checkconstraint.cpp.

QString UMLCheckConstraint::getCheckCondition (  )  const [inline]

Returns a string represention of the condition that this constraint is checking.

Definition at line 92 of file checkconstraint.h.

void UMLCheckConstraint::setCheckCondition ( const QString &  condition  )  [inline]

Sets the Condition that's to be checked.

Definition at line 99 of file checkconstraint.h.

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

Loads the <UML:CheckConstraint> XMI element.

Reimplemented from UMLObject.

Definition at line 91 of file checkconstraint.cpp.


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