Class 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:
    RulesPackage
    • Field Detail

      • modelPackage

        protected static RulesPackage modelPackage
        The cached model package
    • Constructor Detail

      • RulesSwitch

        public RulesSwitch()
        Creates an instance of the switch.
    • Method Detail

      • 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.
      • caseRuleModel

        public T caseRuleModel​(RuleModel object)
        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

        public T caseVariableDeclaration​(VariableDeclaration object)
        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

        public T caseRule​(Rule object)
        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

        public T caseEventTrigger​(EventTrigger object)
        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

        public T caseCommandEventTrigger​(CommandEventTrigger object)
        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

        public T caseGroupMemberCommandEventTrigger​(GroupMemberCommandEventTrigger object)
        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

        public T caseUpdateEventTrigger​(UpdateEventTrigger object)
        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

        public T caseGroupMemberUpdateEventTrigger​(GroupMemberUpdateEventTrigger object)
        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

        public T caseChangedEventTrigger​(ChangedEventTrigger object)
        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

        public T caseGroupMemberChangedEventTrigger​(GroupMemberChangedEventTrigger object)
        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

        public T caseEventEmittedTrigger​(EventEmittedTrigger object)
        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

        public T caseTimerTrigger​(TimerTrigger object)
        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)
      • caseSystemTrigger

        public T caseSystemTrigger​(SystemTrigger object)
        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

        public T caseSystemOnStartupTrigger​(SystemOnStartupTrigger object)
        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)
      • caseSystemOnShutdownTrigger

        public T caseSystemOnShutdownTrigger​(SystemOnShutdownTrigger object)
        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

        public T caseThingStateUpdateEventTrigger​(ThingStateUpdateEventTrigger object)
        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

        public T caseThingStateChangedEventTrigger​(ThingStateChangedEventTrigger object)
        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

        public T caseValidState​(ValidState object)
        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

        public T caseValidStateId​(ValidStateId object)
        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

        public T caseValidStateNumber​(ValidStateNumber object)
        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

        public T caseValidStateString​(ValidStateString object)
        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

        public T caseValidCommand​(ValidCommand object)
        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

        public T caseValidCommandId​(ValidCommandId object)
        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

        public T caseValidCommandNumber​(ValidCommandNumber object)
        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

        public T caseValidCommandString​(ValidCommandString object)
        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

        public T caseValidTrigger​(ValidTrigger object)
        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

        public T caseValidTriggerId​(ValidTriggerId object)
        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

        public T caseValidTriggerNumber​(ValidTriggerNumber object)
        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

        public T caseValidTriggerString​(ValidTriggerString object)
        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

        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)