Class DtAefSwitch<T1>
- java.lang.Object
-
- org.eclipse.emf.ecore.util.Switch<T1>
-
- com._1c.g5.v8.dt.ui.aef.viewModels.util.DtAefSwitch<T1>
-
public class DtAefSwitch<T1> extends org.eclipse.emf.ecore.util.Switch<T1>
The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)
to invoke thecaseXXX
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:
DtAefPackage
-
-
Field Summary
Fields Modifier and Type Field Description protected static DtAefPackage
modelPackage
The cached model package
-
Constructor Summary
Constructors Constructor Description DtAefSwitch()
Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T1
caseAbstractSpinnerViewModel(AbstractSpinnerViewModel object)
Returns the result of interpreting the object as an instance of 'Abstract Spinner View Model'.T1
caseActionBarViewModel(ActionBarViewModel object)
Returns the result of interpreting the object as an instance of 'Action Bar View Model'.T1
caseButtonItemViewModel(ButtonItemViewModel object)
Returns the result of interpreting the object as an instance of 'Button Item View Model'.T1
caseColorActionBarViewModel(ColorActionBarViewModel object)
Returns the result of interpreting the object as an instance of 'Color Action Bar View Model'.T1
caseColorViewModel(ColorViewModel object)
Returns the result of interpreting the object as an instance of 'Color View Model'.T1
caseComboSelectViewModel(ComboSelectViewModel object)
Returns the result of interpreting the object as an instance of 'Combo Select View Model'.T1
caseComboViewModel(ComboViewModel object)
Returns the result of interpreting the object as an instance of 'Combo View Model'.T1
caseCompositeControlViewModel(CompositeControlViewModel object)
Returns the result of interpreting the object as an instance of 'Composite Control View Model'.T1
caseCompositeViewModel(CompositeViewModel object)
Returns the result of interpreting the object as an instance of 'Composite View Model'.T1
caseControlViewModel(ControlViewModel object)
Returns the result of interpreting the object as an instance of 'Control View Model'.T1
caseDateControlViewModel(DateControlViewModel object)
Returns the result of interpreting the object as an instance of 'Date Control View Model'.<T extends IGridItem>
T1caseDynamicGridInput(DynamicGridInput<T> object)
Returns the result of interpreting the object as an instance of 'Dynamic Grid Input'.T1
caseEditableComboViewModel(EditableComboViewModel object)
Returns the result of interpreting the object as an instance of 'Editable Combo View Model'.T1
caseFontViewModel(FontViewModel object)
Returns the result of interpreting the object as an instance of 'Font View Model'.T1
caseGanttChartScalingViewModel(GanttChartScalingViewModel object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Scaling View Model'.T1
caseGridColumnViewModel(GridColumnViewModel object)
Returns the result of interpreting the object as an instance of 'Grid Column View Model'.T1
caseGridViewModel(GridViewModel object)
Returns the result of interpreting the object as an instance of 'Grid View Model'.T1
caseIContainerControlViewModel(IContainerControlViewModel object)
Returns the result of interpreting the object as an instance of 'IContainer Control View Model'.T1
caseIContainerViewModel(IContainerViewModel object)
Returns the result of interpreting the object as an instance of 'IContainer View Model'.T1
caseIControlViewModel(IControlViewModel object)
Returns the result of interpreting the object as an instance of 'IControl View Model'.T1
caseIGridInput(IGridInput object)
Returns the result of interpreting the object as an instance of 'IGrid Input'.T1
caseIGridItem(IGridItem object)
Returns the result of interpreting the object as an instance of 'IGrid Item'.T1
caseIViewModel(IViewModel object)
Returns the result of interpreting the object as an instance of 'IView Model'.T1
caseNullableSpinnerViewModel(NullableSpinnerViewModel object)
Returns the result of interpreting the object as an instance of 'Nullable Spinner View Model'.T1
casePictureViewModel(PictureViewModel object)
Returns the result of interpreting the object as an instance of 'Picture View Model'.T1
caseSelectViewModel(SelectViewModel object)
Returns the result of interpreting the object as an instance of 'Select View Model'.T1
caseShortcutViewModel(ShortcutViewModel object)
Returns the result of interpreting the object as an instance of 'Shortcut View Model'.T1
caseTabFolderViewModel(TabFolderViewModel object)
Returns the result of interpreting the object as an instance of 'Tab Folder View Model'.T1
caseTabItemViewModel(TabItemViewModel object)
Returns the result of interpreting the object as an instance of 'Tab Item View Model'.T1
caseTextPreviewControlViewModel(TextPreviewControlViewModel object)
Returns the result of interpreting the object as an instance of 'Text Preview Control View Model'.T1
caseToolBarItemViewModel(ToolBarItemViewModel object)
Returns the result of interpreting the object as an instance of 'Tool Bar Item View Model'.T1
caseToolBarViewModel(ToolBarViewModel object)
Returns the result of interpreting the object as an instance of 'Tool Bar View Model'.T1
defaultCase(org.eclipse.emf.ecore.EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.protected T1
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.
-
-
-
Field Detail
-
modelPackage
protected static DtAefPackage modelPackage
The cached model package
-
-
Method Detail
-
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<T1>
- Parameters:
ePackage
- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
protected T1 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.- Overrides:
doSwitch
in classorg.eclipse.emf.ecore.util.Switch<T1>
- Returns:
- the first non-null result returned by a
caseXXX
call.
-
caseButtonItemViewModel
public T1 caseButtonItemViewModel(ButtonItemViewModel object)
Returns the result of interpreting the object as an instance of 'Button Item View 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 'Button Item View Model'.
- See Also:
doSwitch(EObject)
-
caseSelectViewModel
public T1 caseSelectViewModel(SelectViewModel object)
Returns the result of interpreting the object as an instance of 'Select View 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 'Select View Model'.
- See Also:
doSwitch(EObject)
-
caseComboSelectViewModel
public T1 caseComboSelectViewModel(ComboSelectViewModel object)
Returns the result of interpreting the object as an instance of 'Combo Select View 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 'Combo Select View Model'.
- See Also:
doSwitch(EObject)
-
caseEditableComboViewModel
public T1 caseEditableComboViewModel(EditableComboViewModel object)
Returns the result of interpreting the object as an instance of 'Editable Combo View 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 'Editable Combo View Model'.
- See Also:
doSwitch(EObject)
-
caseActionBarViewModel
public T1 caseActionBarViewModel(ActionBarViewModel object)
Returns the result of interpreting the object as an instance of 'Action Bar View 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 'Action Bar View Model'.
- See Also:
doSwitch(EObject)
-
caseColorActionBarViewModel
public T1 caseColorActionBarViewModel(ColorActionBarViewModel object)
Returns the result of interpreting the object as an instance of 'Color Action Bar View 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 'Color Action Bar View Model'.
- See Also:
doSwitch(EObject)
-
caseShortcutViewModel
public T1 caseShortcutViewModel(ShortcutViewModel object)
Returns the result of interpreting the object as an instance of 'Shortcut View 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 'Shortcut View Model'.
- See Also:
doSwitch(EObject)
-
caseDateControlViewModel
public T1 caseDateControlViewModel(DateControlViewModel object)
Returns the result of interpreting the object as an instance of 'Date Control View 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 'Date Control View Model'.
- See Also:
doSwitch(EObject)
-
casePictureViewModel
public T1 casePictureViewModel(PictureViewModel object)
Returns the result of interpreting the object as an instance of 'Picture View 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 'Picture View Model'.
- See Also:
doSwitch(EObject)
-
caseNullableSpinnerViewModel
public T1 caseNullableSpinnerViewModel(NullableSpinnerViewModel object)
Returns the result of interpreting the object as an instance of 'Nullable Spinner View 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 'Nullable Spinner View Model'.
- See Also:
doSwitch(EObject)
-
caseToolBarItemViewModel
public T1 caseToolBarItemViewModel(ToolBarItemViewModel object)
Returns the result of interpreting the object as an instance of 'Tool Bar Item View 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 'Tool Bar Item View Model'.
- See Also:
doSwitch(EObject)
-
caseToolBarViewModel
public T1 caseToolBarViewModel(ToolBarViewModel object)
Returns the result of interpreting the object as an instance of 'Tool Bar View 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 'Tool Bar View Model'.
- See Also:
doSwitch(EObject)
-
caseIGridItem
public T1 caseIGridItem(IGridItem object)
Returns the result of interpreting the object as an instance of 'IGrid Item'. 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 'IGrid Item'.
- See Also:
doSwitch(EObject)
-
caseIGridInput
public T1 caseIGridInput(IGridInput object)
Returns the result of interpreting the object as an instance of 'IGrid 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 'IGrid Input'.
- See Also:
doSwitch(EObject)
-
caseDynamicGridInput
public <T extends IGridItem> T1 caseDynamicGridInput(DynamicGridInput<T> object)
Returns the result of interpreting the object as an instance of 'Dynamic Grid 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 'Dynamic Grid Input'.
- See Also:
doSwitch(EObject)
-
caseGridColumnViewModel
public T1 caseGridColumnViewModel(GridColumnViewModel object)
Returns the result of interpreting the object as an instance of 'Grid Column View 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 'Grid Column View Model'.
- See Also:
doSwitch(EObject)
-
caseGridViewModel
public T1 caseGridViewModel(GridViewModel object)
Returns the result of interpreting the object as an instance of 'Grid View 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 'Grid View Model'.
- See Also:
doSwitch(EObject)
-
caseColorViewModel
public T1 caseColorViewModel(ColorViewModel object)
Returns the result of interpreting the object as an instance of 'Color View 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 'Color View Model'.
- See Also:
doSwitch(EObject)
-
caseFontViewModel
public T1 caseFontViewModel(FontViewModel object)
Returns the result of interpreting the object as an instance of 'Font View 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 'Font View Model'.
- See Also:
doSwitch(EObject)
-
caseTextPreviewControlViewModel
public T1 caseTextPreviewControlViewModel(TextPreviewControlViewModel object)
Returns the result of interpreting the object as an instance of 'Text Preview Control View 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 'Text Preview Control View Model'.
- See Also:
doSwitch(EObject)
-
caseTabFolderViewModel
public T1 caseTabFolderViewModel(TabFolderViewModel object)
Returns the result of interpreting the object as an instance of 'Tab Folder View 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 'Tab Folder View Model'.
- See Also:
doSwitch(EObject)
-
caseTabItemViewModel
public T1 caseTabItemViewModel(TabItemViewModel object)
Returns the result of interpreting the object as an instance of 'Tab Item View 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 'Tab Item View Model'.
- See Also:
doSwitch(EObject)
-
caseGanttChartScalingViewModel
public T1 caseGanttChartScalingViewModel(GanttChartScalingViewModel object)
Returns the result of interpreting the object as an instance of 'Gantt Chart Scaling View 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 'Gantt Chart Scaling View Model'.
- See Also:
doSwitch(EObject)
-
caseIViewModel
public T1 caseIViewModel(IViewModel object)
Returns the result of interpreting the object as an instance of 'IView 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 'IView Model'.
- See Also:
doSwitch(EObject)
-
caseIControlViewModel
public T1 caseIControlViewModel(IControlViewModel object)
Returns the result of interpreting the object as an instance of 'IControl View 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 'IControl View Model'.
- See Also:
doSwitch(EObject)
-
caseControlViewModel
public T1 caseControlViewModel(ControlViewModel object)
Returns the result of interpreting the object as an instance of 'Control View 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 'Control View Model'.
- See Also:
doSwitch(EObject)
-
caseComboViewModel
public T1 caseComboViewModel(ComboViewModel object)
Returns the result of interpreting the object as an instance of 'Combo View 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 'Combo View Model'.
- See Also:
doSwitch(EObject)
-
caseAbstractSpinnerViewModel
public T1 caseAbstractSpinnerViewModel(AbstractSpinnerViewModel object)
Returns the result of interpreting the object as an instance of 'Abstract Spinner View 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 'Abstract Spinner View Model'.
- See Also:
doSwitch(EObject)
-
caseIContainerViewModel
public T1 caseIContainerViewModel(IContainerViewModel object)
Returns the result of interpreting the object as an instance of 'IContainer View 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 'IContainer View Model'.
- See Also:
doSwitch(EObject)
-
caseIContainerControlViewModel
public T1 caseIContainerControlViewModel(IContainerControlViewModel object)
Returns the result of interpreting the object as an instance of 'IContainer Control View 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 'IContainer Control View Model'.
- See Also:
doSwitch(EObject)
-
caseCompositeControlViewModel
public T1 caseCompositeControlViewModel(CompositeControlViewModel object)
Returns the result of interpreting the object as an instance of 'Composite Control View 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 'Composite Control View Model'.
- See Also:
doSwitch(EObject)
-
caseCompositeViewModel
public T1 caseCompositeViewModel(CompositeViewModel object)
Returns the result of interpreting the object as an instance of 'Composite View 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 'Composite View Model'.
- See Also:
doSwitch(EObject)
-
defaultCase
public T1 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 classorg.eclipse.emf.ecore.util.Switch<T1>
- 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)
-
-