Class ActionSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.eclipse.gmt.modisco.omg.kdm.action.util.ActionSwitch<T>

public class ActionSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
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
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected static ActionPackage modelPackage
    The cached model package
  • Constructor Summary

    Constructors
    Constructor Description
    ActionSwitch()
    Creates an instance of the switch.
  • Method Summary

    Modifier and Type Method Description
    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​(org.eclipse.emf.ecore.EObject object)
    Returns the result of interpreting the object as an instance of 'EObject'.
    protected T doSwitch​(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
    Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
    protected boolean isSwitchFor​(org.eclipse.emf.ecore.EPackage ePackage)
    Checks whether this is a switch for the given package.

    Methods inherited from class org.eclipse.emf.ecore.util.Switch

    doSwitch, doSwitch

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • modelPackage

      protected static ActionPackage modelPackage
      The cached model package
  • Constructor Details

    • ActionSwitch

      public ActionSwitch()
      Creates an instance of the switch.
  • Method Details

    • isSwitchFor

      protected boolean isSwitchFor​(org.eclipse.emf.ecore.EPackage ePackage)
      Checks whether this is a switch for the given package.
      Specified by:
      isSwitchFor in class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      ePackage - the package in question.
      Returns:
      whether this is a switch for the given package.
    • doSwitch

      protected T doSwitch​(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
      Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
      Overrides:
      doSwitch in class org.eclipse.emf.ecore.util.Switch<T>
      Returns:
      the first non-null result returned by a caseXXX call.
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • 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)
    • defaultCase

      public T defaultCase​(org.eclipse.emf.ecore.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.
      Overrides:
      defaultCase in class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'EObject'.
      See Also:
      Switch.doSwitch(org.eclipse.emf.ecore.EObject)