|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.model.uml.UseCasesHelperImpl
Helper class for UML BehavioralElements::UseCases Package. Current implementation is a placeholder.
Field Summary | |
private NSUMLModelImplementation |
nsmodel
The model implementation. |
Constructor Summary | |
(package private) |
UseCasesHelperImpl(NSUMLModelImplementation implementation)
Don't allow instantiation. |
Method Summary | |
void |
addExtend(Object elem,
Object extend)
Add an extend to a Use Case or Extension Point. |
void |
addExtensionPoint(Object handle,
Object extensionPoint)
Adds an extension point to some model element. |
void |
addInclude(Object usecase,
Object include)
Add an include to a Use Case. |
Collection |
getAllActors(Object ns)
Returns all actors in some namespace ns. |
Collection |
getAllUseCases(Object ns)
Returns all usecases in some namespace ns. |
Collection |
getExtendedUseCases(Object ausecase)
Returns all usecases this given usecase extends. |
Collection |
getExtendingUseCases(Object usecase)
|
Object |
getExtends(Object abase,
Object anextension)
Returns the extend relation between two usecases base and extension. |
Collection |
getExtensionPoints(Object useCase)
This method returns all extension points of a given use case. |
Collection |
getIncludedUseCases(Object ausecase)
Returns all usecases this usecase includes. |
Object |
getIncludes(Object abase,
Object aninclusion)
Returns the include relation between two usecases base and inclusion. |
Collection |
getSpecificationPath(Object ausecase)
Returns the specificationpath operation of some usecase. |
void |
removeExtend(Object elem,
Object extend)
Remove an extend to a Use Case or Extension Point. |
void |
removeExtensionPoint(Object elem,
Object ep)
This method removes an Extension Point from a Use Case or an Extend. |
void |
removeInclude(Object usecase,
Object include)
Remove an include from a Use Case. |
void |
setAddition(Object handle,
Object useCase)
Sets the addition to an include. |
void |
setBase(Object extend,
Object base)
Sets the base usecase of a given extend. |
void |
setCondition(Object handle,
Object booleanExpression)
Set the condition of an extend. |
void |
setExtension(Object handle,
Object ext)
Set the extension of a usecase. |
void |
setExtensionPoints(Object handle,
Collection extensionPoints)
Sets the extension points of some use cases. |
void |
setIncludes(Object handle,
Collection includes)
Set the collection of Include relationships for a usecase. |
void |
setLocation(Object handle,
String loc)
Sets a location of some extension point. |
void |
setUseCase(Object elem,
Object usecase)
Set a Use Case for an Extension Point. |
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 |
UseCasesHelperImpl(NSUMLModelImplementation implementation)
implementation
- To get other helpers and factories.Method Detail |
public Collection getExtensionPoints(Object useCase)
Here for completeness, but actually just a wrapper for the NSUML function.
getExtensionPoints
in interface org.argouml.model.UseCasesHelper
useCase
- The use case for which we want the extension points.
public Collection getAllUseCases(Object ns)
getAllUseCases
in interface org.argouml.model.UseCasesHelper
ns
- is the namespace
public Collection getAllActors(Object ns)
getAllActors
in interface org.argouml.model.UseCasesHelper
ns
- is the namespace
public Collection getExtendedUseCases(Object ausecase)
getExtendedUseCases
in interface org.argouml.model.UseCasesHelper
ausecase
- the given usecase
public Collection getExtendingUseCases(Object usecase)
getExtendingUseCases
in interface org.argouml.model.UseCasesHelper
usecase
- the given usecase
public Object getExtends(Object abase, Object anextension)
getExtends
in interface org.argouml.model.UseCasesHelper
abase
- the given base usecaseanextension
- the given extension usecase
public Collection getIncludedUseCases(Object ausecase)
getIncludedUseCases
in interface org.argouml.model.UseCasesHelper
ausecase
- the given usecase
public Object getIncludes(Object abase, Object aninclusion)
getIncludes
in interface org.argouml.model.UseCasesHelper
abase
- the given base usecaseaninclusion
- the given inclusion usecase
public Collection getSpecificationPath(Object ausecase)
getSpecificationPath
in interface org.argouml.model.UseCasesHelper
ausecase
- the given usecase
public void setBase(Object extend, Object base)
setBase
in interface org.argouml.model.UseCasesHelper
extend
- the given extendbase
- the base usecasepublic void removeExtend(Object elem, Object extend)
removeExtend
in interface org.argouml.model.UseCasesHelper
elem
- The Use Case or Extension Point.extend
- The Extend to add.public void removeExtensionPoint(Object elem, Object ep)
removeExtensionPoint
in interface org.argouml.model.UseCasesHelper
elem
- is The Use Case or Extend.ep
- is the extension pointpublic void removeInclude(Object usecase, Object include)
removeInclude
in interface org.argouml.model.UseCasesHelper
usecase
- The Use Case.include
- The Include.public void addExtend(Object elem, Object extend)
addExtend
in interface org.argouml.model.UseCasesHelper
elem
- The Use Case or Extension Point.extend
- The Extend to add.public void addExtensionPoint(Object handle, Object extensionPoint)
addExtensionPoint
in interface org.argouml.model.UseCasesHelper
handle
- is the model elementextensionPoint
- is the extension pointpublic void addInclude(Object usecase, Object include)
addInclude
in interface org.argouml.model.UseCasesHelper
usecase
- The Use Case.include
- The Include.public void setAddition(Object handle, Object useCase)
setAddition
in interface org.argouml.model.UseCasesHelper
handle
- IncludeuseCase
- UseCasepublic void setCondition(Object handle, Object booleanExpression)
setCondition
in interface org.argouml.model.UseCasesHelper
handle
- is the extendbooleanExpression
- is the conditionpublic void setExtension(Object handle, Object ext)
setExtension
in interface org.argouml.model.UseCasesHelper
handle
- Extendext
- UseCase or nullpublic void setExtensionPoints(Object handle, Collection extensionPoints)
setExtensionPoints
in interface org.argouml.model.UseCasesHelper
handle
- the use caseextensionPoints
- is the extension pointspublic void setIncludes(Object handle, Collection includes)
setIncludes
in interface org.argouml.model.UseCasesHelper
handle
- UseCaseincludes
- the collection of Include relationshipspublic void setLocation(Object handle, String loc)
setLocation
in interface org.argouml.model.UseCasesHelper
handle
- is the extension pointloc
- is the locationpublic void setUseCase(Object elem, Object usecase)
setUseCase
in interface org.argouml.model.UseCasesHelper
elem
- The Extension Point.usecase
- The Use Case.
|
|||||||||||
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 |