public class BasicSwitch<T1>
extends <any>
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.
BasicPackageImpl| Modifier and Type | Field and Description |
|---|---|
protected static BasicPackageImpl |
modelPackage
The cached model package
|
| Constructor and Description |
|---|
BasicSwitch()
Creates an instance of the switch
|
| Modifier and Type | Method and Description |
|---|---|
T1 |
caseApplicationElement(MApplicationElement object)
Returns the result of interpreting the object as an instance of 'Element'
|
T1 |
caseBindings(MBindings object)
Returns the result of interpreting the object as an instance of 'Bindings'
|
T1 |
caseCompositePart(MCompositePart object)
Returns the result of interpreting the object as an instance of 'Composite Part'
|
T1 |
caseContext(MContext object)
Returns the result of interpreting the object as an instance of 'Context'
|
T1 |
caseContribution(MContribution object)
Returns the result of interpreting the object as an instance of 'Contribution'
|
T1 |
caseDialog(MDialog object)
Returns the result of interpreting the object as an instance of 'Dialog'
|
T1 |
caseDirtyable(MDirtyable object)
Returns the result of interpreting the object as an instance of 'Dirtyable'
|
<T extends MUIElement> |
caseElementContainer(MElementContainer<T> object)
Returns the result of interpreting the object as an instance of 'Element Container'
|
<T extends MUIElement> |
caseGenericStack(MGenericStack<T> object)
Returns the result of interpreting the object as an instance of 'Generic Stack'
|
<T extends MUIElement> |
caseGenericTile(MGenericTile<T> object)
Returns the result of interpreting the object as an instance of 'Generic Tile'
|
<T extends MUIElement> |
caseGenericTrimContainer(MGenericTrimContainer<T> object)
Returns the result of interpreting the object as an instance of 'Generic Trim Container'
|
T1 |
caseHandlerContainer(MHandlerContainer object)
Returns the result of interpreting the object as an instance of 'Handler Container'
|
T1 |
caseInput(MInput object)
Returns the result of interpreting the object as an instance of 'Input'
|
T1 |
caseInputPart(MInputPart object)
Returns the result of interpreting the object as an instance of 'Input Part'
|
T1 |
caseLocalizable(MLocalizable object)
Returns the result of interpreting the object as an instance of 'Localizable'
|
T1 |
casePart(MPart object)
Returns the result of interpreting the object as an instance of 'Part'
|
T1 |
casePartSashContainer(MPartSashContainer object)
Returns the result of interpreting the object as an instance of 'Part Sash Container'
|
T1 |
casePartSashContainerElement(MPartSashContainerElement object)
Returns the result of interpreting the object as an instance of 'Part Sash Container Element'
|
T1 |
casePartStack(MPartStack object)
Returns the result of interpreting the object as an instance of 'Part Stack'
|
T1 |
caseSnippetContainer(MSnippetContainer object)
Returns the result of interpreting the object as an instance of 'Snippet Container'
|
T1 |
caseStackElement(MStackElement object)
Returns the result of interpreting the object as an instance of 'Stack Element'
|
T1 |
caseTrimBar(MTrimBar object)
Returns the result of interpreting the object as an instance of 'Trim Bar'
|
T1 |
caseTrimElement(MTrimElement object)
Returns the result of interpreting the object as an instance of 'Trim Element'
|
T1 |
caseTrimmedWindow(MTrimmedWindow object)
Returns the result of interpreting the object as an instance of 'Trimmed Window'
|
T1 |
caseUIElement(MUIElement object)
Returns the result of interpreting the object as an instance of 'UI Element'
|
T1 |
caseUILabel(MUILabel object)
Returns the result of interpreting the object as an instance of 'UI Label'
|
T1 |
caseWindow(MWindow object)
Returns the result of interpreting the object as an instance of 'Window'
|
T1 |
caseWindowElement(MWindowElement object)
Returns the result of interpreting the object as an instance of 'Window Element'
|
T1 |
caseWizardDialog(MWizardDialog object)
Returns the result of interpreting the object as an instance of 'Wizard Dialog'
|
T1 |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'
|
protected T1 |
doSwitch(int classifierID,
EObject theEObject)
Calls
caseXXX for each class of the model until one returns a non null result; it yields that result |
protected boolean |
isSwitchFor(EPackage ePackage)
Checks whether this is a switch for the given package
|
protected static BasicPackageImpl modelPackage
protected boolean isSwitchFor(EPackage ePackage)
ePackage - the package in question.protected T1 doSwitch(int classifierID, EObject theEObject)
caseXXX for each class of the model until one returns a non null result; it yields that result.
caseXXX call.public T1 casePart(MPart object)
object - the target of the switch.doSwitch(EObject)public T1 caseCompositePart(MCompositePart object)
object - the target of the switch.doSwitch(EObject)public T1 caseInputPart(MInputPart object)
object - the target of the switch.doSwitch(EObject)public T1 casePartStack(MPartStack object)
object - the target of the switch.doSwitch(EObject)public T1 casePartSashContainer(MPartSashContainer object)
object - the target of the switch.doSwitch(EObject)public T1 caseWindow(MWindow object)
object - the target of the switch.doSwitch(EObject)public T1 caseTrimmedWindow(MTrimmedWindow object)
object - the target of the switch.doSwitch(EObject)public T1 caseTrimElement(MTrimElement object)
object - the target of the switch.doSwitch(EObject)public T1 casePartSashContainerElement(MPartSashContainerElement object)
object - the target of the switch.doSwitch(EObject)public T1 caseWindowElement(MWindowElement object)
object - the target of the switch.doSwitch(EObject)public T1 caseTrimBar(MTrimBar object)
object - the target of the switch.doSwitch(EObject)public T1 caseStackElement(MStackElement object)
object - the target of the switch.doSwitch(EObject)public T1 caseDialog(MDialog object)
object - the target of the switch.doSwitch(EObject)public T1 caseWizardDialog(MWizardDialog object)
object - the target of the switch.doSwitch(EObject)public T1 caseApplicationElement(MApplicationElement object)
object - the target of the switch.doSwitch(EObject)public T1 caseContribution(MContribution object)
object - the target of the switch.doSwitch(EObject)public T1 caseContext(MContext object)
object - the target of the switch.doSwitch(EObject)public T1 caseUIElement(MUIElement object)
object - the target of the switch.doSwitch(EObject)public T1 caseUILabel(MUILabel object)
object - the target of the switch.doSwitch(EObject)public T1 caseHandlerContainer(MHandlerContainer object)
object - the target of the switch.doSwitch(EObject)public T1 caseDirtyable(MDirtyable object)
object - the target of the switch.doSwitch(EObject)public T1 caseBindings(MBindings object)
object - the target of the switch.doSwitch(EObject)public T1 caseLocalizable(MLocalizable object)
object - the target of the switch.doSwitch(EObject)public T1 caseInput(MInput object)
object - the target of the switch.doSwitch(EObject)public <T extends MUIElement> T1 caseElementContainer(MElementContainer<T> object)
object - the target of the switch.doSwitch(EObject)public <T extends MUIElement> T1 caseGenericStack(MGenericStack<T> object)
object - the target of the switch.doSwitch(EObject)public <T extends MUIElement> T1 caseGenericTile(MGenericTile<T> object)
object - the target of the switch.doSwitch(EObject)public T1 caseSnippetContainer(MSnippetContainer object)
object - the target of the switch.doSwitch(EObject)public <T extends MUIElement> T1 caseGenericTrimContainer(MGenericTrimContainer<T> object)
object - the target of the switch.doSwitch(EObject)public T1 defaultCase(EObject object)
object - the target of the switch.#doSwitch(org.eclipse.emf.ecore.EObject)