Class RulesSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.openhab.core.model.rule.rules.util.RulesSwitch<T>
public class RulesSwitch<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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the result of interpreting the object as an instance of 'Changed Event Trigger'.Returns the result of interpreting the object as an instance of 'Command Event Trigger'.caseDateTimeTrigger
(DateTimeTrigger object) Returns the result of interpreting the object as an instance of 'Date Time Trigger'.Returns the result of interpreting the object as an instance of 'Event Emitted Trigger'.caseEventTrigger
(EventTrigger object) Returns the result of interpreting the object as an instance of 'Event Trigger'.Returns the result of interpreting the object as an instance of 'Group Member Changed Event Trigger'.Returns the result of interpreting the object as an instance of 'Group Member Command Event Trigger'.Returns the result of interpreting the object as an instance of 'Group Member Update Event Trigger'.Returns the result of interpreting the object as an instance of 'Rule'.caseRuleModel
(RuleModel object) Returns the result of interpreting the object as an instance of 'Rule Model'.Returns the result of interpreting the object as an instance of 'System On Shutdown Trigger'.Returns the result of interpreting the object as an instance of 'System On Startup Trigger'.Returns the result of interpreting the object as an instance of 'System Startlevel Trigger'.caseSystemTrigger
(SystemTrigger object) Returns the result of interpreting the object as an instance of 'System Trigger'.Returns the result of interpreting the object as an instance of 'Thing State Changed Event Trigger'.Returns the result of interpreting the object as an instance of 'Thing State Update Event Trigger'.caseTimerTrigger
(TimerTrigger object) Returns the result of interpreting the object as an instance of 'Timer Trigger'.Returns the result of interpreting the object as an instance of 'Update Event Trigger'.caseValidCommand
(ValidCommand object) Returns the result of interpreting the object as an instance of 'Valid Command'.caseValidCommandId
(ValidCommandId object) Returns the result of interpreting the object as an instance of 'Valid Command Id'.Returns the result of interpreting the object as an instance of 'Valid Command Number'.Returns the result of interpreting the object as an instance of 'Valid Command String'.caseValidState
(ValidState object) Returns the result of interpreting the object as an instance of 'Valid State'.caseValidStateId
(ValidStateId object) Returns the result of interpreting the object as an instance of 'Valid State Id'.caseValidStateNumber
(ValidStateNumber object) Returns the result of interpreting the object as an instance of 'Valid State Number'.caseValidStateString
(ValidStateString object) Returns the result of interpreting the object as an instance of 'Valid State String'.caseValidTrigger
(ValidTrigger object) Returns the result of interpreting the object as an instance of 'Valid Trigger'.caseValidTriggerId
(ValidTriggerId object) Returns the result of interpreting the object as an instance of 'Valid Trigger Id'.Returns the result of interpreting the object as an instance of 'Valid Trigger Number'.Returns the result of interpreting the object as an instance of 'Valid Trigger String'.Returns the result of interpreting the object as an instance of 'Variable Declaration'.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) CallscaseXXX
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
-
Field Details
-
modelPackage
The cached model package
-
-
Constructor Details
-
RulesSwitch
public RulesSwitch()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 classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call.
-
caseRuleModel
Returns the result of interpreting the object as an instance of 'Rule 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 'Rule Model'.
- See Also:
-
doSwitch(EObject)
-
caseVariableDeclaration
Returns the result of interpreting the object as an instance of 'Variable Declaration'. 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 'Variable Declaration'.
- See Also:
-
doSwitch(EObject)
-
caseRule
Returns the result of interpreting the object as an instance of 'Rule'. 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 'Rule'.
- See Also:
-
doSwitch(EObject)
-
caseEventTrigger
Returns the result of interpreting the object as an instance of 'Event Trigger'. 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 Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseCommandEventTrigger
Returns the result of interpreting the object as an instance of 'Command Event Trigger'. 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 'Command Event Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseGroupMemberCommandEventTrigger
Returns the result of interpreting the object as an instance of 'Group Member Command Event Trigger'. 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 'Group Member Command Event Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseUpdateEventTrigger
Returns the result of interpreting the object as an instance of 'Update Event Trigger'. 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 'Update Event Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseGroupMemberUpdateEventTrigger
Returns the result of interpreting the object as an instance of 'Group Member Update Event Trigger'. 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 'Group Member Update Event Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseChangedEventTrigger
Returns the result of interpreting the object as an instance of 'Changed Event Trigger'. 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 'Changed Event Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseGroupMemberChangedEventTrigger
Returns the result of interpreting the object as an instance of 'Group Member Changed Event Trigger'. 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 'Group Member Changed Event Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseEventEmittedTrigger
Returns the result of interpreting the object as an instance of 'Event Emitted Trigger'. 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 Emitted Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseTimerTrigger
Returns the result of interpreting the object as an instance of 'Timer Trigger'. 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 'Timer Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseDateTimeTrigger
Returns the result of interpreting the object as an instance of 'Date Time Trigger'. 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 'Date Time Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseSystemTrigger
Returns the result of interpreting the object as an instance of 'System Trigger'. 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 'System Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseSystemOnStartupTrigger
Returns the result of interpreting the object as an instance of 'System On Startup Trigger'. 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 'System On Startup Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseSystemStartlevelTrigger
Returns the result of interpreting the object as an instance of 'System Startlevel Trigger'. 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 'System Startlevel Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseSystemOnShutdownTrigger
Returns the result of interpreting the object as an instance of 'System On Shutdown Trigger'. 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 'System On Shutdown Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseThingStateUpdateEventTrigger
Returns the result of interpreting the object as an instance of 'Thing State Update Event Trigger'. 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 'Thing State Update Event Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseThingStateChangedEventTrigger
Returns the result of interpreting the object as an instance of 'Thing State Changed Event Trigger'. 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 'Thing State Changed Event Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseValidState
Returns the result of interpreting the object as an instance of 'Valid 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 'Valid State'.
- See Also:
-
doSwitch(EObject)
-
caseValidStateId
Returns the result of interpreting the object as an instance of 'Valid State Id'. 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 'Valid State Id'.
- See Also:
-
doSwitch(EObject)
-
caseValidStateNumber
Returns the result of interpreting the object as an instance of 'Valid State Number'. 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 'Valid State Number'.
- See Also:
-
doSwitch(EObject)
-
caseValidStateString
Returns the result of interpreting the object as an instance of 'Valid State String'. 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 'Valid State String'.
- See Also:
-
doSwitch(EObject)
-
caseValidCommand
Returns the result of interpreting the object as an instance of 'Valid Command'. 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 'Valid Command'.
- See Also:
-
doSwitch(EObject)
-
caseValidCommandId
Returns the result of interpreting the object as an instance of 'Valid Command Id'. 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 'Valid Command Id'.
- See Also:
-
doSwitch(EObject)
-
caseValidCommandNumber
Returns the result of interpreting the object as an instance of 'Valid Command Number'. 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 'Valid Command Number'.
- See Also:
-
doSwitch(EObject)
-
caseValidCommandString
Returns the result of interpreting the object as an instance of 'Valid Command String'. 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 'Valid Command String'.
- See Also:
-
doSwitch(EObject)
-
caseValidTrigger
Returns the result of interpreting the object as an instance of 'Valid Trigger'. 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 'Valid Trigger'.
- See Also:
-
doSwitch(EObject)
-
caseValidTriggerId
Returns the result of interpreting the object as an instance of 'Valid Trigger Id'. 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 'Valid Trigger Id'.
- See Also:
-
doSwitch(EObject)
-
caseValidTriggerNumber
Returns the result of interpreting the object as an instance of 'Valid Trigger Number'. 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 'Valid Trigger Number'.
- See Also:
-
doSwitch(EObject)
-
caseValidTriggerString
Returns the result of interpreting the object as an instance of 'Valid Trigger String'. 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 'Valid Trigger String'.
- 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:
defaultCase
in 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)
-