org.eclipse.gmf.tooldef.util
Class GMFToolSwitch<T>
java.lang.Object
org.eclipse.gmf.tooldef.util.GMFToolSwitch<T>
-
public class GMFToolSwitch<T>
- extends java.lang.Object
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:
-
GMFToolPackage
-
** Generated **
-
Constructor Summary
|
GMFToolSwitch
()
Creates an instance of the switch |
Method Summary
|
T
|
caseAbstractTool
(
AbstractTool object)
Returns the result of interpretting the object as an instance of 'Abstract Tool' |
T
|
caseBundleImage
(
BundleImage object)
Returns the result of interpretting the object as an instance of 'Bundle Image' |
T
|
caseContextMenu
(
ContextMenu object)
Returns the result of interpretting the object as an instance of 'Context Menu' |
T
|
caseContributionItem
(
ContributionItem object)
Returns the result of interpretting the object as an instance of 'Contribution Item' |
T
|
caseCreationTool
(
CreationTool object)
Returns the result of interpretting the object as an instance of 'Creation Tool' |
T
|
caseDefaultImage
(
DefaultImage object)
Returns the result of interpretting the object as an instance of 'Default Image' |
T
|
caseGenericStyleSelector
(
GenericStyleSelector object)
Returns the result of interpretting the object as an instance of 'Generic Style Selector' |
T
|
caseGenericTool
(
GenericTool object)
Returns the result of interpretting the object as an instance of 'Generic Tool' |
T
|
caseImage
(
Image object)
Returns the result of interpretting the object as an instance of 'Image' |
T
|
caseItemBase
(
ItemBase object)
Returns the result of interpretting the object as an instance of 'Item Base' |
T
|
caseItemRef
(
ItemRef object)
Returns the result of interpretting the object as an instance of 'Item Ref' |
T
|
caseMainMenu
(
MainMenu object)
Returns the result of interpretting the object as an instance of 'Main Menu' |
T
|
caseMenu
(
Menu object)
Returns the result of interpretting the object as an instance of 'Menu' |
T
|
caseMenuAction
(
MenuAction object)
Returns the result of interpretting the object as an instance of 'Menu Action' |
T
|
casePalette
(
Palette object)
Returns the result of interpretting the object as an instance of 'Palette' |
T
|
casePaletteSeparator
(
PaletteSeparator object)
Returns the result of interpretting the object as an instance of 'Palette Separator' |
T
|
casePopupMenu
(
PopupMenu object)
Returns the result of interpretting the object as an instance of 'Popup Menu' |
T
|
casePredefinedItem
(
PredefinedItem object)
Returns the result of interpretting the object as an instance of 'Predefined Item' |
T
|
casePredefinedMenu
(
PredefinedMenu object)
Returns the result of interpretting the object as an instance of 'Predefined Menu' |
T
|
caseSeparator
(
Separator object)
Returns the result of interpretting the object as an instance of 'Separator' |
T
|
caseStandardTool
(
StandardTool object)
Returns the result of interpretting the object as an instance of 'Standard Tool' |
T
|
caseStyleSelector
(
StyleSelector object)
Returns the result of interpretting the object as an instance of 'Style Selector' |
T
|
caseToolbar
(
Toolbar object)
Returns the result of interpretting the object as an instance of 'Toolbar' |
T
|
caseToolContainer
(
ToolContainer object)
Returns the result of interpretting the object as an instance of 'Tool Container' |
T
|
caseToolGroup
(
ToolGroup object)
Returns the result of interpretting the object as an instance of 'Tool Group' |
T
|
caseToolRegistry
(
ToolRegistry object)
Returns the result of interpretting the object as an instance of 'Tool Registry' |
T
|
defaultCase
(org.eclipse.emf.ecore.EObject object)
Returns the result of interpretting the object as an instance of 'EObject' |
protected
T
|
doSwitch
(org.eclipse.emf.ecore.EClass theEClass,
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 |
T
|
doSwitch
(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 |
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 |
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
modelPackage
protected static
GMFToolPackage modelPackage
- The cached model package
-
** Generated **
-
GMFToolSwitch
public GMFToolSwitch()
- Creates an instance of the switch.
-
** Generated **
-
doSwitch
public
T doSwitch(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.
-
-
Returns:
- the first non-null result returned by a
caseXXX
call. -
** Generated **
-
doSwitch
protected
T doSwitch(org.eclipse.emf.ecore.EClass theEClass,
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.
-
-
Returns:
- the first non-null result returned by a
caseXXX
call. -
** Generated **
-
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.
-
-
Returns:
- the first non-null result returned by a
caseXXX
call. -
** Generated **
-
caseToolRegistry
public
T caseToolRegistry(
ToolRegistry object)
- Returns the result of interpretting the object as an instance of 'Tool Registry'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Tool Registry'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseAbstractTool
public
T caseAbstractTool(
AbstractTool object)
- Returns the result of interpretting the object as an instance of 'Abstract Tool'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Abstract Tool'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseToolContainer
public
T caseToolContainer(
ToolContainer object)
- Returns the result of interpretting the object as an instance of 'Tool Container'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Tool Container'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
casePaletteSeparator
public
T casePaletteSeparator(
PaletteSeparator object)
- Returns the result of interpretting the object as an instance of 'Palette Separator'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Palette Separator'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseToolGroup
public
T caseToolGroup(
ToolGroup object)
- Returns the result of interpretting the object as an instance of 'Tool 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 interpretting the object as an instance of 'Tool Group'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
casePalette
public
T casePalette(
Palette object)
- Returns the result of interpretting the object as an instance of 'Palette'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Palette'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseStandardTool
public
T caseStandardTool(
StandardTool object)
- Returns the result of interpretting the object as an instance of 'Standard Tool'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Standard Tool'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseCreationTool
public
T caseCreationTool(
CreationTool object)
- Returns the result of interpretting the object as an instance of 'Creation Tool'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Creation Tool'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseGenericTool
public
T caseGenericTool(
GenericTool object)
- Returns the result of interpretting the object as an instance of 'Generic Tool'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Generic Tool'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseItemBase
public
T caseItemBase(
ItemBase object)
- Returns the result of interpretting the object as an instance of 'Item Base'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Item Base'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseMenu
public
T caseMenu(
Menu object)
- Returns the result of interpretting the object as an instance of '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 interpretting the object as an instance of 'Menu'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseSeparator
public
T caseSeparator(
Separator object)
- Returns the result of interpretting the object as an instance of 'Separator'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Separator'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
casePredefinedItem
public
T casePredefinedItem(
PredefinedItem object)
- Returns the result of interpretting the object as an instance of 'Predefined 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 interpretting the object as an instance of 'Predefined Item'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
casePredefinedMenu
public
T casePredefinedMenu(
PredefinedMenu object)
- Returns the result of interpretting the object as an instance of 'Predefined 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 interpretting the object as an instance of 'Predefined Menu'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseContributionItem
public
T caseContributionItem(
ContributionItem object)
- Returns the result of interpretting the object as an instance of 'Contribution 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 interpretting the object as an instance of 'Contribution Item'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseMenuAction
public
T caseMenuAction(
MenuAction object)
- Returns the result of interpretting the object as an instance of 'Menu Action'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Menu Action'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseItemRef
public
T caseItemRef(
ItemRef object)
- Returns the result of interpretting the object as an instance of 'Item Ref'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Item Ref'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseContextMenu
public
T caseContextMenu(
ContextMenu object)
- Returns the result of interpretting the object as an instance of 'Context 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 interpretting the object as an instance of 'Context Menu'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
casePopupMenu
public
T casePopupMenu(
PopupMenu object)
- Returns the result of interpretting the object as an instance of 'Popup 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 interpretting the object as an instance of 'Popup Menu'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseMainMenu
public
T caseMainMenu(
MainMenu object)
- Returns the result of interpretting the object as an instance of 'Main 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 interpretting the object as an instance of 'Main Menu'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseToolbar
public
T caseToolbar(
Toolbar object)
- Returns the result of interpretting the object as an instance of 'Toolbar'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Toolbar'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseImage
public
T caseImage(
Image object)
- Returns the result of interpretting 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 interpretting the object as an instance of 'Image'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseDefaultImage
public
T caseDefaultImage(
DefaultImage object)
- Returns the result of interpretting the object as an instance of 'Default 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 interpretting the object as an instance of 'Default Image'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseBundleImage
public
T caseBundleImage(
BundleImage object)
- Returns the result of interpretting the object as an instance of 'Bundle 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 interpretting the object as an instance of 'Bundle Image'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseStyleSelector
public
T caseStyleSelector(
StyleSelector object)
- Returns the result of interpretting the object as an instance of 'Style Selector'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Style Selector'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
caseGenericStyleSelector
public
T caseGenericStyleSelector(
GenericStyleSelector object)
- Returns the result of interpretting the object as an instance of 'Generic Style Selector'.
This implementation returns null;
returning a non-null result will terminate the switch.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'Generic Style Selector'.
-
See Also:
-
doSwitch(EObject)
-
** Generated **
-
defaultCase
public
T defaultCase(org.eclipse.emf.ecore.EObject object)
- Returns the result of interpretting 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.
-
-
Parameters:
-
object
- the target of the switch.
-
Returns:
- the result of interpretting the object as an instance of 'EObject'.
-
See Also:
-
doSwitch(org.eclipse.emf.ecore.EObject)
-
** Generated **
-
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.