Class SitemapSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.openhab.core.model.sitemap.sitemap.util.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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static SitemapPackage
    The cached model package
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Returns the result of interpreting the object as an instance of 'Button'.
    Returns the result of interpreting the object as an instance of 'Buttongrid'.
    caseChart(Chart object)
    Returns the result of interpreting the object as an instance of 'Chart'.
    Returns the result of interpreting the object as an instance of 'Color Array'.
    Returns the result of interpreting the object as an instance of 'Colorpicker'.
    Returns the result of interpreting the object as an instance of 'Condition'.
    Returns the result of interpreting the object as an instance of 'Default'.
    caseFrame(Frame object)
    Returns the result of interpreting the object as an instance of 'Frame'.
    caseGroup(Group object)
    Returns the result of interpreting the object as an instance of 'Group'.
    Returns the result of interpreting the object as an instance of 'Icon Rule'.
    caseImage(Image object)
    Returns the result of interpreting the object as an instance of 'Image'.
    caseInput(Input object)
    Returns the result of interpreting the object as an instance of 'Input'.
    Returns the result of interpreting the object as an instance of 'Linkable Widget'.
    Returns the result of interpreting the object as an instance of 'Mapping'.
    Returns the result of interpreting the object as an instance of 'Mapview'.
    Returns the result of interpreting the object as an instance of 'Non Linkable Widget'.
    Returns the result of interpreting the object as an instance of 'Selection'.
    Returns the result of interpreting the object as an instance of 'Setpoint'.
    Returns the result of interpreting the object as an instance of 'Sitemap'.
    Returns the result of interpreting the object as an instance of 'Model'.
    Returns the result of interpreting the object as an instance of 'Slider'.
    Returns the result of interpreting the object as an instance of 'Switch'.
    caseText(Text object)
    Returns the result of interpreting the object as an instance of 'Text'.
    caseVideo(Video object)
    Returns the result of interpreting the object as an instance of 'Video'.
    Returns the result of interpreting the object as an instance of 'Visibility Rule'.
    Returns the result of interpreting the object as an instance of 'Webview'.
    Returns the result of interpreting the object as an instance of 'Widget'.
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • modelPackage

      protected static SitemapPackage modelPackage
      The cached model package
  • Constructor Details

    • SitemapSwitch

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

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

      public T caseButtongrid(Buttongrid object)
      Returns the result of interpreting the object as an instance of 'Buttongrid'. 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 'Buttongrid'.
      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)
    • caseButton

      public T caseButton(Button object)
      Returns the result of interpreting the object as an instance of 'Button'. 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 'Button'.
      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)
    • caseIconRule

      public T caseIconRule(IconRule object)
      Returns the result of interpreting the object as an instance of 'Icon 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 'Icon Rule'.
      See Also:
      • doSwitch(EObject)
    • caseCondition

      public T caseCondition(Condition object)
      Returns the result of interpreting the object as an instance of 'Condition'. 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 'Condition'.
      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)