|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.model.uml.AbstractUmlModelFactory
org.argouml.model.uml.CollaborationsFactoryImpl
Factory to create UML classes for the UML BehaviorialElements::Collaborations package. TODO: Change visibility to package after reflection problem solved.
Field Summary | |
private NSUMLModelImplementation |
nsmodel
The model implementation. |
Constructor Summary | |
(package private) |
CollaborationsFactoryImpl(NSUMLModelImplementation implementation)
Don't allow instantiation. |
Method Summary | |
Object |
buildActivator(Object owner,
Object interaction)
Builds an activator for some message. |
Object |
buildAssociationEndRole(Object atype)
Builds an associationendrole based on some classifierrole. |
Object |
buildAssociationRole(Object link)
Builds an associationrole based on a given link. |
Object |
buildAssociationRole(Object from,
Object to)
Builds a binary associationrole on basis of two classifierroles. |
Object |
buildAssociationRole(Object from,
Object agg1,
Object to,
Object agg2,
Boolean unidirectional)
Builds a binary associationrole on basis of two classifierroles, navigation and aggregation. |
Object |
buildClassifierRole(Object collaboration)
Creates a classifierrole and adds it to the given collaboration. |
Object |
buildCollaboration(Object handle)
Builds a default collaboration not attached to a classifier. |
Object |
buildCollaboration(Object namespace,
Object representedElement)
Builds a collaboration that is owned by a certain namespace and represents the given represented element. |
Object |
buildInteraction(Object handle)
Builds an interaction belonging to some collaboration. |
Object |
buildMessage(Object acollab,
Object arole)
Builds a message within some collaboration or interaction. |
private Object |
buildMessageCollab(Object acollab,
Object arole)
|
private ru.novosoft.uml.behavior.collaborations.MMessage |
buildMessageInteraction(ru.novosoft.uml.behavior.collaborations.MInteraction inter,
ru.novosoft.uml.behavior.collaborations.MAssociationRole role)
Builds a message within some interaction related to some assocationrole. |
Object |
createAssociationEndRole()
Create an empty but initialized instance of a UML AssociationEndRole. |
Object |
createAssociationRole()
Create an empty but initialized instance of a UML AssociationRole. |
Object |
createClassifierRole()
Create an empty but initialized instance of a UML ClassifierRole. |
Object |
createCollaboration()
Create an empty but initialized instance of a UML Collaboration. |
Object |
createInteraction()
Create an empty but initialized instance of a UML Interaction. |
Object |
createMessage()
Create an empty but initialized instance of a UML Message. |
(package private) void |
deleteAssociationEndRole(Object elem)
|
(package private) void |
deleteAssociationRole(Object elem)
|
(package private) void |
deleteClassifierRole(Object elem)
|
(package private) void |
deleteCollaboration(Object elem)
|
(package private) void |
deleteInteraction(Object elem)
|
(package private) void |
deleteMessage(Object elem)
|
private ru.novosoft.uml.behavior.collaborations.MMessage |
findEnd(ru.novosoft.uml.behavior.collaborations.MMessage m)
Walks the tree of successors to m rooted until a leaf is found. |
private ru.novosoft.uml.behavior.collaborations.MMessage |
lastMessage(Collection c,
ru.novosoft.uml.behavior.collaborations.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private NSUMLModelImplementation nsmodel
Constructor Detail |
CollaborationsFactoryImpl(NSUMLModelImplementation implementation)
implementation
- To get other helpers and factories.Method Detail |
public Object createAssociationEndRole()
createAssociationEndRole
in interface org.argouml.model.CollaborationsFactory
public Object createAssociationRole()
createAssociationRole
in interface org.argouml.model.CollaborationsFactory
public Object createClassifierRole()
createClassifierRole
in interface org.argouml.model.CollaborationsFactory
public Object createCollaboration()
createCollaboration
in interface org.argouml.model.CollaborationsFactory
public Object createInteraction()
createInteraction
in interface org.argouml.model.CollaborationsFactory
public Object createMessage()
createMessage
in interface org.argouml.model.CollaborationsFactory
public Object buildClassifierRole(Object collaboration)
buildClassifierRole
in interface org.argouml.model.CollaborationsFactory
collaboration
- the given collaboration
public Object buildCollaboration(Object handle)
buildCollaboration
in interface org.argouml.model.CollaborationsFactory
handle
- the namespace for the collaboration
public Object buildCollaboration(Object namespace, Object representedElement)
buildCollaboration
in interface org.argouml.model.CollaborationsFactory
namespace
- the namespace for the collaborationrepresentedElement
- the represented element
public Object buildInteraction(Object handle)
buildInteraction
in interface org.argouml.model.CollaborationsFactory
handle
- the collaboration that will be the context
for the new interaction
public Object buildAssociationEndRole(Object atype)
buildAssociationEndRole
in interface org.argouml.model.CollaborationsFactory
atype
- the classifierrole
public Object buildAssociationRole(Object from, Object to)
buildAssociationRole
in interface org.argouml.model.CollaborationsFactory
from
- the first classifierroleto
- the second classifierrole
public Object buildAssociationRole(Object from, Object agg1, Object to, Object agg2, Boolean unidirectional)
buildAssociationRole
in interface org.argouml.model.CollaborationsFactory
from
- the first classifierroleagg1
- the first aggregationkindto
- the second classifierroleagg2
- the second aggregationkindunidirectional
- true if unidirectional
public Object buildAssociationRole(Object link)
buildAssociationRole
in interface org.argouml.model.CollaborationsFactory
link
- a UML Link
private ru.novosoft.uml.behavior.collaborations.MMessage buildMessageInteraction(ru.novosoft.uml.behavior.collaborations.MInteraction inter, ru.novosoft.uml.behavior.collaborations.MAssociationRole role)
inter
- The Interaction.role
- The Association Role.
private ru.novosoft.uml.behavior.collaborations.MMessage lastMessage(Collection c, ru.novosoft.uml.behavior.collaborations.MMessage m)
c
- A collection containing exclusively MMessages.m
- A MMessage.
private ru.novosoft.uml.behavior.collaborations.MMessage findEnd(ru.novosoft.uml.behavior.collaborations.MMessage m)
m
- A MMessage.
public Object buildMessage(Object acollab, Object arole)
buildMessage
in interface org.argouml.model.CollaborationsFactory
acollab
- a collaboration or interactionarole
- an associationrole
private Object buildMessageCollab(Object acollab, Object arole)
public Object buildActivator(Object owner, Object interaction)
buildActivator
in interface org.argouml.model.CollaborationsFactory
owner
- the ownerinteraction
- the interaction
void deleteAssociationEndRole(Object elem)
elem
- the associationendrolevoid deleteAssociationRole(Object elem)
elem
- the associationrolevoid deleteClassifierRole(Object elem)
elem
- the UML element to be deletedvoid deleteCollaboration(Object elem)
elem
- the UML element to be deletevoid deleteInteraction(Object elem)
elem
- the UML element to be deletevoid deleteMessage(Object elem)
elem
- the UML element to be delete
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |