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 ActionPackagemodelPackageThe cached model package -
Constructor Summary
Constructors Constructor Description ActionSwitch()Creates an instance of the switch. -
Method Summary
Modifier and Type Method Description TcaseAbstractActionRelationship(AbstractActionRelationship object)Returns the result of interpreting the object as an instance of 'Abstract Action Relationship'.TcaseAbstractCodeElement(AbstractCodeElement object)Returns the result of interpreting the object as an instance of 'Abstract Code Element'.TcaseActionElement(ActionElement object)Returns the result of interpreting the object as an instance of 'Element'.TcaseActionRelationship(ActionRelationship object)Returns the result of interpreting the object as an instance of 'Relationship'.TcaseAddresses(Addresses object)Returns the result of interpreting the object as an instance of 'Addresses'.TcaseBlockUnit(BlockUnit object)Returns the result of interpreting the object as an instance of 'Block Unit'.TcaseCalls(Calls object)Returns the result of interpreting the object as an instance of 'Calls'.TcaseCatchUnit(CatchUnit object)Returns the result of interpreting the object as an instance of 'Catch Unit'.TcaseCompliesTo(CompliesTo object)Returns the result of interpreting the object as an instance of 'Complies To'.TcaseControlFlow(ControlFlow object)Returns the result of interpreting the object as an instance of 'Control Flow'.TcaseCreates(Creates object)Returns the result of interpreting the object as an instance of 'Creates'.TcaseDispatches(Dispatches object)Returns the result of interpreting the object as an instance of 'Dispatches'.TcaseElement(Element object)Returns the result of interpreting the object as an instance of 'Element'.TcaseEntryFlow(EntryFlow object)Returns the result of interpreting the object as an instance of 'Entry Flow'.TcaseExceptionFlow(ExceptionFlow object)Returns the result of interpreting the object as an instance of 'Exception Flow'.TcaseExceptionUnit(ExceptionUnit object)Returns the result of interpreting the object as an instance of 'Exception Unit'.TcaseExitFlow(ExitFlow object)Returns the result of interpreting the object as an instance of 'Exit Flow'.TcaseFalseFlow(FalseFlow object)Returns the result of interpreting the object as an instance of 'False Flow'.TcaseFinallyUnit(FinallyUnit object)Returns the result of interpreting the object as an instance of 'Finally Unit'.TcaseFlow(Flow object)Returns the result of interpreting the object as an instance of 'Flow'.TcaseGuardedFlow(GuardedFlow object)Returns the result of interpreting the object as an instance of 'Guarded Flow'.TcaseKDMEntity(KDMEntity object)Returns the result of interpreting the object as an instance of 'KDM Entity'.TcaseKDMRelationship(KDMRelationship object)Returns the result of interpreting the object as an instance of 'KDM Relationship'.TcaseModelElement(ModelElement object)Returns the result of interpreting the object as an instance of 'Model Element'.TcaseReads(Reads object)Returns the result of interpreting the object as an instance of 'Reads'.TcaseThrows(Throws object)Returns the result of interpreting the object as an instance of 'Throws'.TcaseTrueFlow(TrueFlow object)Returns the result of interpreting the object as an instance of 'True Flow'.TcaseTryUnit(TryUnit object)Returns the result of interpreting the object as an instance of 'Try Unit'.TcaseUsesType(UsesType object)Returns the result of interpreting the object as an instance of 'Uses Type'.TcaseWrites(Writes object)Returns the result of interpreting the object as an instance of 'Writes'.TdefaultCase(org.eclipse.emf.ecore.EObject object)Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(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
-
Field Details
-
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:
isSwitchForin classorg.eclipse.emf.ecore.util.Switch<T>- Parameters:
ePackage- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitchin classorg.eclipse.emf.ecore.util.Switch<T>- Returns:
- the first non-null result returned by a
caseXXXcall.
-
caseActionElement
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
defaultCasein classorg.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)
-