org.argouml.model
Class AbstractUseCasesHelperDecorator

java.lang.Object
  extended byorg.argouml.model.AbstractUseCasesHelperDecorator
All Implemented Interfaces:
UseCasesHelper
Direct Known Subclasses:
UndoUseCasesHelperDecorator

public abstract class AbstractUseCasesHelperDecorator
extends Object
implements UseCasesHelper

An abstract Decorator for the UseCasesHelper.


Method Summary
 void addExtend(Object elem, Object extend)
          Add an extend to a Use Case or Extension Point.
 void addExtensionPoint(Object handle, int position, Object extensionPoint)
          Adds an extension point to some Extend.
 void addExtensionPoint(Object handle, Object extensionPoint)
          Adds an extension point to some Use Case or Extend.
 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.
protected  UseCasesHelper getComponent()
          The component we are decorating.
 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
 

Method Detail

getComponent

protected UseCasesHelper getComponent()
The component we are decorating.

Returns:
Returns the component.

getExtensionPoints

public Collection getExtensionPoints(Object useCase)
Description copied from interface: UseCasesHelper
This method returns all extension points of a given use case.

Specified by:
getExtensionPoints in interface UseCasesHelper
Parameters:
useCase - The use case for which we want the extension points.
Returns:
A collection of the extension points.

getAllUseCases

public Collection getAllUseCases(Object ns)
Description copied from interface: UseCasesHelper
Returns all usecases in some namespace ns.

Specified by:
getAllUseCases in interface UseCasesHelper
Parameters:
ns - is the namespace
Returns:
Collection

getAllActors

public Collection getAllActors(Object ns)
Description copied from interface: UseCasesHelper
Returns all actors in some namespace ns.

Specified by:
getAllActors in interface UseCasesHelper
Parameters:
ns - is the namespace
Returns:
Collection

getExtendedUseCases

public Collection getExtendedUseCases(Object ausecase)
Description copied from interface: UseCasesHelper
Returns all usecases this given usecase extends.

Specified by:
getExtendedUseCases in interface UseCasesHelper
Parameters:
ausecase - the given usecase
Returns:
Collection all usecases this given usecase extends

getExtendingUseCases

public Collection getExtendingUseCases(Object usecase)
Specified by:
getExtendingUseCases in interface UseCasesHelper
Parameters:
usecase - the given usecase
Returns:
Collection all usecases that extend the given usecase

getExtends

public Object getExtends(Object abase,
                         Object anextension)
Description copied from interface: UseCasesHelper
Returns the extend relation between two usecases base and extension. If there is none null is returned.

Specified by:
getExtends in interface UseCasesHelper
Parameters:
abase - the given base usecase
anextension - the given extension usecase
Returns:
MExtend the extend relation

getIncludedUseCases

public Collection getIncludedUseCases(Object ausecase)
Description copied from interface: UseCasesHelper
Returns all usecases this usecase includes.

Specified by:
getIncludedUseCases in interface UseCasesHelper
Parameters:
ausecase - the given usecase
Returns:
Collection all usecases the given usecase includes

getIncludes

public Object getIncludes(Object abase,
                          Object aninclusion)
Description copied from interface: UseCasesHelper
Returns the include relation between two usecases base and inclusion. If there is none null is returned.

Specified by:
getIncludes in interface UseCasesHelper
Parameters:
abase - the given base usecase
aninclusion - the given inclusion usecase
Returns:
The include relation.

getSpecificationPath

public Collection getSpecificationPath(Object ausecase)
Description copied from interface: UseCasesHelper
Returns the specificationpath operation of some usecase. See section 2.11.3.5 of the UML 1.3 spec for a definition.

Specified by:
getSpecificationPath in interface UseCasesHelper
Parameters:
ausecase - the given usecase
Returns:
Collection the specificationpath operation of the given usecase

setBase

public void setBase(Object extend,
                    Object base)
Description copied from interface: UseCasesHelper
Sets the base usecase of a given extend. Updates the extensionpoints of the extend too.

Specified by:
setBase in interface UseCasesHelper
Parameters:
extend - the given extend
base - the base usecase

