|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.model.uml.AbstractUmlModelFactory | +--org.argouml.model.uml.behavioralelements.collaborations.CollaborationsFactory
Factory to create UML classes for the UML BehaviorialElements::Collaborations package.
Field Summary | |
---|---|
private static CollaborationsFactory |
SINGLETON
Singleton instance. |
Fields inherited from class org.argouml.model.uml.AbstractUmlModelFactory |
---|
|
Constructor Summary | |
---|---|
private |
CollaborationsFactory()
Don't allow instantiation |
Method Summary | |
---|---|
MMessage |
buildActivator(MMessage owner,
MInteraction interaction)
Builds an activator for some message |
MAssociationEndRole |
buildAssociationEndRole(java.lang.Object atype)
Builds an associationendrole based on some classifierrole |
MAssociationRole |
buildAssociationRole(MClassifierRole from,
MAggregationKind agg1,
MClassifierRole to,
MAggregationKind agg2,
java.lang.Boolean unidirectional)
Builds a binary associationrole on basis of two classifierroles, navigation and aggregation |
java.lang.Object |
buildAssociationRole(java.lang.Object link)
Builds an associationrole based on a given link. |
MAssociationRole |
buildAssociationRole(java.lang.Object from,
java.lang.Object to)
Builds a binary associationrole on basis of two classifierroles |
java.lang.Object |
buildClassifierRole(java.lang.Object collaboration)
Creates a classifierrole and adds it to the given collaboration |
MCollaboration |
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. |
MInteraction |
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. |
private java.lang.Object |
buildMessageCollab(java.lang.Object acollab,
java.lang.Object arole)
|
private MMessage |
buildMessageInteraction(MInteraction inter,
MAssociationRole role)
Builds a message within some interaction related to some assocationrole. |
MAssociationEndRole |
createAssociationEndRole()
Create an empty but initialized instance of a UML AssociationEndRole. |
MAssociationRole |
createAssociationRole()
Create an empty but initialized instance of a UML AssociationRole. |
MClassifierRole |
createClassifierRole()
Create an empty but initialized instance of a UML ClassifierRole. |
MCollaboration |
createCollaboration()
Create an empty but initialized instance of a UML Collaboration. |
MInteraction |
createInteraction()
Create an empty but initialized instance of a UML Interaction. |
MMessage |
createMessage()
Create an empty but initialized instance of a UML Message. |
void |
deleteAssociationEndRole(MAssociationEndRole elem)
|
void |
deleteAssociationRole(MAssociationRole elem)
|
void |
deleteClassifierRole(MClassifierRole elem)
|
void |
deleteCollaboration(MCollaboration elem)
|
void |
deleteInteraction(MInteraction elem)
|
void |
deleteMessage(MMessage elem)
|
private MMessage |
findEnd(MMessage m)
Walks the tree of successors to m rooted until a leaf is found. |
static CollaborationsFactory |
getFactory()
Singleton instance access method. |
private MMessage |
lastMessage(java.util.Collection c,
MMessage m)
Finds the last message in the collection not equal to null and not equal to m. |
Methods inherited from class org.argouml.model.uml.AbstractUmlModelFactory |
---|
addListenersToModelElement, initialize, isGuiEnabled, setGuiEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static CollaborationsFactory SINGLETON
Constructor Detail |
private CollaborationsFactory()
Method Detail |
public static CollaborationsFactory getFactory()
public MAssociationEndRole createAssociationEndRole()
public MAssociationRole createAssociationRole()
public MClassifierRole createClassifierRole()
public MCollaboration createCollaboration()
public MInteraction createInteraction()
public MMessage createMessage()
public java.lang.Object buildClassifierRole(java.lang.Object collaboration)
collaboration
-
public MCollaboration buildCollaboration(java.lang.Object handle)
public java.lang.Object buildCollaboration(java.lang.Object namespace, java.lang.Object representedElement)
namespace
- representedElement
-
public MInteraction buildInteraction(java.lang.Object handle)
public MAssociationEndRole buildAssociationEndRole(java.lang.Object atype)
public MAssociationRole buildAssociationRole(java.lang.Object from, java.lang.Object to)
public MAssociationRole buildAssociationRole(MClassifierRole from, MAggregationKind agg1, MClassifierRole to, MAggregationKind agg2, java.lang.Boolean unidirectional)
public java.lang.Object buildAssociationRole(java.lang.Object link)
link
-
private MMessage buildMessageInteraction(MInteraction inter, MAssociationRole role)
private MMessage lastMessage(java.util.Collection c, MMessage m)
c
- A collection containing exclusively MMessages.m
- A MMessage.
private MMessage findEnd(MMessage m)
m
- A MMessage.
public java.lang.Object buildMessage(java.lang.Object acollab, java.lang.Object arole)
private java.lang.Object buildMessageCollab(java.lang.Object acollab, java.lang.Object arole)
public MMessage buildActivator(MMessage owner, MInteraction interaction)
public void deleteAssociationEndRole(MAssociationEndRole elem)
public void deleteAssociationRole(MAssociationRole elem)
public void deleteClassifierRole(MClassifierRole elem)
public void deleteCollaboration(MCollaboration elem)
public void deleteInteraction(MInteraction elem)
public void deleteMessage(MMessage elem)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |