umbrello API Documentation

AssocRules Class Reference

Used to determine rules for associations. More...

#include <assocrules.h>

List of all members.

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

AssocRules::AssocRules  ) 
 

Constructor.

Definition at line 33 of file assocrules.cpp.

AssocRules::~AssocRules  ) 
 

Deconstructor.

Definition at line 35 of file assocrules.cpp.


Member Function Documentation

bool AssocRules::allowAssociation Uml::Association_Type  assocType,
UMLWidget widget
[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 43 of file assocrules.cpp.

References ActivityWidget::getActivityType(), UMLApp::getCurrentView(), StateWidget::getStateType(), and UMLView::getType().

Referenced by UMLView::addAssociation().

bool AssocRules::allowAssociation Uml::Association_Type  assocType,
UMLWidget widgetA,
UMLWidget widgetB,
bool  extendedCheck = true
[static]
 

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().

bool AssocRules::allowRole Uml::Association_Type  assocType  )  [static]
 

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().

bool AssocRules::allowMultiplicity Uml::Association_Type  assocType,
Uml::Widget_Type  widgetType
[static]
 

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().

bool AssocRules::allowSelf Uml::Association_Type  assocType,
Uml::Widget_Type  widgetType
[static]
 

Returns whether to allow an association to self for given variables.

Definition at line 259 of file assocrules.cpp.

Association_Type AssocRules::isGeneralisationOrRealisation UMLWidget widgetA,
UMLWidget widgetB
[static]
 

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:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:03 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003