umbrello/umbrello
#include <uniqueconstraint.h>
Public Member Functions | |
UMLUniqueConstraint (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLUniqueConstraint (UMLObject *parent) | |
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) const |
bool | removeEntityAttribute (UMLEntityAttribute *attr) |
void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
virtual bool | showPropertiesDialog (QWidget *parent) |
QString | toString (Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig) |
Public Member Functions inherited from UMLEntityConstraint | |
UMLEntityConstraint (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLEntityConstraint (UMLObject *parent) | |
virtual | ~UMLEntityConstraint () |
bool | operator== (const UMLEntityConstraint &rhs) const |
Public Member Functions inherited from UMLClassifierListItem | |
UMLClassifierListItem (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLClassifierListItem (UMLObject *parent) | |
virtual | ~UMLClassifierListItem () |
UMLClassifier * | getType () const |
virtual QString | getTypeName () const |
virtual void | setType (UMLObject *type) |
void | setTypeName (const QString &type) |
Public Member Functions inherited from UMLObject | |
UMLObject (UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None) | |
UMLObject (UMLObject *parent) | |
UMLObject (const QString &name=QString(), Uml::ID::Type id=Uml::ID::None) | |
virtual | ~UMLObject () |
virtual bool | acceptAssociationType (Uml::AssociationType::Enum) |
ObjectType | baseType () const |
QLatin1String | baseTypeStr () const |
QString | doc () const |
virtual QString | fullyQualifiedName (const QString &separator=QString(), bool includeRoot=false) const |
bool | hasDoc () const |
virtual Uml::ID::Type | id () const |
bool | isAbstract () const |
bool | isStatic () const |
virtual bool | loadFromXMI (QDomElement &element) |
bool | loadStereotype (QDomElement &element) |
QString | name () const |
bool | operator== (const UMLObject &rhs) const |
QString | package (const QString &separator=QString(), bool includeRoot=false) |
UMLPackageList | packages (bool includeRoot=false) const |
virtual bool | resolveRef () |
QDomElement | save (const QString &tag, QDomDocument &qDoc) |
QString | secondaryFallback () const |
QString | secondaryId () const |
void | setAbstract (bool bAbstract) |
virtual void | setBaseType (ObjectType ot) |
void | setDoc (const QString &d) |
virtual void | setID (Uml::ID::Type NewID) |
void | setInPaste (bool bInPaste=true) |
virtual void | setName (const QString &strName) |
void | setNameCmd (const QString &strName) |
void | setPackage (const QString &_name) |
void | setSecondaryFallback (const QString &id) |
void | setSecondaryId (const QString &id) |
void | setStatic (bool bStatic) |
void | setStereotype (const QString &_name) |
void | setStereotypeCmd (const QString &_name) |
bool | setUMLPackage (UMLPackage *pPkg) |
void | setUMLStereotype (UMLStereotype *stereo) |
void | setVisibility (Uml::Visibility::Enum visibility) |
void | setVisibilityCmd (Uml::Visibility::Enum visibility) |
virtual bool | showPropertiesPagedDialog (int page=0, bool assoc=false) |
QString | stereotype (bool includeAdornments=false) const |
UMLPackage * | umlPackage () |
const UMLStereotype * | umlStereotype () |
Uml::Visibility::Enum | visibility () const |
Protected Member Functions | |
bool | load (QDomElement &element) |
Protected Member Functions inherited from UMLObject | |
void | init () |
void | maybeSignalObjectCreated () |
Detailed Description
This class is used to set up information for a unique entity constraint.
Sets up Unique entity constraint information.
- See also
- UMLObject UMLClassifierListItem UMLEntityConstraint Bugs and comments to umbre or llo- devel @kde .orghttp://bugs.kde.org
Definition at line 28 of file uniqueconstraint.h.
Constructor & Destructor Documentation
UMLUniqueConstraint::UMLUniqueConstraint | ( | UMLObject * | parent, |
const QString & | name, | ||
Uml::ID::Type | 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 31 of file uniqueconstraint.cpp.
|
explicit |
Sets up a constraint.
- Parameters
-
parent The parent of this UMLUniqueConstraint.
Definition at line 42 of file uniqueconstraint.cpp.
|
virtual |
Destructor.
Definition at line 65 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 243 of file uniqueconstraint.cpp.
void UMLUniqueConstraint::clearAttributeList | ( | ) |
Clear the list of attributes contained in this UniqueConstraint.
Definition at line 321 of file uniqueconstraint.cpp.
|
virtual |
Make a clone of the UMLUniqueConstraint.
Implements UMLEntityConstraint.
Definition at line 98 of file uniqueconstraint.cpp.
|
virtual |
Copy the internal presentation of this object into the UMLUniqueConstraint object.
Reimplemented from UMLEntityConstraint.
Definition at line 73 of file uniqueconstraint.cpp.
UMLEntityAttributeList UMLUniqueConstraint::getEntityAttributeList | ( | ) | const |
Get the Entity Attributes List.
Definition at line 308 of file uniqueconstraint.cpp.
QString UMLUniqueConstraint::getFullyQualifiedName | ( | const QString & | separator = QString() , |
bool | includeRoot = false |
||
) | const |
Definition at line 139 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 224 of file uniqueconstraint.cpp.
|
protectedvirtual |
Loads the <UML:UniqueConstraint> XMI element.
Reimplemented from UMLObject.
Definition at line 179 of file uniqueconstraint.cpp.
bool UMLUniqueConstraint::operator== | ( | const UMLUniqueConstraint & | rhs | ) | const |
Overloaded '==' operator.
Definition at line 51 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 276 of file uniqueconstraint.cpp.
|
virtual |
Creates the <UML:UniqueConstraint> XMI element.
Implements UMLObject.
Definition at line 149 of file uniqueconstraint.cpp.
|
virtual |
Display the properties configuration dialog for the attribute.
Implements UMLClassifierListItem.
Definition at line 170 of file uniqueconstraint.cpp.
|
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 112 of file uniqueconstraint.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.