org.argouml.model
Interface CollaborationsFactory

All Superinterfaces:
Factory

public interface CollaborationsFactory
extends Factory

The interface for the factory of Collaboration.


Method Summary
 java.lang.Object buildActivator(java.lang.Object owner, java.lang.Object interaction)
          Builds an activator for some message.
 java.lang.Object buildAssociationEndRole(java.lang.Object atype)
          Builds an associationendrole based on some classifierrole.
 java.lang.Object buildAssociationRole(java.lang.Object link)
          Builds an associationrole based on a given link.
 java.lang.Object buildAssociationRole(java.lang.Object from, java.lang.Object to)
          Builds a binary associationrole on basis of two classifierroles.
 java.lang.Object buildAssociationRole(java.lang.Object from, java.lang.Object agg1, java.lang.Object to, java.lang.Object agg2, boolean unidirectional)
          Builds a binary associationrole on basis of two classifierroles, navigation and aggregation.
 java.lang.Object buildAssociationRole(java.lang.Object from, java.lang.Object agg1, java.lang.Object to, java.lang.Object agg2, java.lang.Boolean unidirectional)
          Deprecated. for 0.27.3 by tfmorris. Use buildAssociationRole(Object, Object, Object, Object, boolean).
 java.lang.Object buildClassifierRole(java.lang.Object collaboration)
          Creates a classifierrole and adds it to the given collaboration.
 java.lang.Object buildCollaboration(java.lang.Object handle)
          Builds a default collaboration not attached to a classifier.
 java.lang.Object buildCollaboration(java.lang.Object namespace, java.lang.Object representedElement)
          Builds a collaboration that is owned by a certain namespace and represents the given represented element.
 java.lang.Object buildInteraction(java.lang.Object handle)
          Builds an interaction belonging to some collaboration.
 java.lang.Object buildMessage(java.lang.Object acollab, java.lang.Object arole)
          Builds a message within some collaboration or interaction.
 java.lang.Object createAssociationEndRole()
          Create an empty but initialized instance of a UML AssociationEndRole.
 java.lang.Object createAssociationRole()
          Create an empty but initialized instance of a UML AssociationRole.
 java.lang.Object createClassifierRole()
          Create an empty but initialized instance of a UML ClassifierRole.
 java.lang.Object createCollaboration()
          Create an empty but initialized instance of a UML Collaboration.
 java.lang.Object createCollaborationInstanceSet()
          Create an empty but initialized instance of a CollaborationInstanceSet.
 java.lang.Object createInteraction()
          Create an empty but initialized instance of a UML Interaction.
 java.lang.Object createInteractionInstanceSet()
          Create an empty but initialized instance of an InteractionInstanceSet.
 java.lang.Object createMessage()
          Create an empty but initialized instance of a UML Message.
 

Method Detail

createAssociationEndRole

java.lang.Object createAssociationEndRole()
Create an empty but initialized instance of a UML AssociationEndRole.

Returns:
an initialized UML AssociationEndRole instance.

createAssociationRole

java.lang.Object createAssociationRole()
Create an empty but initialized instance of a UML AssociationRole.

Returns:
an initialized UML AssociationRole instance.

createClassifierRole

java.lang.Object createClassifierRole()
Create an empty but initialized instance of a UML ClassifierRole.

Returns:
an initialized UML ClassifierRole instance.

createCollaboration

java.lang.Object createCollaboration()
Create an empty but initialized instance of a UML Collaboration.

Returns:
an initialized UML Collaboration instance.

createCollaborationInstanceSet

java.lang.Object createCollaborationInstanceSet()
Create an empty but initialized instance of a CollaborationInstanceSet.

Returns:
an initialized CollaborationInstanceSet instance.
Since:
UML 1.4

createInteraction

java.lang.Object createInteraction()
Create an empty but initialized instance of a UML Interaction.

Returns:
an initialized UML Interaction instance.

