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

java.lang.Object
  |
  +--org.argouml.model.uml.AbstractUmlModelFactory
        |
        +--org.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

Fields inherited from class org.argouml.model.uml.AbstractUmlModelFactory
logger
 
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(ru.novosoft.uml.behavior.use_cases.MUseCase base, ru.novosoft.uml.behavior.use_cases.MUseCase extension)
          Build an extend relationship. Set the namespace to the base (preferred) or else extension's namespace.
 ru.novosoft.uml.behavior.use_cases.MExtend buildExtend(ru.novosoft.uml.behavior.use_cases.MUseCase base, ru.novosoft.uml.behavior.use_cases.MUseCase extension, ru.novosoft.uml.behavior.use_cases.MExtensionPoint point)
           
 ru.novosoft.uml.behavior.use_cases.MExtensionPoint buildExtensionPoint(ru.novosoft.uml.behavior.use_cases.MUseCase useCase)
          Build an extension point for a use case. Set the namespace to that of the use case if possible.
 ru.novosoft.uml.behavior.use_cases.MInclude buildInclude(ru.novosoft.uml.behavior.use_cases.MUseCase base, ru.novosoft.uml.behavior.use_cases.MUseCase addition)
          Build an include relationship. Set the namespace to the base (preferred) or else extension's namespace.
 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
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(ru.novosoft.uml.behavior.use_cases.MUseCase base,
                                                              ru.novosoft.uml.behavior.use_cases.MUseCase extension)

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:
base - The base use case for the relationship
extension - 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(ru.novosoft.uml.behavior.use_cases.MUseCase base,
                                                              ru.novosoft.uml.behavior.use_cases.MUseCase extension,
                                                              ru.novosoft.uml.behavior.use_cases.MExtensionPoint point)

buildExtensionPoint

public ru.novosoft.uml.behavior.use_cases.MExtensionPoint buildExtensionPoint(ru.novosoft.uml.behavior.use_cases.MUseCase useCase)

Build an extension point for a use case.

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

Parameters:
useCase - 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(ru.novosoft.uml.behavior.use_cases.MUseCase base,
                                                                ru.novosoft.uml.behavior.use_cases.MUseCase addition)

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:
base - The base use case for the relationship
extension - 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 (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook