org.eclipse.gmt.modisco.omg.kdm.event.util
Class EventSwitch<T>

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

public class EventSwitch<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:
EventPackage
Generated:

Constructor Summary
EventSwitch()
          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 caseAbstractEventElement(AbstractEventElement object)
          Returns the result of interpreting the object as an instance of 'Abstract Event Element'.
 T caseAbstractEventRelationship(AbstractEventRelationship object)
          Returns the result of interpreting the object as an instance of 'Abstract Event Relationship'.
 T caseConsumesEvent(ConsumesEvent object)
          Returns the result of interpreting the object as an instance of 'Consumes Event'.
 T caseElement(Element object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseEvent(Event object)
          Returns the result of interpreting the object as an instance of 'Event'.
 T caseEventAction(EventAction object)
          Returns the result of interpreting the object as an instance of 'Action'.
 T caseEventElement(EventElement object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseEventModel(EventModel object)
          Returns the result of interpreting the object as an instance of 'Model'.
 T caseEventRelationship(EventRelationship object)
          Returns the result of interpreting the object as an instance of 'Relationship'.
 T caseEventResource(EventResource object)
          Returns the result of interpreting the object as an instance of 'Resource'.
 T caseHasState(HasState object)
          Returns the result of interpreting the object as an instance of 'Has State'.
 T caseInitialState(InitialState object)
          Returns the result of interpreting the object as an instance of 'Initial State'.
 T caseKDMEntity(KDMEntity object)
          Returns the result of interpreting the object as an instance of 'KDM Entity'.
 T caseKDMFramework(KDMFramework object)
          Returns the result of interpreting the object as an instance of 'KDM Framework'.
 T caseKDMModel(KDMModel object)
          Returns the result of interpreting the object as an instance of 'KDM Model'.
 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 caseNextState(NextState object)
          Returns the result of interpreting the object as an instance of 'Next State'.
 T caseOnEntry(OnEntry object)
          Returns the result of interpreting the object as an instance of 'On Entry'.
 T caseOnExit(OnExit object)
          Returns the result of interpreting the object as an instance of 'On Exit'.
 T caseProducesEvent(ProducesEvent object)
          Returns the result of interpreting the object as an instance of 'Produces Event'.
 T caseReadsState(ReadsState object)
          Returns the result of interpreting the object as an instance of 'Reads State'.
 T caseState(State object)
          Returns the result of interpreting the object as an instance of 'State'.
 T caseTransition(Transition object)
          Returns the result of interpreting the object as an instance of 'Transition'.
 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

EventSwitch

public EventSwitch()
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:

caseEventModel

public T caseEventModel(EventModel object)
Returns the result of interpreting the object as an instance of 'Model'. 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'.
See Also:
doSwitch(EObject)
Generated:

caseAbstractEventElement

public T caseAbstractEventElement(AbstractEventElement object)
Returns the result of interpreting the object as an instance of 'Abstract Event 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 Event Element'.
See Also:
doSwitch(EObject)
Generated:

caseEvent

public T caseEvent(Event object)
Returns the result of interpreting the object as an instance of 'Event'. 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 'Event'.
See Also:
doSwitch(EObject)
Generated:

caseAbstractEventRelationship

public T caseAbstractEventRelationship(AbstractEventRelationship object)
Returns the result of interpreting the object as an instance of 'Abstract Event 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 Event Relationship'.
See Also:
doSwitch(EObject)
Generated:

caseEventRelationship

public T caseEventRelationship(EventRelationship 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:

caseEventResource

public T caseEventResource(EventResource object)
Returns the result of interpreting the object as an instance of 'Resource'. 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 'Resource'.
See Also:
doSwitch(EObject)
Generated:

caseState

public T caseState(State object)
Returns the result of interpreting the object as an instance of 'State'. 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 'State'.
See Also:
doSwitch(EObject)
Generated:

caseTransition

public T caseTransition(Transition object)
Returns the result of interpreting the object as an instance of 'Transition'. 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 'Transition'.
See Also:
doSwitch(EObject)
Generated:

caseOnEntry

public T caseOnEntry(OnEntry object)
Returns the result of interpreting the object as an instance of 'On Entry'. 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 'On Entry'.
See Also:
doSwitch(EObject)
Generated:

caseOnExit

public T caseOnExit(OnExit object)
Returns the result of interpreting the object as an instance of 'On Exit'. 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 'On Exit'.
See Also:
doSwitch(EObject)
Generated:

caseEventAction

public T caseEventAction(EventAction object)
Returns the result of interpreting the object as an instance of 'Action'. 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 'Action'.
See Also:
doSwitch(EObject)
Generated:

caseReadsState

public T caseReadsState(ReadsState object)
Returns the result of interpreting the object as an instance of 'Reads State'. 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 State'.
See Also:
doSwitch(EObject)
Generated:

caseProducesEvent

public T caseProducesEvent(ProducesEvent object)
Returns the result of interpreting the object as an instance of 'Produces Event'. 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 'Produces Event'.
See Also:
doSwitch(EObject)
Generated:

caseConsumesEvent

public T caseConsumesEvent(ConsumesEvent object)
Returns the result of interpreting the object as an instance of 'Consumes Event'. 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 'Consumes Event'.
See Also:
doSwitch(EObject)
Generated:

caseNextState

public T caseNextState(NextState object)
Returns the result of interpreting the object as an instance of 'Next State'. 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 'Next State'.
See Also:
doSwitch(EObject)
Generated:

caseInitialState

public T caseInitialState(InitialState object)
Returns the result of interpreting the object as an instance of 'Initial State'. 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 'Initial State'.
See Also:
doSwitch(EObject)
Generated:

caseEventElement

public T caseEventElement(EventElement 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:

caseHasState

public T caseHasState(HasState object)
Returns the result of interpreting the object as an instance of 'Has State'. 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 'Has State'.
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:

caseKDMFramework

public T caseKDMFramework(KDMFramework object)
Returns the result of interpreting the object as an instance of 'KDM Framework'. 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 Framework'.
See Also:
doSwitch(EObject)
Generated:

caseKDMModel

public T caseKDMModel(KDMModel object)
Returns the result of interpreting the object as an instance of 'KDM Model'. 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 Model'.
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:

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:

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:

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: