Class ThemeSwitch<T>
java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
com._1c.g5.v8.dt.form.presentation.theme.util.ThemeSwitch<T>
public class ThemeSwitch<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 TypeMethodDescriptioncaseHippoTheme(HippoTheme object) Returns the result of interpreting the object as an instance of 'Hippo Theme'.Returns the result of interpreting the object as an instance of 'ISkin Element With Back Color'.Returns the result of interpreting the object as an instance of 'ISkin Element With Border Color'.Returns the result of interpreting the object as an instance of 'ISkin Element With Font'.Returns the result of interpreting the object as an instance of 'ISkin Element With Shadow'.Returns the result of interpreting the object as an instance of 'ISkin Element With Text Color'.caseSkinBackObject(SkinBackObject object) Returns the result of interpreting the object as an instance of 'Skin Back Object'.caseSkinButton(SkinButton object) Returns the result of interpreting the object as an instance of 'Skin Button'.caseSkinCalendar(SkinCalendar object) Returns the result of interpreting the object as an instance of 'Skin Calendar'.caseSkinCheckBox(SkinCheckBox object) Returns the result of interpreting the object as an instance of 'Skin Check Box'.caseSkinCommand(SkinCommand object) Returns the result of interpreting the object as an instance of 'Skin Command'.caseSkinCommandBar(SkinCommandBar object) Returns the result of interpreting the object as an instance of 'Skin Command Bar'.caseSkinEdit(SkinEdit object) Returns the result of interpreting the object as an instance of 'Skin Edit'.Returns the result of interpreting the object as an instance of 'Skin Element With Customization'.caseSkinFlowchart(SkinFlowchart object) Returns the result of interpreting the object as an instance of 'Skin Flowchart'.caseSkinForm(SkinForm object) Returns the result of interpreting the object as an instance of 'Skin Form'.caseSkinFormattedDoc(SkinFormattedDoc object) Returns the result of interpreting the object as an instance of 'Skin Formatted Doc'.Returns the result of interpreting the object as an instance of 'Skin Geographical Map'.caseSkinGroupBox(SkinGroupBox object) Returns the result of interpreting the object as an instance of 'Skin Group Box'.caseSkinHTML(SkinHTML object) Returns the result of interpreting the object as an instance of 'Skin HTML'.caseSkinImage(SkinImage object) Returns the result of interpreting the object as an instance of 'Skin Image'.caseSkinLogicGroup(SkinLogicGroup object) Returns the result of interpreting the object as an instance of 'Skin Logic Group'.caseSkinMoxel(SkinMoxel object) Returns the result of interpreting the object as an instance of 'Skin Moxel'.caseSkinPage(SkinPage object) Returns the result of interpreting the object as an instance of 'Skin Page'.caseSkinPages(SkinPages object) Returns the result of interpreting the object as an instance of 'Skin Pages'.caseSkinPanel(SkinPanel object) Returns the result of interpreting the object as an instance of 'Skin Panel'.caseSkinPDFDocument(SkinPDFDocument object) Returns the result of interpreting the object as an instance of 'Skin PDF Document'.caseSkinPeriod(SkinPeriod object) Returns the result of interpreting the object as an instance of 'Skin Period'.caseSkinProgressBar(SkinProgressBar object) Returns the result of interpreting the object as an instance of 'Skin Progress Bar'.caseSkinRadioButton(SkinRadioButton object) Returns the result of interpreting the object as an instance of 'Skin Radio Button'.caseSkinRadioGroup(SkinRadioGroup object) Returns the result of interpreting the object as an instance of 'Skin Radio Group'.caseSkinStaticText(SkinStaticText object) Returns the result of interpreting the object as an instance of 'Skin Static Text'.caseSkinStub(SkinStub object) Returns the result of interpreting the object as an instance of 'Skin Stub'.caseSkinSubMenu(SkinSubMenu object) Returns the result of interpreting the object as an instance of 'Skin Sub Menu'.caseSkinSwitcher(SkinSwitcher object) Returns the result of interpreting the object as an instance of 'Skin Switcher'.caseSkinTable(SkinTable object) Returns the result of interpreting the object as an instance of 'Skin Table'.caseSkinTableColumn(SkinTableColumn object) Returns the result of interpreting the object as an instance of 'Skin Table Column'.Returns the result of interpreting the object as an instance of 'Skin Table Columns Group'.caseSkinTextDoc(SkinTextDoc object) Returns the result of interpreting the object as an instance of 'Skin Text Doc'.caseSkinTrackBar(SkinTrackBar object) Returns the result of interpreting the object as an instance of 'Skin Track Bar'.caseSkinTumbler(SkinTumbler object) Returns the result of interpreting the object as an instance of 'Skin Tumbler'.caseSkinViewStatus(SkinViewStatus object) Returns the result of interpreting the object as an instance of 'Skin View Status'.caseThemeMargin(ThemeMargin object) Returns the result of interpreting the object as an instance of 'Margin'.caseThemePadding(ThemePadding object) Returns the result of interpreting the object as an instance of 'Padding'.caseThemeSize(ThemeSize object) Returns the result of interpreting the object as an instance of 'Size'.caseThemeSkin(ThemeSkin object) Returns the result of interpreting the object as an instance of 'Skin'.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
-
ThemeSwitch
public ThemeSwitch()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.
-
caseThemeSize
Returns the result of interpreting the object as an instance of 'Size'. 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 'Size'.
- See Also:
-
doSwitch(EObject)
-
caseThemeMargin
Returns the result of interpreting the object as an instance of 'Margin'. 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 'Margin'.
- See Also:
-
doSwitch(EObject)
-
caseThemePadding
Returns the result of interpreting the object as an instance of 'Padding'. 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 'Padding'.
- See Also:
-
doSwitch(EObject)
-
caseHippoTheme
Returns the result of interpreting the object as an instance of 'Hippo Theme'. 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 'Hippo Theme'.
- See Also:
-
doSwitch(EObject)
-
caseThemeSkin
Returns the result of interpreting the object as an instance of 'Skin'. 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 'Skin'.
- See Also:
-
doSwitch(EObject)
-
caseSkinForm
Returns the result of interpreting the object as an instance of 'Skin Form'. 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 'Skin Form'.
- See Also:
-
doSwitch(EObject)
-
caseISkinElementWithFont
Returns the result of interpreting the object as an instance of 'ISkin Element With Font'. 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 'ISkin Element With Font'.
- See Also:
-
doSwitch(EObject)
-
caseISkinElementWithBackColor
Returns the result of interpreting the object as an instance of 'ISkin Element With Back Color'. 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 'ISkin Element With Back Color'.
- See Also:
-
doSwitch(EObject)
-
caseISkinElementWithTextColor
Returns the result of interpreting the object as an instance of 'ISkin Element With Text Color'. 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 'ISkin Element With Text Color'.
- See Also:
-
doSwitch(EObject)
-
caseISkinElementWithBorderColor
Returns the result of interpreting the object as an instance of 'ISkin Element With Border Color'. 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 'ISkin Element With Border Color'.
- See Also:
-
doSwitch(EObject)
-
caseISkinElementWithShadow
Returns the result of interpreting the object as an instance of 'ISkin Element With Shadow'. 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 'ISkin Element With Shadow'.
- See Also:
-
doSwitch(EObject)
-
caseSkinElementWithCustomization
Returns the result of interpreting the object as an instance of 'Skin Element With Customization'. 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 'Skin Element With Customization'.
- See Also:
-
doSwitch(EObject)
-
caseSkinPage
Returns the result of interpreting the object as an instance of 'Skin Page'. 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 'Skin Page'.
- See Also:
-
doSwitch(EObject)
-
caseSkinPanel
Returns the result of interpreting the object as an instance of 'Skin Panel'. 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 'Skin Panel'.
- See Also:
-
doSwitch(EObject)
-
caseSkinTableColumnsGroup
Returns the result of interpreting the object as an instance of 'Skin Table Columns 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 'Skin Table Columns Group'.
- See Also:
-
doSwitch(EObject)
-
caseSkinTableColumn
Returns the result of interpreting the object as an instance of 'Skin Table Column'. 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 'Skin Table Column'.
- See Also:
-
doSwitch(EObject)
-
caseSkinEdit
Returns the result of interpreting the object as an instance of 'Skin Edit'. 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 'Skin Edit'.
- See Also:
-
doSwitch(EObject)
-
caseSkinSubMenu
Returns the result of interpreting the object as an instance of 'Skin Sub Menu'. 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 'Skin Sub Menu'.
- See Also:
-
doSwitch(EObject)
-
caseSkinCommand
Returns the result of interpreting the object as an instance of 'Skin Command'. 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 'Skin Command'.
- See Also:
-
doSwitch(EObject)
-
caseSkinCommandBar
Returns the result of interpreting the object as an instance of 'Skin Command Bar'. 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 'Skin Command Bar'.
- See Also:
-
doSwitch(EObject)
-
caseSkinLogicGroup
Returns the result of interpreting the object as an instance of 'Skin Logic 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 'Skin Logic Group'.
- See Also:
-
doSwitch(EObject)
-
caseSkinPages
Returns the result of interpreting the object as an instance of 'Skin Pages'. 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 'Skin Pages'.
- See Also:
-
doSwitch(EObject)
-
caseSkinTable
Returns the result of interpreting the object as an instance of 'Skin Table'. 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 'Skin Table'.
- See Also:
-
doSwitch(EObject)
-
caseSkinStaticText
Returns the result of interpreting the object as an instance of 'Skin Static 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 'Skin Static Text'.
- See Also:
-
doSwitch(EObject)
-
caseSkinCalendar
Returns the result of interpreting the object as an instance of 'Skin Calendar'. 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 'Skin Calendar'.
- See Also:
-
doSwitch(EObject)
-
caseSkinCheckBox
Returns the result of interpreting the object as an instance of 'Skin Check Box'. 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 'Skin Check Box'.
- See Also:
-
doSwitch(EObject)
-
caseSkinFlowchart
Returns the result of interpreting the object as an instance of 'Skin Flowchart'. 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 'Skin Flowchart'.
- See Also:
-
doSwitch(EObject)
-
caseSkinFormattedDoc
Returns the result of interpreting the object as an instance of 'Skin Formatted Doc'. 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 'Skin Formatted Doc'.
- See Also:
-
doSwitch(EObject)
-
caseSkinButton
Returns the result of interpreting the object as an instance of 'Skin 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 'Skin Button'.
- See Also:
-
doSwitch(EObject)
-
caseSkinGeographicalMap
Returns the result of interpreting the object as an instance of 'Skin Geographical Map'. 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 'Skin Geographical Map'.
- See Also:
-
doSwitch(EObject)
-
caseSkinHTML
Returns the result of interpreting the object as an instance of 'Skin HTML'. 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 'Skin HTML'.
- See Also:
-
doSwitch(EObject)
-
caseSkinTumbler
Returns the result of interpreting the object as an instance of 'Skin Tumbler'. 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 'Skin Tumbler'.
- See Also:
-
doSwitch(EObject)
-
caseSkinSwitcher
Returns the result of interpreting the object as an instance of 'Skin Switcher'. 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 'Skin Switcher'.
- See Also:
-
doSwitch(EObject)
-
caseSkinImage
Returns the result of interpreting the object as an instance of 'Skin 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 'Skin Image'.
- See Also:
-
doSwitch(EObject)
-
caseSkinMoxel
Returns the result of interpreting the object as an instance of 'Skin Moxel'. 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 'Skin Moxel'.
- See Also:
-
doSwitch(EObject)
-
caseSkinRadioGroup
Returns the result of interpreting the object as an instance of 'Skin Radio 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 'Skin Radio Group'.
- See Also:
-
doSwitch(EObject)
-
caseSkinRadioButton
Returns the result of interpreting the object as an instance of 'Skin Radio 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 'Skin Radio Button'.
- See Also:
-
doSwitch(EObject)
-
caseSkinProgressBar
Returns the result of interpreting the object as an instance of 'Skin Progress Bar'. 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 'Skin Progress Bar'.
- See Also:
-
doSwitch(EObject)
-
caseSkinTrackBar
Returns the result of interpreting the object as an instance of 'Skin Track Bar'. 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 'Skin Track Bar'.
- See Also:
-
doSwitch(EObject)
-
caseSkinTextDoc
Returns the result of interpreting the object as an instance of 'Skin Text Doc'. 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 'Skin Text Doc'.
- See Also:
-
doSwitch(EObject)
-
caseSkinPeriod
Returns the result of interpreting the object as an instance of 'Skin Period'. 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 'Skin Period'.
- See Also:
-
doSwitch(EObject)
-
caseSkinViewStatus
Returns the result of interpreting the object as an instance of 'Skin View Status'. 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 'Skin View Status'.
- See Also:
-
doSwitch(EObject)
-
caseSkinGroupBox
Returns the result of interpreting the object as an instance of 'Skin Group Box'. 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 'Skin Group Box'.
- See Also:
-
doSwitch(EObject)
-
caseSkinBackObject
Returns the result of interpreting the object as an instance of 'Skin Back Object'. 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 'Skin Back Object'.
- See Also:
-
doSwitch(EObject)
-
caseSkinStub
Returns the result of interpreting the object as an instance of 'Skin Stub'. 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 'Skin Stub'.
- See Also:
-
doSwitch(EObject)
-
caseSkinPDFDocument
Returns the result of interpreting the object as an instance of 'Skin PDF Document'. 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 'Skin PDF Document'.
- 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:
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:
-
Switch.doSwitch(org.eclipse.emf.ecore.EObject)
-