umbrello/umbrello
#include <assocrules.h>
Public Member Functions | |
AssocRules () | |
~AssocRules () | |
Static Public Member Functions | |
static bool | allowAssociation (Uml::AssociationType::Enum assocType, UMLWidget *widget) |
static bool | allowAssociation (Uml::AssociationType::Enum assocType, UMLWidget *widgetA, UMLWidget *widgetB) |
static bool | allowMultiplicity (Uml::AssociationType::Enum assocType, WidgetBase::WidgetType widgetType) |
static bool | allowRole (Uml::AssociationType::Enum assocType) |
static bool | allowSelf (Uml::AssociationType::Enum assocType, WidgetBase::WidgetType widgetType) |
static Uml::AssociationType::Enum | isGeneralisationOrRealisation (UMLWidget *widgetA, UMLWidget *widgetB) |
Detailed Description
Used to determine rules for associations.
Definition at line 25 of file assocrules.h.
Constructor & Destructor Documentation
AssocRules::AssocRules | ( | ) |
Constructor.
Definition at line 35 of file assocrules.cpp.
AssocRules::~AssocRules | ( | ) |
Destructor.
Definition at line 42 of file assocrules.cpp.
Member Function Documentation
|
static |
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 50 of file assocrules.cpp.
|
static |
Returns whether an association is valid with the given variables.
This method is used to finish an association. When we know what we are going to connect both ends of the association to, we can use this method.
Definition at line 143 of file assocrules.cpp.
|
static |
Returns whether to allow a multiplicity text for the given association and widget type.
Definition at line 316 of file assocrules.cpp.
|
static |
Returns whether to allow a role text for the given association type.
Definition at line 304 of file assocrules.cpp.
|
static |
Returns whether to allow an association to self for given variables.
Definition at line 328 of file assocrules.cpp.
|
static |
Returns whether an implements association should be a Realisation or a Generalisation.
as defined in m_AssocRules.
Definition at line 343 of file assocrules.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.