AssocRules Class Reference
Used to determine rules for associations. More...
#include <assocrules.h>
Public Member Functions | |
| AssocRules () | |
| Constructor. | |
| ~AssocRules () | |
| Deconstructor. | |
Static Public Member Functions | |
| static bool | allowAssociation (Uml::Association_Type assocType, UMLWidget *widget) |
| Returns whether an association is going to be allowed for the given values. | |
| static bool | allowAssociation (Uml::Association_Type assocType, const std::type_info &) |
| static bool | allowAssociation (Uml::Association_Type assocType, UMLWidget *widgetA, UMLWidget *widgetB, bool extendedCheck=true) |
| Returns whether an association is valid with the given variables. | |
| static bool | allowRole (Uml::Association_Type assocType) |
| Returns whether to allow a role text for the given association type. | |
| static bool | allowMultiplicity (Uml::Association_Type assocType, Uml::Widget_Type widgetType) |
| Returns whether to allow a multiplicity text for the given association and widget type. | |
| static bool | allowSelf (Uml::Association_Type assocType, Uml::Widget_Type widgetType) |
| Returns whether to allow an association to self for given variables. | |
| static Uml::Association_Type | isGeneralisationOrRealisation (UMLWidget *widgetA, UMLWidget *widgetB) |
| Returns whether an implements association should be a Realisation or a Generalisation. | |
Detailed Description
Used to determine rules for associations.
- Author:
- Paul Hensgen Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 27 of file assocrules.h.
Constructor & Destructor Documentation
|
|
Constructor.
Definition at line 33 of file assocrules.cpp. |
|
|
Deconstructor.
Definition at line 35 of file assocrules.cpp. |
Member Function Documentation
|
||||||||||||
|
Returns whether an association is going to be allowed for the given values. This method is used to test if you can start an association. Definition at line 43 of file assocrules.cpp. References ActivityWidget::getActivityType(), UMLApp::getCurrentView(), StateWidget::getStateType(), and UMLView::getType(). Referenced by UMLView::addAssociation(). |
|
||||||||||||||||||||
|
Returns whether an association is valid with the given variables. This method is used to finish an association. Definition at line 118 of file assocrules.cpp. References ActivityWidget::getActivityType(), UMLWidget::getAssocList(), AssociationWidget::getAssocType(), StateWidget::getStateType(), and AssociationWidget::getWidget(). |
|
|
Returns whether to allow a role text for the given association type.
Definition at line 244 of file assocrules.cpp. Referenced by AssociationWidget::mouseReleaseEvent(), and AssociationWidget::setAssocType(). |
|
||||||||||||
|
Returns whether to allow a multiplicity text for the given association and widget type.
Definition at line 251 of file assocrules.cpp. Referenced by AssociationWidget::mouseReleaseEvent(), and AssociationWidget::setAssocType(). |
|
||||||||||||
|
Returns whether to allow an association to self for given variables.
Definition at line 259 of file assocrules.cpp. |
|
||||||||||||
|
Returns whether an implements association should be a Realisation or a Generalisation. as defined in m_AssocRules. Definition at line 268 of file assocrules.cpp. References WidgetBase::getBaseType(). |
The documentation for this class was generated from the following files:
