|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The interface for the helper to Collaborations.
Created from the old CollaborationsHelper.
| Method Summary | |
void |
addBase(Object arole,
Object abase)
Adds a base to the given classifierrole. |
void |
addConstrainingElement(Object handle,
Object constraint)
Add a constraining element. |
void |
addInstance(Object classifierRole,
Object instance)
Adds an instance to a classifier role. |
void |
addMessage(Object handle,
Object elem)
Add a message to an interaction or association role. |
void |
addMessage3(Object handle,
Object mess)
Add Message to a predecessor Message. |
void |
addPredecessor(Object handle,
Object predecessor)
Adds a predecessor to a message. |
Collection |
allAvailableContents(Object arole)
Returns all available contents for a given classifierrole as defined in section 2.10.3.3 of the UML 1.3 spec. |
Collection |
allAvailableFeatures(Object arole)
Returns all available features for a given classifierrole as defined in section 2.10.3.3 of the UML 1.3 spec. |
Collection |
getAllClassifierRoles(Object ns)
Returns all classifierroles found in this namespace and in its children. |
Collection |
getAllPossibleActivators(Object ames)
Returns all possible activators for some message mes. |
Collection |
getAllPossibleAssociationRoles(Object role)
Returns all associations the bases of the classifierrole has, thereby forming the set of associationroles the classifierrole can use. |
Collection |
getAllPossibleBases(Object role)
Returns all possible bases for the given element. |
Collection |
getAllPossiblePredecessors(Object amessage)
Returns all possible predecessors for some message, taking into account the wellformednessrules as defined in section 2.10 of the UML spec. |
Object |
getAssocationRole(Object afrom,
Object ato)
Deprecated. for 0.21.2 by tfmorris, use getAssociationRole |
Object |
getAssociationRole(Object afrom,
Object ato)
Returns the first found associationrole between two classifierroles. |
Collection |
getClassifierRoles(Object role)
Returns all classifierroles associated via associationroles to some classifierrole role. |
boolean |
hasAsActivator(Object message,
Object activator)
Returns true if the given message has the message activator somewhere as it's activator. |
boolean |
isAddingCollaborationAllowed(Object context)
Returns true if a collaboration may be added to the given context. |
void |
removeBase(Object handle,
Object c)
This method removes a classifier from a classifier role. |
void |
removeConstrainingElement(Object handle,
Object constraint)
Remove a constraining element. |
void |
removeInteraction(Object collab,
Object interaction)
Additionnal support for interactions. |
void |
removeMessage(Object handle,
Object message)
Removes a message from the interaction or association role. |
void |
removeMessage3(Object handle,
Object mess)
Removes a successor message. |
void |
removePredecessor(Object handle,
Object message)
Removes a predecessor message. |
void |
setAction(Object handle,
Object action)
Sets the action to a message. |
void |
setActivator(Object ames,
Object anactivator)
Sets the activator of some given message mes. |
void |
setBase(Object arole,
Object abase)
Sets the base checking for wellformedness according to 2.10.3 in the UML 1.3 specification. |
void |
setBases(Object role,
Collection bases)
Sets the bases of the given classifierrole to the given collection bases. |
void |
setContext(Object handle,
Object col)
Set the context of an interaction. |
void |
setMessages3(Object handle,
Collection messages)
Set the successors of a message (named messsage3 in UML 1.3 & successor in UML 1.4). |
void |
setPredecessors(Object handle,
Collection predecessors)
Set the collection of predecessing messages. |
void |
setRepresentedClassifier(Object handle,
Object classifier)
Sets the represented classifier of some collaboration. |
void |
setRepresentedOperation(Object handle,
Object operation)
Sets the represented operation of some collaboration. |
void |
setSender(Object handle,
Object sender)
Sets the sender of some model element. |
| Method Detail |
public Collection getAllClassifierRoles(Object ns)
ns - the namespace
public Collection getAllPossibleAssociationRoles(Object role)
role - the classifierrole
public Collection getClassifierRoles(Object role)
role - the classifierrole
public Object getAssociationRole(Object afrom,
Object ato)
afrom - the first classifierroleato - the second classifierrole
public Object getAssocationRole(Object afrom,
Object ato)
afrom - the first classifierroleato - the second classifierrole
getAssociationRole(Object, Object)public Collection getAllPossibleActivators(Object ames)
ames - the message
public boolean hasAsActivator(Object message,
Object activator)
message - the given messageactivator - the given activator (a message).
public void setActivator(Object ames,
Object anactivator)
ames - the given messageanactivator - the given activator or null.public Collection getAllPossiblePredecessors(Object amessage)
amessage - the given message
public void addBase(Object arole,
Object abase)
arole - the given classifierroleabase - the base to be added
public void setBases(Object role,
Collection bases)
role - the given classifierrolebases - the given collection of basespublic Collection allAvailableFeatures(Object arole)
arole - the given classifierrole
public Collection allAvailableContents(Object arole)
arole - the given classifierrole
public Collection getAllPossibleBases(Object role)
TODO: Beware: this function does not return the actual base! Is that by design or a bug?
role - the given classifierrole or associationrole
public void setBase(Object arole,
Object abase)
Either the role can be an AssociationRole in which case the given base must be an Association. Or the role can be an AssocationEndRole in which case the given base must be an AssociationEnd.
To set the base(s) of a ClassifierRole use
setBases(Object, Collection).
arole - The given role.abase - The base to set (or null to clear).public boolean isAddingCollaborationAllowed(Object context)
context - the given context
public void removeBase(Object handle,
Object c)
handle - is the classifier rolec - is the classifier
public void removeConstrainingElement(Object handle,
Object constraint)
handle - The collaboration to remove a constraint to.constraint - The constraint to remove.
public void removeMessage(Object handle,
Object message)
handle - The interaction or association role to remove the
message from.message - The message to remove.
public void removeMessage3(Object handle,
Object mess)
handle - the Message that needs to loose a successormess - the Message that is removed
public void removePredecessor(Object handle,
Object message)
handle - the Message that needs to loose a predecessormessage - the Message that is removed
public void addConstrainingElement(Object handle,
Object constraint)
handle - The collaboration to add a constraint to.constraint - The constraint to add.
public void addInstance(Object classifierRole,
Object instance)
classifierRole - is the classifier roleinstance - is the instance to add
public void addMessage(Object handle,
Object elem)
handle - The interaction or association role.elem - The message.
public void addMessage3(Object handle,
Object mess)
handle - predecessor Messagemess - Message to be added
public void addPredecessor(Object handle,
Object predecessor)
handle - the messagepredecessor - is the predecessor
public void setAction(Object handle,
Object action)
handle - is the messageaction - is the action
public void setContext(Object handle,
Object col)
handle - The element.col - The context to set.
public void setMessages3(Object handle,
Collection messages)
handle - Messagemessages - Collection of successor messages
public void setPredecessors(Object handle,
Collection predecessors)
handle - Messagepredecessors - Collection of Messages
public void setRepresentedClassifier(Object handle,
Object classifier)
handle - the collaborationclassifier - is the classifier or null
public void setRepresentedOperation(Object handle,
Object operation)
handle - the collaborationoperation - is the operation or null
public void setSender(Object handle,
Object sender)
handle - model elementsender - the sender
public void removeInteraction(Object collab,
Object interaction)
collab - The collaboration.interaction - The interaction.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |