|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.model.AbstractCollaborationsHelperDecorator
public abstract class AbstractCollaborationsHelperDecorator
An abstract Decorator for the CollaborationsHelper.
| Constructor Summary | |
|---|---|
protected |
AbstractCollaborationsHelperDecorator(CollaborationsHelper component)
|
| Method Summary | |
|---|---|
void |
addBase(java.lang.Object arole,
java.lang.Object abase)
Adds a base to the given classifierrole. |
void |
addConstrainingElement(java.lang.Object handle,
java.lang.Object constraint)
Add a constraining element. |
void |
addInstance(java.lang.Object classifierRole,
java.lang.Object instance)
Adds an instance to a classifier role. |
void |
addMessage(java.lang.Object handle,
java.lang.Object elem)
Add a message to an interaction or association role. |
void |
addPredecessor(java.lang.Object handle,
java.lang.Object predecessor)
Adds a predecessor to a message. |
void |
addSuccessor(java.lang.Object handle,
java.lang.Object mess)
Add Message to a predecessor Message. |
java.util.Collection |
allAvailableContents(java.lang.Object arole)
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(java.lang.Object arole)
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(java.lang.Object ns)
Returns all classifierroles found in this namespace and in its children. |
java.util.Collection |
getAllPossibleActivators(java.lang.Object ames)
Returns all possible activators for some message mes. |
java.util.Collection |
getAllPossibleAssociationRoles(java.lang.Object role)
Returns all associations the bases of the classifierrole has, thereby forming the set of associationroles the classifierrole can use. |
java.util.Collection |
getAllPossibleBases(java.lang.Object role)
Returns all possible bases for the given element (a ClassifierRole or AssociationRole). |
java.util.Collection |
getAllPossiblePredecessors(java.lang.Object amessage)
Returns all possible predecessors for some message, taking into account the wellformednessrules as defined in section 2.10 of the UML spec. |
java.lang.Object |
getAssociationRole(java.lang.Object afrom,
java.lang.Object ato)
Returns the first found associationrole between two classifierroles. |
java.util.Collection |
getClassifierRoles(java.lang.Object role)
Returns all classifierroles associated via associationroles to some classifierrole role. |
protected CollaborationsHelper |
getComponent()
The component we are decorating. |
boolean |
hasAsActivator(java.lang.Object message,
java.lang.Object 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 |
removeBase(java.lang.Object handle,
java.lang.Object c)
This method removes a classifier from a classifier role. |
void |
removeConstrainingElement(java.lang.Object handle,
java.lang.Object constraint)
Remove a constraining element. |
void |
removeInteraction(java.lang.Object collab,
java.lang.Object interaction)
Remove an Interaction from a Collaboration. |
void |
removeMessage(java.lang.Object handle,
java.lang.Object message)
Removes a message from the interaction or association role. |
void |
removeMessage3(java.lang.Object handle,
java.lang.Object mess)
|
void |
removePredecessor(java.lang.Object handle,
java.lang.Object message)
Removes a predecessor message. |
void |
removeSuccessor(java.lang.Object handle,
java.lang.Object mess)
Removes a successor message. |
void |
setAction(java.lang.Object handle,
java.lang.Object action)
Sets the action to a message. |
void |
setActivator(java.lang.Object ames,
java.lang.Object anactivator)
Sets the activator of some given message mes. |
void |
setBase(java.lang.Object arole,
java.lang.Object abase)
Sets the base checking for wellformedness according to 2.10.3 in the UML 1.3 specification. |
void |
setBases(java.lang.Object role,
java.util.Collection bases)
Sets the bases of the given classifierrole to the given collection bases. |
void |
setContext(java.lang.Object handle,
java.lang.Object col)
Set the context of an interaction. |
void |
setPredecessors(java.lang.Object handle,
java.util.Collection predecessors)
Set the collection of predecessor messages. |
void |
setRepresentedClassifier(java.lang.Object handle,
java.lang.Object classifier)
Sets the represented classifier of some collaboration. |
void |
setRepresentedOperation(java.lang.Object handle,
java.lang.Object operation)
Sets the represented operation of some collaboration. |
void |
setSender(java.lang.Object handle,
java.lang.Object sender)
Sets the sender of some model element. |
void |
setSuccessors(java.lang.Object handle,
java.util.Collection messages)
Set the successors of a message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractCollaborationsHelperDecorator(CollaborationsHelper component)
component - The component to decorate.| Method Detail |
|---|
protected CollaborationsHelper getComponent()
public java.util.Collection getAllClassifierRoles(java.lang.Object ns)
CollaborationsHelper
getAllClassifierRoles in interface CollaborationsHelperns - the namespace
public java.util.Collection getAllPossibleAssociationRoles(java.lang.Object role)
CollaborationsHelper
getAllPossibleAssociationRoles in interface CollaborationsHelperrole - the classifierrole
public java.util.Collection getClassifierRoles(java.lang.Object role)
CollaborationsHelper
getClassifierRoles in interface CollaborationsHelperrole - the classifierrole
public java.lang.Object getAssociationRole(java.lang.Object afrom,
java.lang.Object ato)
CollaborationsHelper
getAssociationRole in interface CollaborationsHelperafrom - the first classifierroleato - the second classifierrole
public java.util.Collection getAllPossibleActivators(java.lang.Object ames)
CollaborationsHelper
getAllPossibleActivators in interface CollaborationsHelperames - the message
public boolean hasAsActivator(java.lang.Object message,
java.lang.Object activator)
CollaborationsHelper
hasAsActivator in interface CollaborationsHelpermessage - the given messageactivator - the given activator (a message).
public void setActivator(java.lang.Object ames,
java.lang.Object anactivator)
CollaborationsHelper
setActivator in interface CollaborationsHelperames - the given messageanactivator - the given activator or null.public java.util.Collection getAllPossiblePredecessors(java.lang.Object amessage)
CollaborationsHelper
getAllPossiblePredecessors in interface CollaborationsHelperamessage - the given message
public void addBase(java.lang.Object arole,
java.lang.Object abase)
CollaborationsHelper
addBase in interface CollaborationsHelperarole - the given classifierroleabase - the base to be added
public void setBases(java.lang.Object role,
java.util.Collection bases)
CollaborationsHelper
setBases in interface CollaborationsHelperrole - the given classifierrolebases - the given collection of basespublic java.util.Collection allAvailableFeatures(java.lang.Object arole)
CollaborationsHelper
allAvailableFeatures in interface CollaborationsHelperarole - the given classifierrole
public java.util.Collection allAvailableContents(java.lang.Object arole)
CollaborationsHelper
allAvailableContents in interface CollaborationsHelperarole - the given classifierrole
public java.util.Collection getAllPossibleBases(java.lang.Object role)
CollaborationsHelperBeware: this function does not return the current base! Which is by design; there are easier ways to retrieve the actual base.
getAllPossibleBases in interface CollaborationsHelperrole - the given classifierrole or associationrole
public void setBase(java.lang.Object arole,
java.lang.Object abase)
CollaborationsHelperEither 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
CollaborationsHelper.setBases(Object, Collection).
setBase in interface CollaborationsHelperarole - The given role.abase - The base to set (or null to clear).public boolean isAddingCollaborationAllowed(java.lang.Object context)
CollaborationsHelper
isAddingCollaborationAllowed in interface CollaborationsHelpercontext - the given context
public void removeBase(java.lang.Object handle,
java.lang.Object c)
CollaborationsHelper
removeBase in interface CollaborationsHelperhandle - is the classifier rolec - is the classifier
public void removeConstrainingElement(java.lang.Object handle,
java.lang.Object constraint)
CollaborationsHelper
removeConstrainingElement in interface CollaborationsHelperhandle - The collaboration to remove a constraint to.constraint - The constraint to remove.
public void removeMessage(java.lang.Object handle,
java.lang.Object message)
CollaborationsHelper
removeMessage in interface CollaborationsHelperhandle - The interaction or association role to remove the
message from.message - The message to remove.
public void removeMessage3(java.lang.Object handle,
java.lang.Object mess)
public void removeSuccessor(java.lang.Object handle,
java.lang.Object mess)
CollaborationsHelper
removeSuccessor in interface CollaborationsHelperhandle - the Message that needs to loose a successormess - the Message that is removed
public void removePredecessor(java.lang.Object handle,
java.lang.Object message)
CollaborationsHelper
removePredecessor in interface CollaborationsHelperhandle - the Message that needs to loose a predecessormessage - the Message that is removed
public void addConstrainingElement(java.lang.Object handle,
java.lang.Object constraint)
CollaborationsHelper
addConstrainingElement in interface CollaborationsHelperhandle - The collaboration to add a constraint to.constraint - The constraint to add.
public void addInstance(java.lang.Object classifierRole,
java.lang.Object instance)
CollaborationsHelper
addInstance in interface CollaborationsHelperclassifierRole - is the classifier roleinstance - is the instance to add
public void addMessage(java.lang.Object handle,
java.lang.Object elem)
CollaborationsHelper
addMessage in interface CollaborationsHelperhandle - The interaction or association role.elem - The message.
public void addSuccessor(java.lang.Object handle,
java.lang.Object mess)
CollaborationsHelper
addSuccessor in interface CollaborationsHelperhandle - predecessor Messagemess - Message to be added
public void addPredecessor(java.lang.Object handle,
java.lang.Object predecessor)
CollaborationsHelper
addPredecessor in interface CollaborationsHelperhandle - the messagepredecessor - is the predecessor
public void setAction(java.lang.Object handle,
java.lang.Object action)
CollaborationsHelper
setAction in interface CollaborationsHelperhandle - is the messageaction - is the action
public void setContext(java.lang.Object handle,
java.lang.Object col)
CollaborationsHelper
setContext in interface CollaborationsHelperhandle - The interaction.col - The collaboration to set as the context.
public void setSuccessors(java.lang.Object handle,
java.util.Collection messages)
CollaborationsHelper
setSuccessors in interface CollaborationsHelperhandle - Messagemessages - Collection of successor messages
public void setPredecessors(java.lang.Object handle,
java.util.Collection predecessors)
CollaborationsHelper
setPredecessors in interface CollaborationsHelperhandle - Messagepredecessors - Collection of Messages
public void setRepresentedClassifier(java.lang.Object handle,
java.lang.Object classifier)
CollaborationsHelper
setRepresentedClassifier in interface CollaborationsHelperhandle - the collaborationclassifier - is the classifier or null
public void setRepresentedOperation(java.lang.Object handle,
java.lang.Object operation)
CollaborationsHelper
setRepresentedOperation in interface CollaborationsHelperhandle - the collaborationoperation - is the operation or null
public void setSender(java.lang.Object handle,
java.lang.Object sender)
CollaborationsHelper
setSender in interface CollaborationsHelperhandle - model elementsender - the sender
public void removeInteraction(java.lang.Object collab,
java.lang.Object interaction)
CollaborationsHelper
removeInteraction in interface CollaborationsHelpercollab - 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 Cookbook |