createInteractionInstanceSet

java.lang.Object createInteractionInstanceSet()
Create an empty but initialized instance of an InteractionInstanceSet.

Returns:
an initialized InteractionInstanceSet instance.
Since:
UML 1.4

createMessage

java.lang.Object createMessage()
Create an empty but initialized instance of a UML Message.

Returns:
an initialized UML Message instance.

buildClassifierRole

java.lang.Object buildClassifierRole(java.lang.Object collaboration)
Creates a classifierrole and adds it to the given collaboration.

Parameters:
collaboration - the given collaboration
Returns:
the created classifier role

buildCollaboration

java.lang.Object buildCollaboration(java.lang.Object handle)
Builds a default collaboration not attached to a classifier.

Parameters:
handle - the namespace for the collaboration
Returns:
the created collaboration

buildCollaboration

java.lang.Object buildCollaboration(java.lang.Object namespace,
                                    java.lang.Object representedElement)
Builds a collaboration that is owned by a certain namespace and represents the given represented element.

Parameters:
namespace - the namespace for the collaboration
representedElement - the represented element
Returns:
the created collaboration

buildInteraction

java.lang.Object buildInteraction(java.lang.Object handle)
Builds an interaction belonging to some collaboration.

Parameters:
handle - the collaboration that will be the context for the new interaction
Returns:
the newly build interaction

buildAssociationEndRole

java.lang.Object buildAssociationEndRole(java.lang.Object atype)
Builds an associationendrole based on some classifierrole.

Parameters:
atype - the classifierrole
Returns:
the associationendrole

buildAssociationRole

java.lang.Object buildAssociationRole(java.lang.Object from,
                                      java.lang.Object to)
Builds a binary associationrole on basis of two classifierroles.

Parameters:
from - the first classifierrole
to - the second classifierrole
Returns:
the newly build associationrole

buildAssociationRole

@Deprecated
java.lang.Object buildAssociationRole(java.lang.Object from,
                                                 java.lang.Object agg1,
                                                 java.lang.Object to,
                                                 java.lang.Object agg2,
                                                 java.lang.Boolean unidirectional)
Deprecated. for 0.27.3 by tfmorris. Use buildAssociationRole(Object, Object, Object, Object, boolean).

Builds a binary associationrole on basis of two classifierroles, navigation and aggregation.

Parameters:
from - the first classifierrole
agg1 - the first aggregationkind
to - the second classifierrole
agg2 - the second aggregationkind
unidirectional - true if unidirectional
Returns:
the newly build assoc. role

buildAssociationRole

java.lang.Object buildAssociationRole(java.lang.Object from,
                                      java.lang.Object agg1,
                                      java.lang.Object to,
                                      java.lang.Object agg2,
                                      boolean unidirectional)
Builds a binary associationrole on basis of two classifierroles, navigation and aggregation.

Parameters:
from - the first classifierrole
agg1 - the first aggregationkind
to - the second classifierrole
agg2 - the second aggregationkind
unidirectional - true if unidirectional
Returns:
the newly build assoc. role

buildAssociationRole

java.lang.Object buildAssociationRole(java.lang.Object link)
Builds an associationrole based on a given link. The link must have a source and a destination instance that both have a classifierrole as classifier. The classifierroles must have the same collaboration as owner. This collaboration will be the new owner of the associationrole.

Parameters:
link - a UML Link
Returns:
the newly created association role (an Object)

buildMessage

java.lang.Object buildMessage(java.lang.Object acollab,
                              java.lang.Object arole)
Builds a message within some collaboration or interaction.

Parameters:
acollab - a collaboration or interaction
arole - an associationrole
Returns:
the newly build message

buildActivator

java.lang.Object buildActivator(java.lang.Object owner,
                                java.lang.Object interaction)
Builds an activator for some message.

Parameters:
owner - the owner
interaction - the interaction
Returns:
the newly build message


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook