|
||||||||||||
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.usecases.UseCasesFactory
Factory to create UML classes for the UML BehaviorialElements::UseCases package.
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 | |
---|---|
MActor |
buildActor()
Builds an actor in the project's model namespace. |
MActor |
buildActor(MNamespace ns)
Builds an actor in the given namespace. |
MExtend |
buildExtend(java.lang.Object abase,
java.lang.Object anextension)
Build an extend relationship. |
MExtend |
buildExtend(java.lang.Object abase,
java.lang.Object anextension,
java.lang.Object apoint)
|
MExtensionPoint |
buildExtensionPoint(java.lang.Object modelElement)
Build an extension point for a use case. |
MInclude |
buildInclude(java.lang.Object abase,
java.lang.Object anaddition)
Build an include relationship. |
MActor |
createActor()
Create an empty but initialized instance of a Actor. |
MExtend |
createExtend()
Create an empty but initialized instance of a Extend. |
MExtensionPoint |
createExtensionPoint()
Create an empty but initialized instance of a ExtensionPoint. |
MInclude |
createInclude()
Create an empty but initialized instance of a Include. |
MUseCase |
createUseCase()
Create an empty but initialized instance of a UseCase. |
MUseCaseInstance |
createUseCaseInstance()
Create an empty but initialized instance of a UseCaseInstance |
void |
deleteActor(MActor elem)
|
void |
deleteExtend(MExtend elem)
|
void |
deleteExtensionPoint(MExtensionPoint elem)
|
void |
deleteInclude(MInclude elem)
|
void |
deleteUseCase(MUseCase elem)
|
void |
deleteUseCaseInstance(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 |
private static UseCasesFactory SINGLETON
Constructor Detail |
private UseCasesFactory()
Method Detail |
public static UseCasesFactory getFactory()
public MExtend createExtend()
public MExtensionPoint createExtensionPoint()
public MActor createActor()
public MInclude createInclude()
public MUseCase createUseCase()
public MUseCaseInstance createUseCaseInstance()
public MExtend buildExtend(java.lang.Object abase, java.lang.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.
abase
- The base use case for the relationshipanextension
- The extension use case for the relationship
null
if it can't be created.public MExtend buildExtend(java.lang.Object abase, java.lang.Object anextension, java.lang.Object apoint)
public MExtensionPoint buildExtensionPoint(java.lang.Object modelElement)
Set the namespace to that of the use case if possible.
modelElement
- The owning use case for the extension point. May be
null
.
null
if it
can't be created.public MInclude buildInclude(java.lang.Object abase, java.lang.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.
abase
- The base use case for the relationshipanaddition
- The extension use case for the relationship
null
if
it can't be created.public MActor buildActor()
public MActor buildActor(MNamespace ns)
ns
-
public void deleteActor(MActor elem)
public void deleteExtend(MExtend elem)
public void deleteExtensionPoint(MExtensionPoint elem)
public void deleteInclude(MInclude elem)
public void deleteUseCase(MUseCase elem)
public void deleteUseCaseInstance(MUseCaseInstance 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 |