umbrello 25.04.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <umlrole.h>
Protected Member Functions | |
bool | load1 (QDomElement &element) |
![]() | |
void | init () |
void | maybeSignalObjectCreated () |
void | save1end (QXmlStreamWriter &writer) |
Private Attributes | |
UMLAssociation * | m_pAssoc |
Uml::RoleType::Enum | m_role |
QString | m_Multi |
Uml::Changeability::Enum | m_Changeability |
This class contains the non-graphic representation of an association role.
UMLRole::UMLRole | ( | UMLAssociation * | parent, |
UMLObject * | parentObj, | ||
Uml::RoleType::Enum | role | ||
) |
Sets up an association.
parent | The parent (association) of this UMLRole. |
parentObj | The Parent UML Object of this UMLRole |
role | The Uml::RoleType::Enum of this UMLRole |
|
virtual |
Standard destructor.
Uml::Changeability::Enum UMLRole::changeability | ( | ) | const |
Returns the Changeablity of the role.
|
protectedvirtual |
Loads the <UML:AssociationEnd> XMI element. Auxiliary to UMLObject::loadFromXMI.
Reimplemented from UMLObject.
QString UMLRole::multiplicity | ( | ) | const |
Returns the multiplicity assigned to the role.
UMLObject * UMLRole::object | ( | ) | const |
UMLAssociation * UMLRole::parentAssociation | ( | ) | const |
Uml::RoleType::Enum UMLRole::role | ( | ) | const |
Get the 'id' of the role (NOT the parent object). This could be either Uml::RoleType::A or Uml::RoleType::B. Yes, it would be better if we could get along without this, but we need it to distinguish saved umlrole objects in the XMI for 'self' associations where both roles will point to the same underlying UMLObject.
|
virtual |
Creates the <UML:AssociationEnd> XMI element.
Reimplemented from UMLObject.
void UMLRole::setChangeability | ( | Uml::Changeability::Enum | value | ) |
Sets the changeability of the role.
value | Changeability::Enum of role. |
void UMLRole::setMultiplicity | ( | const QString & | multi | ) |
Sets the multiplicity of the role.
multi | The multiplicity of role. |
void UMLRole::setObject | ( | UMLObject * | obj | ) |
|
virtual |
Display the properties configuration dialog for the object.
parent | The parent widget. |
Reimplemented from UMLObject.
QString UMLRole::toString | ( | ) | const |
Returns a String representation of this UMLRole instance.
|
private |
|
private |
|
private |
|
private |