UMLRole Class Reference
This class contains the non-graphic representation of an association role. More...
#include <umlrole.h>
Inheritance diagram for UMLRole:

Public Member Functions | |
| UMLRole (UMLAssociation *parent, UMLObject *parentUMLObject, Uml::Role_Type role) | |
| Sets up an association. | |
| bool | operator== (UMLRole &rhs) |
| Overloaded '==' operator. | |
| virtual | ~UMLRole () |
| Standard deconstructor. | |
| UMLObject * | getObject () |
| Returns the UMLObject assigned to the role. | |
| Uml::Changeability_Type | getChangeability () const |
| Returns the Changeablity of the role. | |
| QString | getMultiplicity () const |
| Returns the multiplicity assigned to the role. | |
| void | setObject (UMLObject *obj) |
| Sets the UMLObject playing the role in the association. | |
| void | setChangeability (Uml::Changeability_Type value) |
| Sets the changeability of the role. | |
| void | setMultiplicity (const QString &multi) |
| Sets the multiplicity of the role. | |
| UMLAssociation * | getParentAssociation () |
| Uml::Role_Type | getRole () |
| get the 'id' of the role (NOT the parent object). | |
| UMLObject * | clone () const |
| Make a clone of this object. | |
| void | saveToXMI (QDomDocument &qDoc, QDomElement &qElement) |
| Creates the <UML:AssociationEnd> XMI element. | |
Protected Member Functions | |
| bool | load (QDomElement &element) |
| Loads the <UML:AssociationEnd> XMI element. | |
Detailed Description
This class contains the non-graphic representation of an association role.
- Author:
- Brian Thomas <brian.thomas@gsfc.nasa.gov>
- See also:
- UMLObject
Definition at line 26 of file umlrole.h.
Constructor & Destructor Documentation
|
||||||||||||||||
|
Sets up an association.
Definition at line 26 of file umlrole.cpp. References UMLObject::init(). |
|
|
Standard deconstructor.
Definition at line 32 of file umlrole.cpp. |
Member Function Documentation
|
|
Overloaded '==' operator.
Definition at line 34 of file umlrole.cpp. |
|
|
Returns the UMLObject assigned to the role.
Definition at line 49 of file umlrole.cpp. Referenced by UMLAssociation::getObject(), UMLAssociation::getObjectId(), CodeClassField::getTypeName(), UMLAssociation::resolveRef(), and UMLAssociation::toString(). |
|
|
Returns the Changeablity of the role.
Definition at line 53 of file umlrole.cpp. Referenced by UMLAssociation::getChangeability(). |
|
|
Returns the multiplicity assigned to the role.
Definition at line 57 of file umlrole.cpp. Referenced by CodeClassField::fieldIsSingleValue(), UMLAssociation::getMulti(), ClassifierCodeDocument::hasObjectVectorClassFields(), CodeClassField::maximumListOccurances(), and CodeClassField::minimumListOccurances(). |
|
|
Sets the UMLObject playing the role in the association.
Definition at line 61 of file umlrole.cpp. References UMLObject::emitModified(). Referenced by UMLAssociation::load(), and UMLAssociation::setObject(). |
|
|
Sets the changeability of the role.
Definition at line 77 of file umlrole.cpp. References UMLObject::emitModified(). Referenced by UMLAssociation::setChangeability(), and UMLRoleProperties::updateObject(). |
|
|
Sets the multiplicity of the role.
Definition at line 82 of file umlrole.cpp. References UMLObject::emitModified(). Referenced by UMLAssociation::setMulti(), Import_Rose::umbrellify(), and UMLRoleProperties::updateObject(). |
|
|
get the 'id' of the role (NOT the parent object). This could be either Uml::A or Uml::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. Definition at line 87 of file umlrole.cpp. Referenced by ClassifierCodeDocument::findCodeClassFieldFromParentID(), CodeClassField::findMethodByType(), OwnedHierarchicalCodeBlock::setAttributesOnNode(), OwnedCodeBlock::setAttributesOnNode(), and CodeParameter::setAttributesOnNode(). |
|
|
Make a clone of this object. Not yet implemented. Implements UMLObject. |
|
||||||||||||
|
Creates the <UML:AssociationEnd> XMI element.
Implements UMLObject. Definition at line 104 of file umlrole.cpp. References UMLAssociation::getAssocType(), UMLObject::getID(), UMLObject::getVisibility(), and UMLObject::save(). Referenced by UMLAssociation::saveToXMI(). |
|
|
Loads the <UML:AssociationEnd> XMI element. Auxiliary to UMLObject::loadFromXMI. Reimplemented from UMLObject. Definition at line 159 of file umlrole.cpp. References UMLDoc::findObjectById(), UMLApp::getDocument(), UMLAssociation::getOldLoadMode(), UMLAssociation::setAssocType(), UMLAssociation::setOldLoadMode(), and Uml::tagEq(). |
The documentation for this class was generated from the following files:
