umbrello/umbrello
UMLCheckConstraint Class Reference
This class is used to set up information for a unique entity constraint. More...
#include <checkconstraint.h>

Public Member Functions | |
| UMLCheckConstraint (UMLObject *parent) | |
| UMLCheckConstraint (UMLObject *parent, const QString &name, Uml::IDType id=Uml::id_None) | |
| virtual | ~UMLCheckConstraint () |
| virtual UMLObject * | clone () const |
| virtual void | copyInto (UMLObject *lhs) const |
| QString | getCheckCondition () const |
| QString | getFullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const |
| bool | operator== (const UMLCheckConstraint &rhs) |
| void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
| void | setCheckCondition (const QString &condition) |
| 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 Check Constraint information for UMLEntities.
- 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.
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 19 of file checkconstraint.cpp.
| UMLCheckConstraint::UMLCheckConstraint | ( | UMLObject * | parent | ) |
Sets up a constraint.
- Parameters:
-
parent The parent of this UMLCheckConstraint.
Definition at line 26 of file checkconstraint.cpp.
| UMLCheckConstraint::~UMLCheckConstraint | ( | ) | [virtual] |
destructor.
Definition at line 43 of file checkconstraint.cpp.
Member Function Documentation
| UMLObject * UMLCheckConstraint::clone | ( | ) | const [virtual] |
Make a clone of the UMLCheckConstraint.
Implements UMLEntityConstraint.
Definition at line 65 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 51 of file checkconstraint.cpp.
| QString UMLCheckConstraint::getCheckCondition | ( | ) | const [inline] |
Definition at line 70 of file checkconstraint.h.
| 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 91 of file checkconstraint.cpp.
| bool UMLCheckConstraint::load | ( | QDomElement & | element | ) | [protected, virtual] |
Loads the <UML:CheckConstraint> XMI element.
Reimplemented from UMLObject.
Definition at line 123 of file checkconstraint.cpp.
| bool UMLCheckConstraint::operator== | ( | const UMLCheckConstraint & | rhs | ) |
Overloaded '==' operator.
Reimplemented from UMLEntityConstraint.
Definition at line 32 of file checkconstraint.cpp.
| void UMLCheckConstraint::saveToXMI | ( | QDomDocument & | qDoc, | |
| QDomElement & | qElement | |||
| ) | [virtual] |
Creates the <UML:UniqueConstraint> XMI element.
Implements UMLObject.
Definition at line 101 of file checkconstraint.cpp.
| void UMLCheckConstraint::setCheckCondition | ( | const QString & | condition | ) | [inline] |
Definition at line 74 of file checkconstraint.h.
| bool UMLCheckConstraint::showPropertiesDialog | ( | QWidget * | parent | ) | [virtual] |
Display the properties configuration dialog for the attribute.
Implements UMLClassifierListItem.
Definition at line 114 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 80 of file checkconstraint.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference