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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseModelButton(ModelButton object) Returns the result of interpreting the object as an instance of 'Model Button'.Returns the result of interpreting the object as an instance of 'Model Button Definition'.Returns the result of interpreting the object as an instance of 'Model Button Definition List'.caseModelButtongrid(ModelButtongrid object) Returns the result of interpreting the object as an instance of 'Model Buttongrid'.caseModelChart(ModelChart object) Returns the result of interpreting the object as an instance of 'Model Chart'.caseModelColorArray(ModelColorArray object) Returns the result of interpreting the object as an instance of 'Model Color Array'.Returns the result of interpreting the object as an instance of 'Model Color Array List'.caseModelColorpicker(ModelColorpicker object) Returns the result of interpreting the object as an instance of 'Model Colorpicker'.Returns the result of interpreting the object as an instance of 'Model Colortemperaturepicker'.caseModelCondition(ModelCondition object) Returns the result of interpreting the object as an instance of 'Model Condition'.caseModelDefault(ModelDefault object) Returns the result of interpreting the object as an instance of 'Model Default'.caseModelFrame(ModelFrame object) Returns the result of interpreting the object as an instance of 'Model Frame'.caseModelGroup(ModelGroup object) Returns the result of interpreting the object as an instance of 'Model Group'.caseModelIconRule(ModelIconRule object) Returns the result of interpreting the object as an instance of 'Model Icon Rule'.Returns the result of interpreting the object as an instance of 'Model Icon Rule List'.caseModelImage(ModelImage object) Returns the result of interpreting the object as an instance of 'Model Image'.caseModelInput(ModelInput object) Returns the result of interpreting the object as an instance of 'Model Input'.Returns the result of interpreting the object as an instance of 'Model Linkable Widget'.caseModelMapping(ModelMapping object) Returns the result of interpreting the object as an instance of 'Model Mapping'.caseModelMappingList(ModelMappingList object) Returns the result of interpreting the object as an instance of 'Model Mapping List'.caseModelMapview(ModelMapview object) Returns the result of interpreting the object as an instance of 'Model Mapview'.Returns the result of interpreting the object as an instance of 'Model Non Linkable Widget'.caseModelSelection(ModelSelection object) Returns the result of interpreting the object as an instance of 'Model Selection'.caseModelSetpoint(ModelSetpoint object) Returns the result of interpreting the object as an instance of 'Model Setpoint'.caseModelSitemap(ModelSitemap object) Returns the result of interpreting the object as an instance of 'Model Sitemap'.caseModelSlider(ModelSlider object) Returns the result of interpreting the object as an instance of 'Model Slider'.caseModelSwitch(ModelSwitch object) Returns the result of interpreting the object as an instance of 'Model Switch'.caseModelText(ModelText object) Returns the result of interpreting the object as an instance of 'Model Text'.caseModelVideo(ModelVideo object) Returns the result of interpreting the object as an instance of 'Model Video'.Returns the result of interpreting the object as an instance of 'Model Visibility Rule'.Returns the result of interpreting the object as an instance of 'Model Visibility Rule List'.caseModelWebview(ModelWebview object) Returns the result of interpreting the object as an instance of 'Model Webview'.caseModelWidget(ModelWidget object) Returns the result of interpreting the object as an instance of 'Model Widget'.caseSitemapModel(SitemapModel object) Returns the result of interpreting the object as an instance of 'Model'.defaultCase(org.eclipse.emf.ecore.EObject object) Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject) CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(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
-
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:
isSwitchForin classorg.eclipse.emf.ecore.util.Switch<T>- Parameters:
ePackage- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitchin classorg.eclipse.emf.ecore.util.Switch<T>- Returns:
- the first non-null result returned by a
caseXXXcall.
-
caseSitemapModel
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:
-
caseModelSitemap
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:
-
caseModelWidget
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:
-
caseModelNonLinkableWidget
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:
-
caseModelLinkableWidget
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:
-
caseModelFrame
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:
-
caseModelText
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:
-
caseModelGroup
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:
-
caseModelImage
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:
-
caseModelVideo
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:
-
caseModelChart
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:
-
caseModelWebview
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:
-
caseModelSwitch
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:
-
caseModelMapview
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:
-
caseModelSlider
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:
-
caseModelSelection
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:
-
caseModelSetpoint
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:
-
caseModelColorpicker
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:
-
caseModelColortemperaturepicker
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:
-
caseModelInput
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:
-
caseModelButtongrid
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:
-
caseModelButton
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:
-
caseModelDefault
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:
-
caseModelButtonDefinitionList
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:
-
caseModelButtonDefinition
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:
-
caseModelMappingList
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:
-
caseModelMapping
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:
-
caseModelColorArrayList
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:
-
caseModelColorArray
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:
-
caseModelIconRuleList
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:
-
caseModelIconRule
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:
-
caseModelVisibilityRuleList
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:
-
caseModelVisibilityRule
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:
-
caseModelCondition
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:
-
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:
defaultCasein 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:
-