org.eclipse.gmt.modisco.omg.kdm.action.util
Class ActionSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.modisco.omg.kdm.action.util.ActionSwitch<T>

public class ActionSwitch<T>
extends java.lang.Object

The Switch for the model's inheritance hierarchy. It supports the call doSwitch(object) to invoke the caseXXX method for each class of the model, starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is returned, which is the result of the switch.

See Also:
ActionPackage
Generated:

Constructor Summary
ActionSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAbstractActionRelationship(AbstractActionRelationship object)
          Returns the result of interpreting the object as an instance of 'Abstract Action Relationship'.
 T caseAbstractCodeElement(AbstractCodeElement object)
          Returns the result of interpreting the object as an instance of 'Abstract Code Element'.
 T caseActionElement(ActionElement object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseActionRelationship(ActionRelationship object)
          Returns the result of interpreting the object as an instance of 'Relationship'.
 T caseAddresses(Addresses object)
          Returns the result of interpreting the object as an instance of 'Addresses'.
 T caseBlockUnit(BlockUnit object)
          Returns the result of interpreting the object as an instance of 'Block Unit'.
 T caseCalls(Calls object)
          Returns the result of interpreting the object as an instance of 'Calls'.
 T caseCatchUnit(CatchUnit object)
          Returns the result of interpreting the object as an instance of 'Catch Unit'.
 T caseCompliesTo(CompliesTo object)
          Returns the result of interpreting the object as an instance of 'Complies To'.
 T caseControlFlow(ControlFlow object)
          Returns the result of interpreting the object as an instance of 'Control Flow'.
 T caseCreates(Creates object)
          Returns the result of interpreting the object as an instance of 'Creates'.
 T caseDispatches(Dispatches object)
          Returns the result of interpreting the object as an instance of 'Dispatches'.
 T caseElement(Element object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseEntryFlow(EntryFlow object)
          Returns the result of interpreting the object as an instance of 'Entry Flow'.
 T caseExceptionFlow(ExceptionFlow object)
          Returns the result of interpreting the object as an instance of 'Exception Flow'.
 T caseExceptionUnit(ExceptionUnit object)
          Returns the result of interpreting the object as an instance of 'Exception Unit'.
 T caseExitFlow(ExitFlow object)
          Returns the result of interpreting the object as an instance of 'Exit Flow'.
 T caseFalseFlow(FalseFlow object)
          Returns the result of interpreting the object as an instance of 'False Flow'.
 T caseFinallyUnit(FinallyUnit object)
          Returns the result of interpreting the object as an instance of 'Finally Unit'.
 T caseFlow(Flow object)
          Returns the result of interpreting the object as an instance of 'Flow'.
 T caseGuardedFlow(GuardedFlow object)
          Returns the result of interpreting the object as an instance of 'Guarded Flow'.
 T caseKDMEntity(KDMEntity object)
          Returns the result of interpreting the object as an instance of 'KDM Entity'.
 T caseKDMRelationship(KDMRelationship object)
          Returns the result of interpreting the object as an instance of 'KDM Relationship'.
 T caseModelElement(ModelElement object)
          Returns the result of interpreting the object as an instance of 'Model Element'.
 T caseReads(Reads object)
          Returns the result of interpreting the object as an instance of 'Reads'.
 T caseThrows(Throws object)
          Returns the result of interpreting the object as an instance of 'Throws'.
 T caseTrueFlow(TrueFlow object)
          Returns the result of interpreting the object as an instance of 'True Flow'.
 T caseTryUnit(TryUnit object)
          Returns the result of interpreting the object as an instance of 'Try Unit'.
 T caseUsesType(UsesType object)
          Returns the result of interpreting the object as an instance of 'Uses Type'.
 T caseWrites(Writes object)
          Returns the result of interpreting the object as an instance of 'Writes'.
 T defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 T doSwitch(EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionSwitch

public ActionSwitch()
Creates an instance of the switch.

Generated:
Method Detail

doSwitch

public T doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.
Generated:

caseActionElement

public T caseActionElement(ActionElement object)
Returns the result of interpreting the object as an instance of 'Element'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Element'.
See Also:
doSwitch(EObject)
Generated:

caseAbstractActionRelationship

public T caseAbstractActionRelationship(AbstractActionRelationship object)
Returns the result of interpreting the object as an instance of 'Abstract Action Relationship'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Abstract Action Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseControlFlow

public T caseControlFlow(ControlFlow object)
Returns the result of interpreting the object as an instance of 'Control Flow'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Control Flow'.
See Also:
doSwitch(EObject)
Generated:

caseCalls

public T caseCalls(Calls object)
Returns the result of interpreting the object as an instance of 'Calls'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Calls'.
See Also:
doSwitch(EObject)
Generated:

caseCreates

public T caseCreates(Creates object)
Returns the result of interpreting the object as an instance of 'Creates'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Creates'.
See Also:
doSwitch(EObject)
Generated:

caseReads

public T caseReads(Reads object)
Returns the result of interpreting the object as an instance of 'Reads'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Reads'.
See Also:
doSwitch(EObject)
Generated:

caseWrites

public T caseWrites(Writes object)
Returns the result of interpreting the object as an instance of 'Writes'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Writes'.
See Also:
doSwitch(EObject)
Generated:

caseCompliesTo

public T caseCompliesTo(CompliesTo object)
Returns the result of interpreting the object as an instance of 'Complies To'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Complies To'.
See Also:
doSwitch(EObject)
Generated:

caseFlow

public T caseFlow(Flow object)
Returns the result of interpreting the object as an instance of 'Flow'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Flow'.
See Also:
doSwitch(EObject)
Generated:

caseTrueFlow

public T caseTrueFlow(TrueFlow object)
Returns the result of interpreting the object as an instance of 'True Flow'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'True Flow'.
See Also:
doSwitch(EObject)
Generated:

caseFalseFlow

public T caseFalseFlow(FalseFlow object)
Returns the result of interpreting the object as an instance of 'False Flow'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'False Flow'.
See Also:
doSwitch(EObject)
Generated:

caseGuardedFlow

public T caseGuardedFlow(GuardedFlow object)
Returns the result of interpreting the object as an instance of 'Guarded Flow'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Guarded Flow'.
See Also:
doSwitch(EObject)
Generated:

caseUsesType

public T caseUsesType(UsesType object)
Returns the result of interpreting the object as an instance of 'Uses Type'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Uses Type'.
See Also:
doSwitch(EObject)
Generated:

caseAddresses

public T caseAddresses(Addresses object)
Returns the result of interpreting the object as an instance of 'Addresses'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Addresses'.
See Also:
doSwitch(EObject)
Generated:

caseActionRelationship

public T caseActionRelationship(ActionRelationship object)
Returns the result of interpreting the object as an instance of 'Relationship'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseThrows

public T caseThrows(Throws object)
Returns the result of interpreting the object as an instance of 'Throws'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Throws'.
See Also:
doSwitch(EObject)
Generated:

caseDispatches

public T caseDispatches(Dispatches object)
Returns the result of interpreting the object as an instance of 'Dispatches'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Dispatches'.
See Also:
doSwitch(EObject)
Generated:

caseEntryFlow

public T caseEntryFlow(EntryFlow object)
Returns the result of interpreting the object as an instance of 'Entry Flow'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Entry Flow'.
See Also:
doSwitch(EObject)
Generated:

caseBlockUnit

public T caseBlockUnit(BlockUnit object)
Returns the result of interpreting the object as an instance of 'Block Unit'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Block Unit'.
See Also:
doSwitch(EObject)
Generated:

caseExceptionUnit

public T caseExceptionUnit(ExceptionUnit object)
Returns the result of interpreting the object as an instance of 'Exception Unit'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Exception Unit'.
See Also:
doSwitch(EObject)
Generated:

caseTryUnit

public T caseTryUnit(TryUnit object)
Returns the result of interpreting the object as an instance of 'Try Unit'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Try Unit'.
See Also:
doSwitch(EObject)
Generated:

caseFinallyUnit

public T caseFinallyUnit(FinallyUnit object)
Returns the result of interpreting the object as an instance of 'Finally Unit'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Finally Unit'.
See Also:
doSwitch(EObject)
Generated:

caseCatchUnit

public T caseCatchUnit(CatchUnit object)
Returns the result of interpreting the object as an instance of 'Catch Unit'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Catch Unit'.
See Also:
doSwitch(EObject)
Generated:

caseExitFlow

public T caseExitFlow(ExitFlow object)
Returns the result of interpreting the object as an instance of 'Exit Flow'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Exit Flow'.
See Also:
doSwitch(EObject)
Generated:

caseExceptionFlow

public T caseExceptionFlow(ExceptionFlow object)
Returns the result of interpreting the object as an instance of 'Exception Flow'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Exception Flow'.
See Also:
doSwitch(EObject)
Generated:

caseElement

public T caseElement(Element object)
Returns the result of interpreting the object as an instance of 'Element'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Element'.
See Also:
doSwitch(EObject)
Generated:

caseModelElement

public T caseModelElement(ModelElement object)
Returns the result of interpreting the object as an instance of 'Model Element'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Model Element'.
See Also:
doSwitch(EObject)
Generated:

caseKDMEntity

public T caseKDMEntity(KDMEntity object)
Returns the result of interpreting the object as an instance of 'KDM Entity'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'KDM Entity'.
See Also:
doSwitch(EObject)
Generated:

caseAbstractCodeElement

public T caseAbstractCodeElement(AbstractCodeElement object)
Returns the result of interpreting the object as an instance of 'Abstract Code Element'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'Abstract Code Element'.
See Also:
doSwitch(EObject)
Generated:

caseKDMRelationship

public T caseKDMRelationship(KDMRelationship object)
Returns the result of interpreting the object as an instance of 'KDM Relationship'. This implementation returns null; returning a non-null result will terminate the switch.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'KDM Relationship'.
See Also:
doSwitch(EObject)
Generated:

defaultCase

public T defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'. This implementation returns null; returning a non-null result will terminate the switch, but this is the last case anyway.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
#doSwitch(org.eclipse.emf.ecore.EObject)
Generated: