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 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)
    • caseModelSitemap

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

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

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

      public T caseModelLinkableWidget(ModelLinkableWidget object)
      Returns the result of interpreting the object as an instance of 'Model 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 'Model Linkable Widget'.
      See Also:
      • doSwitch(EObject)
    • caseModelFrame

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

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

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

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

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

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

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

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

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

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

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

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

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

      public T caseModelColortemperaturepicker(ModelColortemperaturepicker object)
      Returns the result of interpreting the object as an instance of 'Model Colortemperaturepicker'. 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 Colortemperaturepicker'.
      See Also:
      • doSwitch(EObject)
    • caseModelInput

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

      public T caseModelButtongrid(ModelButtongrid object)
      Returns the result of interpreting the object as an instance of 'Model 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 'Model Buttongrid'.
      See Also:
      • doSwitch(EObject)
    • caseModelButton

      public T caseModelButton(ModelButton object)
      Returns the result of interpreting the object as an instance of 'Model 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 'Model Button'.
      See Also:
      • doSwitch(EObject)
    • caseModelDefault

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

      public T caseModelButtonDefinitionList(ModelButtonDefinitionList object)
      Returns the result of interpreting the object as an instance of 'Model Button Definition 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 'Model Button Definition List'.
      See Also:
      • doSwitch(EObject)
    • caseModelButtonDefinition

      public T caseModelButtonDefinition(ModelButtonDefinition object)
      Returns the result of interpreting the object as an instance of 'Model Button Definition'. 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 Button Definition'.
      See Also:
      • doSwitch(EObject)
    • caseModelMappingList

      public T caseModelMappingList(ModelMappingList object)
      Returns the result of interpreting the object as an instance of 'Model Mapping 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 'Model Mapping List'.
      See Also:
      • doSwitch(EObject)
    • caseModelMapping

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

      public T caseModelColorArrayList(ModelColorArrayList object)
      Returns the result of interpreting the object as an instance of 'Model Color Array 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 'Model Color Array List'.
      See Also:
      • doSwitch(EObject)
    • caseModelColorArray

      public T caseModelColorArray(ModelColorArray object)
      Returns the result of interpreting the object as an instance of 'Model 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 'Model Color Array'.
      See Also:
      • doSwitch(EObject)
    • caseModelIconRuleList

      public T caseModelIconRuleList(ModelIconRuleList object)
      Returns the result of interpreting the object as an instance of 'Model Icon Rule 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 'Model Icon Rule List'.
      See Also:
      • doSwitch(EObject)
    • caseModelIconRule

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

      public T caseModelVisibilityRuleList(ModelVisibilityRuleList object)
      Returns the result of interpreting the object as an instance of 'Model Visibility Rule 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 'Model Visibility Rule List'.
      See Also:
      • doSwitch(EObject)
    • caseModelVisibilityRule

      public T caseModelVisibilityRule(ModelVisibilityRule object)
      Returns the result of interpreting the object as an instance of 'Model 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 'Model Visibility Rule'.
      See Also:
      • doSwitch(EObject)
    • caseModelCondition

      public T caseModelCondition(ModelCondition object)
      Returns the result of interpreting the object as an instance of 'Model 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 'Model 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)