Class SitemapSwitch<T>


  • public class SitemapSwitch<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:
    SitemapPackage
    • Constructor Summary

      Constructors 
      Constructor Description
      SitemapSwitch()
      Creates an instance of the switch.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T caseChart​(Chart object)
      Returns the result of interpreting the object as an instance of 'Chart'.
      T caseColorArray​(ColorArray object)
      Returns the result of interpreting the object as an instance of 'Color Array'.
      T caseColorpicker​(Colorpicker object)
      Returns the result of interpreting the object as an instance of 'Colorpicker'.
      T caseDefault​(Default object)
      Returns the result of interpreting the object as an instance of 'Default'.
      T caseFrame​(Frame object)
      Returns the result of interpreting the object as an instance of 'Frame'.
      T caseGroup​(Group object)
      Returns the result of interpreting the object as an instance of 'Group'.
      T caseImage​(Image object)
      Returns the result of interpreting the object as an instance of 'Image'.
      T caseLinkableWidget​(LinkableWidget object)
      Returns the result of interpreting the object as an instance of 'Linkable Widget'.
      T caseList​(List object)
      Returns the result of interpreting the object as an instance of 'List'.
      T caseMapping​(Mapping object)
      Returns the result of interpreting the object as an instance of 'Mapping'.
      T caseMapview​(Mapview object)
      Returns the result of interpreting the object as an instance of 'Mapview'.
      T caseNonLinkableWidget​(NonLinkableWidget object)
      Returns the result of interpreting the object as an instance of 'Non Linkable Widget'.
      T caseSelection​(Selection object)
      Returns the result of interpreting the object as an instance of 'Selection'.
      T caseSetpoint​(Setpoint object)
      Returns the result of interpreting the object as an instance of 'Setpoint'.
      T caseSitemap​(Sitemap object)
      Returns the result of interpreting the object as an instance of 'Sitemap'.
      T caseSitemapModel​(SitemapModel object)
      Returns the result of interpreting the object as an instance of 'Model'.
      T caseSlider​(Slider object)
      Returns the result of interpreting the object as an instance of 'Slider'.
      T caseSwitch​(Switch object)
      Returns the result of interpreting the object as an instance of 'Switch'.
      T caseText​(Text object)
      Returns the result of interpreting the object as an instance of 'Text'.
      T caseVideo​(Video object)
      Returns the result of interpreting the object as an instance of 'Video'.
      T caseVisibilityRule​(VisibilityRule object)
      Returns the result of interpreting the object as an instance of 'Visibility Rule'.
      T caseWebview​(Webview object)
      Returns the result of interpreting the object as an instance of 'Webview'.
      T caseWidget​(Widget object)
      Returns the result of interpreting the object as an instance of 'Widget'.
      T 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)
      Calls caseXXX 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 Detail

      • modelPackage

        protected static SitemapPackage modelPackage
        The cached model package
    • Constructor Detail

      • SitemapSwitch

        public SitemapSwitch()
        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.
      • caseSitemapModel

        public T caseSitemapModel​(SitemapModel 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)
      • caseSitemap

        public T caseSitemap​(Sitemap object)
        Returns the result of interpreting the object as an instance of 'Sitemap'. 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 'Sitemap'.
        See Also:
        doSwitch(EObject)
      • caseWidget

        public T caseWidget​(Widget object)
        Returns the result of interpreting the object as an instance of 'Widget'. 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 'Widget'.
        See Also:
        doSwitch(EObject)
      • caseNonLinkableWidget

        public T caseNonLinkableWidget​(NonLinkableWidget object)
        Returns the result of interpreting the object as an instance of 'Non Linkable Widget'. 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 'Non Linkable Widget'.
        See Also:
        doSwitch(EObject)
      • caseLinkableWidget

        public T caseLinkableWidget​(LinkableWidget object)
        Returns the result of interpreting the object as an instance of 'Linkable Widget'. 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 'Linkable Widget'.
        See Also:
        doSwitch(EObject)
      • caseFrame

        public T caseFrame​(Frame object)
        Returns the result of interpreting the object as an instance of 'Frame'. 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 'Frame'.
        See Also:
        doSwitch(EObject)
      • caseText

        public T caseText​(Text object)
        Returns the result of interpreting the object as an instance of 'Text'. 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 'Text'.
        See Also:
        doSwitch(EObject)
      • caseGroup

        public T caseGroup​(Group object)
        Returns the result of interpreting the object as an instance of 'Group'. 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'.
        See Also:
        doSwitch(EObject)
      • caseImage

        public T caseImage​(Image object)
        Returns the result of interpreting the object as an instance of 'Image'. 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 'Image'.
        See Also:
        doSwitch(EObject)
      • caseVideo

        public T caseVideo​(Video object)
        Returns the result of interpreting the object as an instance of 'Video'. 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 'Video'.
        See Also:
        doSwitch(EObject)
      • caseChart

        public T caseChart​(Chart object)
        Returns the result of interpreting the object as an instance of 'Chart'. 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 'Chart'.
        See Also:
        doSwitch(EObject)
      • caseWebview

        public T caseWebview​(Webview object)
        Returns the result of interpreting the object as an instance of 'Webview'. 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 'Webview'.
        See Also:
        doSwitch(EObject)
      • caseSwitch

        public T caseSwitch​(Switch object)
        Returns the result of interpreting the object as an instance of 'Switch'. 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 'Switch'.
        See Also:
        doSwitch(EObject)
      • caseMapview

        public T caseMapview​(Mapview object)
        Returns the result of interpreting the object as an instance of 'Mapview'. 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 'Mapview'.
        See Also:
        doSwitch(EObject)
      • caseSlider

        public T caseSlider​(Slider object)
        Returns the result of interpreting the object as an instance of 'Slider'. 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 'Slider'.
        See Also:
        doSwitch(EObject)
      • caseSelection

        public T caseSelection​(Selection object)
        Returns the result of interpreting the object as an instance of 'Selection'. 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 'Selection'.
        See Also:
        doSwitch(EObject)
      • caseList

        public T caseList​(List object)
        Returns the result of interpreting the object as an instance of 'List'. 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 'List'.
        See Also:
        doSwitch(EObject)
      • caseSetpoint

        public T caseSetpoint​(Setpoint object)
        Returns the result of interpreting the object as an instance of 'Setpoint'. 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 'Setpoint'.
        See Also:
        doSwitch(EObject)
      • caseColorpicker

        public T caseColorpicker​(Colorpicker object)
        Returns the result of interpreting the object as an instance of 'Colorpicker'. 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 'Colorpicker'.
        See Also:
        doSwitch(EObject)
      • caseDefault

        public T caseDefault​(Default object)
        Returns the result of interpreting the object as an instance of 'Default'. 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 'Default'.
        See Also:
        doSwitch(EObject)
      • caseMapping

        public T caseMapping​(Mapping object)
        Returns the result of interpreting the object as an instance of 'Mapping'. 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 'Mapping'.
        See Also:
        doSwitch(EObject)
      • caseVisibilityRule

        public T caseVisibilityRule​(VisibilityRule object)
        Returns the result of interpreting the object as an instance of 'Visibility 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 'Visibility Rule'.
        See Also:
        doSwitch(EObject)
      • caseColorArray

        public T caseColorArray​(ColorArray object)
        Returns the result of interpreting the object as an instance of 'Color Array'. 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 'Color Array'.
        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)