umbrello/umbrello
umlrole.cpp
Go to the documentation of this file.
114 uError() << "UMLRole(" << Uml::ID::toString(m_nId) << ") cannot setObject() to another UMLRole("
bool getOldLoadMode() const
Return the backward compatibility flag for loading files.
Definition: association.cpp:580
QString multiplicity() const
Returns the multiplicity assigned to the role.
Definition: umlrole.cpp:96
void setAssociationType(Uml::AssociationType::Enum assocType)
Sets the assocType of the UMLAssociation.
Definition: association.cpp:589
Definition: basictypes.h:209
Definition: umlobject.h:66
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:435
static bool tagEq(const QString &tag, const QString &pattern)
Function for comparing tags in XMI files.
Definition: umldoc.cpp:3030
void setObject(UMLObject *obj)
Sets the UMLObject playing the role in the association.
Definition: umlrole.cpp:106
UMLRole(UMLAssociation *parent, UMLObject *parentUMLObject, Uml::RoleType::Enum role)
Sets up an association.
Definition: umlrole.cpp:30
Definition: basictypes.h:176
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
This class contains the non-graphic representation of an association.
Definition: association.h:32
void setChangeability(Uml::Changeability::Enum value)
Sets the changeability of the role.
Definition: umlrole.cpp:128
Definition: basictypes.h:178
Uml::AssociationType::Enum getAssocType() const
Returns the AssociationType::Enum of the UMLAssociation.
Definition: association.cpp:103
void setOldLoadMode(bool value=true)
Set the attribute m_bOldLoadMode.
Definition: association.cpp:572
QString toString(Enum item, bool mnemonic)
Convert Visibility item into QString representation.
Definition: basictypes.cpp:99
Definition: basictypes.h:177
UMLObject * findObjectById(Uml::ID::Type id)
Used to find a reference to a UMLObject by its ID.
Definition: umldoc.cpp:766
QDomElement save(const QString &tag, QDomDocument &qDoc)
Auxiliary to saveToXMI.
Definition: umlobject.cpp:808
This class contains the non-graphic representation of an association role.
Definition: umlrole.h:24
void setMultiplicity(const QString &multi)
Sets the multiplicity of the role.
Definition: umlrole.cpp:139
Uml::RoleType::Enum role() const
Get the 'id' of the role (NOT the parent object).
Definition: umlrole.cpp:152
Uml::Changeability::Enum changeability() const
Returns the Changeablity of the role.
Definition: umlrole.cpp:86
void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Creates the XMI element.
Definition: umlrole.cpp:160
QString m_SecondaryId
xmi.id of the secondary object for intermediate use during loading.
Definition: umlobject.h:186
void modified()
UMLObject * m_pSecondary
pointer to an associated object Only a few of the classes inheriting from UMLObject use this...
Definition: umlobject.h:182
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.