umbrello
2.35.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <assocrules.h>
Classes | |
class | Assoc_Rule |
Public Types | |
enum | Language { All, Java } |
enum | Level { Any, UML1, UML2 } |
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 | allowRole (Uml::AssociationType::Enum assocType) |
static bool | allowMultiplicity (Uml::AssociationType::Enum assocType, WidgetBase::WidgetType widgetType) |
static bool | allowSelf (Uml::AssociationType::Enum assocType, WidgetBase::WidgetType widgetType) |
static Uml::AssociationType::Enum | isGeneralisationOrRealisation (UMLWidget *widgetA, UMLWidget *widgetB) |
Static Private Attributes | |
static const Assoc_Rule | m_AssocRules [] |
Container that holds all the rules. More... | |
static const int | m_nNumRules = sizeof(m_AssocRules) / sizeof(AssocRules::Assoc_Rule) |
The number of rules known about. More... | |
Used to determine rules for associations.
enum AssocRules::Language |
enum AssocRules::Level |
AssocRules::AssocRules | ( | ) |
Constructor.
AssocRules::~AssocRules | ( | ) |
Destructor.
|
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.
|
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.
|
static |
Returns whether to allow a multiplicity text for the given association and widget type.
|
static |
Returns whether to allow a role text for the given association type.
|
static |
Returns whether to allow an association to self for given variables.
|
static |
Returns whether an implements association should be a Realisation or a Generalisation. as defined in m_AssocRules.
|
staticprivate |
Container that holds all the rules.
|
staticprivate |
The number of rules known about.