removeExtend

public void removeExtend(Object elem,
                         Object extend)
Description copied from interface: UseCasesHelper
Remove an extend to a Use Case or Extension Point.

Specified by:
removeExtend in interface UseCasesHelper
Parameters:
elem - The Use Case or Extension Point.
extend - The Extend to add.

removeExtensionPoint

public void removeExtensionPoint(Object elem,
                                 Object ep)
Description copied from interface: UseCasesHelper
This method removes an Extension Point from a Use Case or an Extend.

Specified by:
removeExtensionPoint in interface UseCasesHelper
Parameters:
elem - is The Use Case or Extend.
ep - is the extension point

removeInclude

public void removeInclude(Object usecase,
                          Object include)
Description copied from interface: UseCasesHelper
Remove an include from a Use Case.

Specified by:
removeInclude in interface UseCasesHelper
Parameters:
usecase - The Use Case.
include - The Include.

addExtend

public void addExtend(Object elem,
                      Object extend)
Description copied from interface: UseCasesHelper
Add an extend to a Use Case or Extension Point.

Specified by:
addExtend in interface UseCasesHelper
Parameters:
elem - The Use Case or Extension Point.
extend - The Extend to add.

addExtensionPoint

public void addExtensionPoint(Object handle,
                              Object extensionPoint)
Description copied from interface: UseCasesHelper
Adds an extension point to some Use Case or Extend.

Specified by:
addExtensionPoint in interface UseCasesHelper
Parameters:
handle - is the Use Case or Extend
extensionPoint - is the Extension Point

addExtensionPoint

public void addExtensionPoint(Object handle,
                              int position,
                              Object extensionPoint)
Description copied from interface: UseCasesHelper
Adds an extension point to some Extend.

Specified by:
addExtensionPoint in interface UseCasesHelper
Parameters:
handle - is the Extend
position - the 0-based position at which to insert the Extension Point
extensionPoint - is the Extension Point

addInclude

public void addInclude(Object usecase,
                       Object include)
Description copied from interface: UseCasesHelper
Add an include to a Use Case.

Specified by:
addInclude in interface UseCasesHelper
Parameters:
usecase - The Use Case.
include - The Include.

setAddition

public void setAddition(Object handle,
                        Object useCase)
Description copied from interface: UseCasesHelper
Sets the addition to an include.

Specified by:
setAddition in interface UseCasesHelper
Parameters:
handle - Include
useCase - UseCase

setCondition

public void setCondition(Object handle,
                         Object booleanExpression)
Description copied from interface: UseCasesHelper
Set the condition of an extend.

Specified by:
setCondition in interface UseCasesHelper
Parameters:
handle - is the extend
booleanExpression - is the condition

setExtension

public void setExtension(Object handle,
                         Object ext)
Description copied from interface: UseCasesHelper
Set the extension of a usecase.

Specified by:
setExtension in interface UseCasesHelper
Parameters:
handle - Extend
ext - UseCase or null

setExtensionPoints

public void setExtensionPoints(Object handle,
                               Collection extensionPoints)
Description copied from interface: UseCasesHelper
Sets the extension points of some use cases.

Specified by:
setExtensionPoints in interface UseCasesHelper
Parameters:
handle - the use case
extensionPoints - is the extension points

setIncludes

public void setIncludes(Object handle,
                        Collection includes)
Description copied from interface: UseCasesHelper
Set the collection of Include relationships for a usecase.

Specified by:
setIncludes in interface UseCasesHelper
Parameters:
handle - UseCase
includes - the collection of Include relationships

setLocation

public void setLocation(Object handle,
                        String loc)
Description copied from interface: UseCasesHelper
Sets a location of some extension point.

Specified by:
setLocation in interface UseCasesHelper
Parameters:
handle - is the extension point
loc - is the location

setUseCase

public void setUseCase(Object elem,
                       Object usecase)
Description copied from interface: UseCasesHelper
Set a Use Case for an Extension Point.

Specified by:
setUseCase in interface UseCasesHelper
Parameters:
elem - The Extension Point.
usecase - The Use Case.


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook