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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncaseButton
(Button object) Returns the result of interpreting the object as an instance of 'Button'.caseButtonDefinition
(ButtonDefinition object) Returns the result of interpreting the object as an instance of 'Button Definition'.caseButtongrid
(Buttongrid object) Returns the result of interpreting the object as an instance of 'Buttongrid'.Returns the result of interpreting the object as an instance of 'Chart'.caseColorArray
(ColorArray object) Returns the result of interpreting the object as an instance of 'Color Array'.caseColorpicker
(Colorpicker object) Returns the result of interpreting the object as an instance of 'Colorpicker'.caseCondition
(Condition object) Returns the result of interpreting the object as an instance of 'Condition'.caseDefault
(Default object) Returns the result of interpreting the object as an instance of 'Default'.Returns the result of interpreting the object as an instance of 'Frame'.Returns the result of interpreting the object as an instance of 'Group'.caseIconRule
(IconRule object) Returns the result of interpreting the object as an instance of 'Icon Rule'.Returns the result of interpreting the object as an instance of 'Image'.Returns the result of interpreting the object as an instance of 'Input'.caseLinkableWidget
(LinkableWidget object) Returns the result of interpreting the object as an instance of 'Linkable Widget'.caseMapping
(Mapping object) Returns the result of interpreting the object as an instance of 'Mapping'.caseMapview
(Mapview object) 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'.caseSelection
(Selection object) Returns the result of interpreting the object as an instance of 'Selection'.caseSetpoint
(Setpoint object) Returns the result of interpreting the object as an instance of 'Setpoint'.caseSitemap
(Sitemap object) Returns the result of interpreting the object as an instance of 'Sitemap'.caseSitemapModel
(SitemapModel object) Returns the result of interpreting the object as an instance of 'Model'.caseSlider
(Slider object) Returns the result of interpreting the object as an instance of 'Slider'.caseSwitch
(Switch object) Returns the result of interpreting the object as an instance of 'Switch'.Returns the result of interpreting the object as an instance of 'Text'.Returns the result of interpreting the object as an instance of 'Video'.caseVisibilityRule
(VisibilityRule object) Returns the result of interpreting the object as an instance of 'Visibility Rule'.caseWebview
(Webview object) Returns the result of interpreting the object as an instance of 'Webview'.caseWidget
(Widget object) 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) CallscaseXXX
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 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:
isSwitchFor
in classorg.eclipse.emf.ecore.util.Switch<T>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXX
for each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T>
- Returns:
- the first non-null result returned by a
caseXXX
call.
-
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:
-
doSwitch(EObject)
-
caseSitemap
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
-
caseButton
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)
-
caseDefault
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)
-
caseButtonDefinition
Returns the result of interpreting the object as an instance of '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 'Button Definition'.
- See Also:
-
doSwitch(EObject)
-
caseMapping
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
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
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
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
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
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 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:
-
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
-