|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmt.modisco.omg.kdm.event.util.EventSwitch<T>
public class EventSwitch<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.
EventPackage
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 |
---|
public EventSwitch()
Method Detail |
---|
public T doSwitch(EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
caseXXX
call.public T caseEventModel(EventModel object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAbstractEventElement(AbstractEventElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEvent(Event object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAbstractEventRelationship(AbstractEventRelationship object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEventRelationship(EventRelationship object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEventResource(EventResource object)
object
- the target of the switch.
doSwitch(EObject)
public T caseState(State object)
object
- the target of the switch.
doSwitch(EObject)
public T caseTransition(Transition object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOnEntry(OnEntry object)
object
- the target of the switch.
doSwitch(EObject)
public T caseOnExit(OnExit object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEventAction(EventAction object)
object
- the target of the switch.
doSwitch(EObject)
public T caseReadsState(ReadsState object)
object
- the target of the switch.
doSwitch(EObject)
public T caseProducesEvent(ProducesEvent object)
object
- the target of the switch.
doSwitch(EObject)
public T caseConsumesEvent(ConsumesEvent object)
object
- the target of the switch.
doSwitch(EObject)
public T caseNextState(NextState object)
object
- the target of the switch.
doSwitch(EObject)
public T caseInitialState(InitialState object)
object
- the target of the switch.
doSwitch(EObject)
public T caseEventElement(EventElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseHasState(HasState object)
object
- the target of the switch.
doSwitch(EObject)
public T caseElement(Element object)
object
- the target of the switch.
doSwitch(EObject)
public T caseModelElement(ModelElement object)
object
- the target of the switch.
doSwitch(EObject)
public T caseKDMFramework(KDMFramework object)
object
- the target of the switch.
doSwitch(EObject)
public T caseKDMModel(KDMModel object)
object
- the target of the switch.
doSwitch(EObject)
public T caseKDMEntity(KDMEntity object)
object
- the target of the switch.
doSwitch(EObject)
public T caseKDMRelationship(KDMRelationship object)
object
- the target of the switch.
doSwitch(EObject)
public T caseAbstractActionRelationship(AbstractActionRelationship object)
object
- the target of the switch.
doSwitch(EObject)
public T defaultCase(EObject object)
object
- the target of the switch.
#doSwitch(org.eclipse.emf.ecore.EObject)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |