|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.model.uml.behavioralelements.collaborations.CollaborationsHelper
Helper class for UML BehavioralElements::Collaborations Package. Current implementation is a placeholder.
Method Summary | |
void |
addBase(ru.novosoft.uml.behavior.collaborations.MClassifierRole role,
ru.novosoft.uml.foundation.core.MClassifier base)
Adds a base to the given classifierrole. |
java.util.Collection |
allAvailableContents(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
Returns all available contents for a given classifierrole as defined in section 2.10.3.3 of the UML 1.3 spec. |
java.util.Collection |
allAvailableFeatures(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
Returns all available features for a given classifierrole as defined in section 2.10.3.3 of the UML 1.3 spec. |
java.util.Collection |
getAllClassifierRoles()
Returns all classifierroles found in the projectbrowser model |
java.util.Collection |
getAllClassifierRoles(ru.novosoft.uml.foundation.core.MNamespace ns)
Returns all classifierroles found in this namespace and in its children |
java.util.Collection |
getAllPossibleActivators(ru.novosoft.uml.behavior.collaborations.MMessage mes)
Returns all possible activators for some message mes. |
java.util.Collection |
getAllPossibleAssociationRoles(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
Returns all associations the bases of the classifierrole has, thereby forming the set of associationroles the classifierrole can use. |
java.util.Collection |
getAllPossibleBases(ru.novosoft.uml.behavior.collaborations.MAssociationRole role)
Returns all possible bases for some associationrole taking into account the wellformednessrules as defined in section 2.10.3 of the UML 1.3 spec. |
java.util.Collection |
getAllPossibleBases(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
Returns all possible bases for some classifierrole taking into account the wellformednessrules as defined in section 2.10.3 of the UML 1.3 spec. |
java.util.Collection |
getAllPossiblePredecessors(ru.novosoft.uml.behavior.collaborations.MMessage message)
Returns all possible predecessors for some message, taking into account the wellformednessrules as defined in section 2.10 of the UML spec. |
ru.novosoft.uml.behavior.collaborations.MAssociationRole |
getAssocationRole(ru.novosoft.uml.behavior.collaborations.MClassifierRole from,
ru.novosoft.uml.behavior.collaborations.MClassifierRole to)
Returns the first found associationrole between two classifierroles. |
java.util.Collection |
getClassifierRoles(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
Returns all classifierroles associated via associationroles to some classifierrole role |
static CollaborationsHelper |
getHelper()
Singleton instance access method. |
boolean |
hasAsActivator(ru.novosoft.uml.behavior.collaborations.MMessage message,
ru.novosoft.uml.behavior.collaborations.MMessage activator)
Returns true if the given message has the message activator somewhere as it's activator. |
boolean |
isAddingCollaborationAllowed(java.lang.Object context)
Returns true if a collaboration may be added to the given context. |
void |
setActionAsAction(java.lang.Object message,
java.lang.Object action)
Couples a given action to the given messgae as being the action. |
void |
setActivator(ru.novosoft.uml.behavior.collaborations.MMessage mes,
ru.novosoft.uml.behavior.collaborations.MMessage activator)
Sets the activator of some given message mes. |
void |
setBase(ru.novosoft.uml.behavior.collaborations.MAssociationRole role,
ru.novosoft.uml.foundation.core.MAssociation base)
Sets the base of some associationrole, including the attached assocationendroles. |
void |
setBases(ru.novosoft.uml.behavior.collaborations.MClassifierRole role,
java.util.Collection bases)
Sets the bases of the given classifierrole to the given collection bases. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static CollaborationsHelper getHelper()
public java.util.Collection getAllClassifierRoles()
public java.util.Collection getAllClassifierRoles(ru.novosoft.uml.foundation.core.MNamespace ns)
public java.util.Collection getAllPossibleAssociationRoles(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
role
- public java.util.Collection getClassifierRoles(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
role
- public ru.novosoft.uml.behavior.collaborations.MAssociationRole getAssocationRole(ru.novosoft.uml.behavior.collaborations.MClassifierRole from, ru.novosoft.uml.behavior.collaborations.MClassifierRole to)
from
- to
- public java.util.Collection getAllPossibleActivators(ru.novosoft.uml.behavior.collaborations.MMessage mes)
mes
- public boolean hasAsActivator(ru.novosoft.uml.behavior.collaborations.MMessage message, ru.novosoft.uml.behavior.collaborations.MMessage activator)
message
- activator
- public void setActivator(ru.novosoft.uml.behavior.collaborations.MMessage mes, ru.novosoft.uml.behavior.collaborations.MMessage activator)
mes
- activator
- public java.util.Collection getAllPossiblePredecessors(ru.novosoft.uml.behavior.collaborations.MMessage message)
message
- public java.util.Collection getAllPossibleBases(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
role
- public void addBase(ru.novosoft.uml.behavior.collaborations.MClassifierRole role, ru.novosoft.uml.foundation.core.MClassifier base)
role
- base
- public void setBases(ru.novosoft.uml.behavior.collaborations.MClassifierRole role, java.util.Collection bases)
role
- bases
- public java.util.Collection allAvailableFeatures(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
role
- public java.util.Collection allAvailableContents(ru.novosoft.uml.behavior.collaborations.MClassifierRole role)
role
- public java.util.Collection getAllPossibleBases(ru.novosoft.uml.behavior.collaborations.MAssociationRole role)
role
- public void setBase(ru.novosoft.uml.behavior.collaborations.MAssociationRole role, ru.novosoft.uml.foundation.core.MAssociation base)
role
- base
- public void setActionAsAction(java.lang.Object message, java.lang.Object action)
state
- action
- public boolean isAddingCollaborationAllowed(java.lang.Object context)
context
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML (c) 1996-2002 |