org.argouml.model.uml.behavioralelements.usecases
Class UseCasesFactory

java.lang.Object
  extended byorg.argouml.model.uml.AbstractUmlModelFactory
      extended byorg.argouml.model.uml.behavioralelements.usecases.UseCasesFactory

public class UseCasesFactory
extends AbstractUmlModelFactory

Factory to create UML classes for the UML BehaviorialElements::UseCases package.

Since:
ARGO0.11.2

Field Summary
private static UseCasesFactory SINGLETON
          Singleton instance.
 
Fields inherited from class org.argouml.model.uml.AbstractUmlModelFactory
 
Constructor Summary
private UseCasesFactory()
          Don't allow instantiation
 
Method Summary
 ru.novosoft.uml.behavior.use_cases.MActor buildActor()
          Builds an actor in the project's model namespace.
 ru.novosoft.uml.behavior.use_cases.MActor buildActor(ru.novosoft.uml.foundation.core.MNamespace ns)
          Builds an actor in the given namespace.
 ru.novosoft.uml.behavior.use_cases.MActor buildActor(java.lang.Object actor)
          Builds an actor in the same namespace of the given actor.
 ru.novosoft.uml.behavior.use_cases.MExtend buildExtend(java.lang.Object abase, java.lang.Object anextension)
          Build an extend relationship.
 ru.novosoft.uml.behavior.use_cases.MExtend buildExtend(java.lang.Object abase, java.lang.Object anextension, java.lang.Object apoint)
           
 ru.novosoft.uml.behavior.use_cases.MExtensionPoint buildExtensionPoint(java.lang.Object modelElement)
          Build an extension point for a use case.
 ru.novosoft.uml.behavior.use_cases.MInclude buildInclude(java.lang.Object abase, java.lang.Object anaddition)
          Build an include relationship.
 ru.novosoft.uml.behavior.use_cases.MActor createActor()
          Create an empty but initialized instance of a Actor.
 ru.novosoft.uml.behavior.use_cases.MExtend createExtend()
          Create an empty but initialized instance of a Extend.
 ru.novosoft.uml.behavior.use_cases.MExtensionPoint createExtensionPoint()
          Create an empty but initialized instance of a ExtensionPoint.
 ru.novosoft.uml.behavior.use_cases.MInclude createInclude()
          Create an empty but initialized instance of a Include.
 ru.novosoft.uml.behavior.use_cases.MUseCase createUseCase()
          Create an empty but initialized instance of a UseCase.
 ru.novosoft.uml.behavior.use_cases.MUseCaseInstance createUseCaseInstance()
          Create an empty but initialized instance of a UseCaseInstance
 void deleteActor(ru.novosoft.uml.behavior.use_cases.MActor elem)
           
 void deleteExtend(ru.novosoft.uml.behavior.use_cases.MExtend elem)
           
 void deleteExtensionPoint(ru.novosoft.uml.behavior.use_cases.MExtensionPoint elem)
           
 void deleteInclude(ru.novosoft.uml.behavior.use_cases.MInclude elem)
           
 void deleteUseCase(ru.novosoft.uml.behavior.use_cases.MUseCase elem)
           
 void deleteUseCaseInstance(ru.novosoft.uml.behavior.use_cases.MUseCaseInstance elem)
           
static UseCasesFactory getFactory()
          Singleton instance access method.
 
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

SINGLETON

private static UseCasesFactory SINGLETON
Singleton instance.

Constructor Detail

UseCasesFactory

private UseCasesFactory()
Don't allow instantiation

Method Detail

getFactory

public static UseCasesFactory getFactory()
Singleton instance access method.


createExtend

public ru.novosoft.uml.behavior.use_cases.MExtend createExtend()
Create an empty but initialized instance of a Extend.

Returns:
an initialized Extend instance.

createExtensionPoint

public ru.novosoft.uml.behavior.use_cases.MExtensionPoint createExtensionPoint()
Create an empty but initialized instance of a ExtensionPoint.

Returns:
an initialized ExtensionPoint instance.

createActor

public ru.novosoft.uml.behavior.use_cases.MActor createActor()
Create an empty but initialized instance of a Actor.

Returns:
an initialized Actor instance.

createInclude

public ru.novosoft.uml.behavior.use_cases.MInclude createInclude()
Create an empty but initialized instance of a Include.

Returns:
an initialized Include instance.

createUseCase

public ru.novosoft.uml.behavior.use_cases.MUseCase createUseCase()
Create an empty but initialized instance of a UseCase.

Returns:
an initialized UseCase instance.

createUseCaseInstance

public ru.novosoft.uml.behavior.use_cases.MUseCaseInstance createUseCaseInstance()
Create an empty but initialized instance of a UseCaseInstance

Returns:
an initialized UseCaseInstance instance.

buildExtend

public ru.novosoft.uml.behavior.use_cases.MExtend buildExtend(java.lang.Object abase,
                                                              java.lang.Object anextension)
Build an extend relationship.

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.

Parameters:
abase - The base use case for the relationship
anextension - The extension use case for the relationship
Returns:
The new extend relationship or null if it can't be created.

buildExtend

public ru.novosoft.uml.behavior.use_cases.MExtend buildExtend(java.lang.Object abase,
                                                              java.lang.Object anextension,
                                                              java.lang.Object apoint)

buildExtensionPoint

public ru.novosoft.uml.behavior.use_cases.MExtensionPoint buildExtensionPoint(java.lang.Object modelElement)
Build an extension point for a use case.

Set the namespace to that of the use case if possible.

Parameters:
modelElement - The owning use case for the extension point. May be null.
Returns:
The new extension point or null if it can't be created.

buildInclude

public ru.novosoft.uml.behavior.use_cases.MInclude buildInclude(java.lang.Object abase,
                                                                java.lang.Object anaddition)
Build an include relationship.

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.

Parameters:
abase - The base use case for the relationship
anaddition - The extension use case for the relationship
Returns:
The new include relationship or null if it can't be created.

buildActor

public ru.novosoft.uml.behavior.use_cases.MActor buildActor()
Builds an actor in the project's model namespace.

Returns:
MActor

buildActor

public ru.novosoft.uml.behavior.use_cases.MActor buildActor(ru.novosoft.uml.foundation.core.MNamespace ns)
Builds an actor in the given namespace.

Parameters:
ns -
Returns:
MActor

buildActor

public ru.novosoft.uml.behavior.use_cases.MActor buildActor(java.lang.Object actor)
Builds an actor in the same namespace of the given actor. If object is no actor nothing is build. Did not give MActor as an argument but object to seperate argouml better from NSUML.

Parameters:
actor -
Returns:
MActor

deleteActor

public void deleteActor(ru.novosoft.uml.behavior.use_cases.MActor elem)

deleteExtend

public void deleteExtend(ru.novosoft.uml.behavior.use_cases.MExtend elem)

deleteExtensionPoint

public void deleteExtensionPoint(ru.novosoft.uml.behavior.use_cases.MExtensionPoint elem)

deleteInclude

public void deleteInclude(ru.novosoft.uml.behavior.use_cases.MInclude elem)

deleteUseCase

public void deleteUseCase(ru.novosoft.uml.behavior.use_cases.MUseCase elem)

deleteUseCaseInstance

public void deleteUseCaseInstance(ru.novosoft.uml.behavior.use_cases.MUseCaseInstance elem)


ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook