|
|||||||||||
| 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.UseCasesFactoryImpl
Factory to create UML classes for the UML BehaviorialElements::UseCases package. TODO: Change visibility to package after reflection problem solved.
| Field Summary | |
private NSUMLModelImplementation |
nsmodel
The model implementation. |
| Constructor Summary | |
(package private) |
UseCasesFactoryImpl(NSUMLModelImplementation implementation)
Don't allow instantiation. |
| Method Summary | |
private ru.novosoft.uml.behavior.use_cases.MActor |
buildActor(ru.novosoft.uml.foundation.core.MNamespace ns,
Object model)
Builds an actor in the given namespace. |
Object |
buildActor(Object actor,
Object model)
Builds an actor in the same namespace of the given actor. |
Object |
buildExtend(Object abase,
Object anextension)
Build an extend relationship. |
Object |
buildExtend(Object abase,
Object anextension,
Object apoint)
Build an extend relationship. |
Object |
buildExtensionPoint(Object modelElement)
Builds an extension point for a use case. |
Object |
buildInclude(Object abase,
Object anaddition)
Build an include relationship. |
Object |
createActor()
Create an empty but initialized instance of a Actor. |
Object |
createExtend()
Create an empty but initialized instance of a Extend. |
Object |
createExtensionPoint()
Create an empty but initialized instance of a ExtensionPoint. |
Object |
createInclude()
Create an empty but initialized instance of a Include. |
Object |
createUseCase()
Create an empty but initialized instance of a UseCase. |
Object |
createUseCaseInstance()
Create an empty but initialized instance of a UseCaseInstance. |
(package private) void |
deleteActor(Object elem)
|
(package private) void |
deleteExtend(Object elem)
|
(package private) void |
deleteExtensionPoint(Object elem)
|
(package private) void |
deleteInclude(Object elem)
|
(package private) void |
deleteUseCase(Object elem)
|
(package private) void |
deleteUseCaseInstance(Object elem)
|
| 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 |
UseCasesFactoryImpl(NSUMLModelImplementation implementation)
implementation - To get other helpers and factories.| Method Detail |
public Object createExtend()
createExtend in interface org.argouml.model.UseCasesFactorypublic Object createExtensionPoint()
createExtensionPoint in interface org.argouml.model.UseCasesFactorypublic Object createActor()
createActor in interface org.argouml.model.UseCasesFactorypublic Object createInclude()
createInclude in interface org.argouml.model.UseCasesFactorypublic Object createUseCase()
createUseCase in interface org.argouml.model.UseCasesFactorypublic Object createUseCaseInstance()
createUseCaseInstance in interface org.argouml.model.UseCasesFactory
public Object buildExtend(Object abase,
Object anextension)
Set the namespace to the base (preferred) or else extension's namespace. We don't do any checking on base and extension. They should be different, but that is someone else's problem.
buildExtend in interface org.argouml.model.UseCasesFactoryabase - The base use case for the relationshipanextension - The extension use case for the relationship
null
if it can't be created.
public Object buildExtend(Object abase,
Object anextension,
Object apoint)
buildExtend in interface org.argouml.model.UseCasesFactoryabase - The base use case for the relationshipanextension - The extension use case for the relationshipapoint - The insertion point for the extension
null
if it can't be created.public Object buildExtensionPoint(Object modelElement)
buildExtensionPoint in interface org.argouml.model.UseCasesFactorymodelElement - The owning use case for the extension point.
IllegalArgumentException - if modelElement isn't a use-case.
public Object buildInclude(Object abase,
Object anaddition)
Set the namespace to the base (preferred) or else extension's namespace. We don't do any checking on base and extension. They should be different, but that is someone else's problem.
Note. There is a bug in NSUML that gets the base and addition associations back to front. We reverse the use of their accessors in the code to correct this.
buildInclude in interface org.argouml.model.UseCasesFactoryabase - The base use case for the relationshipanaddition - The extension use case for the relationship
null if
it can't be created.
private ru.novosoft.uml.behavior.use_cases.MActor buildActor(ru.novosoft.uml.foundation.core.MNamespace ns,
Object model)
ns - the given namespacemodel - TODO: What is this? Why is this argument needed?
public Object buildActor(Object actor,
Object model)
buildActor in interface org.argouml.model.UseCasesFactorymodel - The current model.actor - the given Actor
UseCasesFactory.buildActor(java.lang.Object,
java.lang.Object)void deleteActor(Object elem)
elem - the UML element to be deletedvoid deleteExtend(Object elem)
elem - the UML element to be deletedvoid deleteExtensionPoint(Object elem)
elem - the UML element to be deletedvoid deleteInclude(Object elem)
elem - the UML element to be deletedvoid deleteUseCase(Object elem)
elem - the UML element to be deletedvoid deleteUseCaseInstance(Object elem)
elem - the UML element to be deleted
|
|||||||||||
| 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 |