umbrello/umbrello
foreignkeyconstraint.cpp
Go to the documentation of this file.
111 UMLForeignKeyConstraint *clone = new UMLForeignKeyConstraint(static_cast<UMLObject*>(parent()));
148 QDomElement foreignKeyConstraintElement = UMLObject::save(QLatin1String("UML:ForeignKeyConstraint"), qDoc);
150 foreignKeyConstraintElement.setAttribute(QLatin1String("referencedEntity"), Uml::ID::toString(m_ReferencedEntity->id()));
184 bool UMLForeignKeyConstraint::addEntityAttributePair(UMLEntityAttribute* pAttr, UMLEntityAttribute* rAttr)
256 bool UMLForeignKeyConstraint::hasEntityAttributePair(UMLEntityAttribute* pAttr, UMLEntityAttribute* rAttr) const
274 Uml::ID::Type referencedEntityId = Uml::ID::fromString(element.attribute(QLatin1String("referencedEntity")));
408 QMap<UMLEntityAttribute*, UMLEntityAttribute*> UMLForeignKeyConstraint::getEntityAttributePairs()
bool contains(const Key &key) const
A dialog page to display foreignkey constraint properties.
Definition: umlforeignkeyconstraintdialog.h:39
QList< T > values() const
QDomNode appendChild(const QDomNode &newChild)
void setUpdateAction(UpdateDeleteAction uda)
Set the Update Action to the specified UpdateDeleteAction.
Definition: foreignkeyconstraint.cpp:440
bool hasEntityAttributePair(UMLEntityAttribute *pAttr, UMLEntityAttribute *rAttr) const
Check if a attribute pair already exists.
Definition: foreignkeyconstraint.cpp:256
QString attribute(const QString &name, const QString &defValue) const
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3081
void setDeleteAction(UpdateDeleteAction uda)
Set the Delete Action to the specified UpdateDeleteAction.
Definition: foreignkeyconstraint.cpp:432
UpdateDeleteAction
Update/Delete Action: Action to be taken on Update or Delete of a referenced attribute is either...
Definition: foreignkeyconstraint.h:42
void clear()
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the UMLEntityConstraint object.
Definition: entityconstraint.cpp:70
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:910
This class is used to set up information for a foreign key entity constraint.
Definition: foreignkeyconstraint.h:32
void clearMappings()
Clears all mappings between local and referenced attributes.
Definition: foreignkeyconstraint.cpp:366
virtual bool showPropertiesDialog(QWidget *parent)
Display the properties configuration dialog for the attribute.
Definition: foreignkeyconstraint.cpp:172
QDomNode nextSibling() const
QDomElement toElement() const
QList< Key > keys() const
void setReferencedEntity(UMLEntity *ent)
Set the Referenced Entity.
Definition: foreignkeyconstraint.cpp:335
Definition: basictypes.h:142
Definition: basictypes.h:141
void setAttribute(const QString &name, const QString &value)
int toInt(bool *ok, int base) const
virtual UMLObject * clone() const
Make a clone of the UMLForeignKeyConstraint.
Definition: foreignkeyconstraint.cpp:108
bool operator==(const UMLForeignKeyConstraint &rhs) const
Overloaded '==' operator.
Definition: foreignkeyconstraint.cpp:69
iterator end()
bool resolveRef()
Remimplementation from base classes Used to resolve forward references to referenced entities in xmi...
Definition: foreignkeyconstraint.cpp:375
UpdateDeleteAction getUpdateAction() const
Get the Update Action.
Definition: foreignkeyconstraint.cpp:424
iterator begin()
Definition: umlobject.h:73
UMLEntity * getReferencedEntity() const
Get the Referenced Entity.
Definition: foreignkeyconstraint.cpp:349
QMap< UMLEntityAttribute *, UMLEntityAttribute * > getEntityAttributePairs()
Retrieve all Pairs of Attributes.
Definition: foreignkeyconstraint.cpp:408
virtual UMLObject * findChildObjectById(Uml::ID::Type id, bool considerAncestors=false)
Find the child object by the given id.
Definition: classifier.cpp:561
bool isNull() const
This class is used to set up information for a entity constraint.
Definition: entityconstraint.h:26
const Key key(const T &value) const
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:782
QString toString(Uml::SignatureType::Enum sig=Uml::SignatureType::NoSig)
Returns a string representation of the UMLForeignKeyConstraint.
Definition: foreignkeyconstraint.cpp:121
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:806
QDomNode firstChild() const
This class is used to set up information for an entityattribute.
Definition: entityattribute.h:25
UpdateDeleteAction getDeleteAction() const
Get the Delete Action.
Definition: foreignkeyconstraint.cpp:416
bool isComment() const
virtual void copyInto(UMLObject *lhs) const
Copy the internal presentation of this object into the UMLForeignKeyConstraint object.
Definition: foreignkeyconstraint.cpp:91
UMLForeignKeyConstraint(UMLObject *parent, const QString &name, Uml::ID::Type id=Uml::ID::None)
Sets up a constraint.
Definition: foreignkeyconstraint.cpp:30
iterator insert(const Key &key, const T &value)
QString tagName() const
QDomElement createElement(const QString &tagName)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void sigReferencedEntityChanged()
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the XMI element.
Definition: foreignkeyconstraint.cpp:146
bool addEntityAttributePair(UMLEntityAttribute *pAttr, UMLEntityAttribute *rAttr)
Adds the attribute pair to the attributeMap.
Definition: foreignkeyconstraint.cpp:184
This class contains the non-graphical information required for a UML Entity.
Definition: entity.h:34
const T value(const Key &key) const
int remove(const Key &key)
bool removeEntityAttributePair(UMLEntityAttribute *pAttr)
Removes an Attribute pair.
Definition: foreignkeyconstraint.cpp:243
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.