public class SetupSwitch<T> extends Switch<T>
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.
SetupPackage
Modifier and Type | Field and Description |
---|---|
protected static SetupPackage |
modelPackage
The cached model package
|
Constructor and Description |
---|
SetupSwitch()
Creates an instance of the switch.
|
Modifier and Type | Method and Description |
---|---|
T |
caseAttributeRule(AttributeRule object)
Returns the result of interpreting the object as an instance of 'Attribute Rule'.
|
T |
caseCatalogSelection(CatalogSelection object)
Returns the result of interpreting the object as an instance of 'Catalog Selection'.
|
T |
caseCompoundTask(CompoundTask object)
Returns the result of interpreting the object as an instance of 'Compound Task'.
|
T |
caseEclipseIniTask(EclipseIniTask object)
Returns the result of interpreting the object as an instance of 'Eclipse Ini Task'.
|
T |
caseIndex(Index object)
Returns the result of interpreting the object as an instance of 'Index'.
|
T |
caseInstallation(Installation object)
Returns the result of interpreting the object as an instance of 'Installation'.
|
T |
caseInstallationTask(InstallationTask object)
Returns the result of interpreting the object as an instance of 'Installation Task'.
|
T |
caseInstallationToWorkspacesMapEntry(Map.Entry<Installation,EList<Workspace>> object)
Returns the result of interpreting the object as an instance of 'Installation To Workspaces Map Entry'.
|
T |
caseLinkLocationTask(LinkLocationTask object)
Returns the result of interpreting the object as an instance of 'Link Location Task'.
|
T |
caseLocationCatalog(LocationCatalog object)
Returns the result of interpreting the object as an instance of 'Location Catalog'.
|
T |
caseModelElement(ModelElement object)
Returns the result of interpreting the object as an instance of 'Model Element'.
|
T |
casePreferenceTask(PreferenceTask object)
Returns the result of interpreting the object as an instance of 'Preference Task'.
|
T |
caseProduct(Product object)
Returns the result of interpreting the object as an instance of 'Product'.
|
T |
caseProductCatalog(ProductCatalog object)
Returns the result of interpreting the object as an instance of 'Product Catalog'.
|
T |
caseProductToProductVersionMapEntry(Map.Entry<Product,ProductVersion> object)
Returns the result of interpreting the object as an instance of 'Product To Product Version Map Entry'.
|
T |
caseProductVersion(ProductVersion object)
Returns the result of interpreting the object as an instance of 'Product Version'.
|
T |
caseProject(Project object)
Returns the result of interpreting the object as an instance of 'Project'.
|
T |
caseProjectCatalog(ProjectCatalog object)
Returns the result of interpreting the object as an instance of 'Project Catalog'.
|
T |
caseProjectContainer(ProjectContainer object)
Returns the result of interpreting the object as an instance of 'Project Container'.
|
T |
caseProjectToStreamMapEntry(Map.Entry<Project,Stream> object)
Returns the result of interpreting the object as an instance of 'Project To Stream Map Entry'.
|
T |
caseRedirectionTask(RedirectionTask object)
Returns the result of interpreting the object as an instance of 'Redirection Task'.
|
T |
caseResourceCopyTask(ResourceCopyTask object)
Returns the result of interpreting the object as an instance of 'Resource Copy Task'.
|
T |
caseResourceCreationTask(ResourceCreationTask object)
Returns the result of interpreting the object as an instance of 'Resource Creation Task'.
|
T |
caseScope(Scope object)
Returns the result of interpreting the object as an instance of 'Scope'.
|
T |
caseSetupTask(SetupTask object)
Returns the result of interpreting the object as an instance of 'Task'.
|
T |
caseSetupTaskContainer(SetupTaskContainer object)
Returns the result of interpreting the object as an instance of 'Task Container'.
|
T |
caseStream(Stream object)
Returns the result of interpreting the object as an instance of 'Stream'.
|
T |
caseStringSubstitutionTask(StringSubstitutionTask object)
Returns the result of interpreting the object as an instance of 'String Substitution Task'.
|
T |
caseTextModification(TextModification object)
Returns the result of interpreting the object as an instance of 'Text Modification'.
|
T |
caseTextModifyTask(TextModifyTask object)
Returns the result of interpreting the object as an instance of 'Text Modify Task'.
|
T |
caseUser(User object)
Returns the result of interpreting the object as an instance of 'User'.
|
T |
caseVariableChoice(VariableChoice object)
Returns the result of interpreting the object as an instance of 'Variable Choice'.
|
T |
caseVariableTask(VariableTask object)
Returns the result of interpreting the object as an instance of 'Variable Task'.
|
T |
caseWorkspace(Workspace object)
Returns the result of interpreting the object as an instance of 'Workspace'.
|
T |
caseWorkspaceTask(WorkspaceTask object)
Returns the result of interpreting the object as an instance of 'Workspace Task'.
|
T |
caseWorkspaceToInstallationsMapEntry(Map.Entry<Workspace,EList<Installation>> object)
Returns the result of interpreting the object as an instance of 'Workspace To Installations Map Entry'.
|
T |
defaultCase(EObject object)
Returns the result of interpreting the object as an instance of 'EObject'.
|
protected T |
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 SetupPackage modelPackage
protected boolean isSwitchFor(EPackage ePackage)
isSwitchFor
in class Switch<T>
protected T doSwitch(int classifierID, EObject theEObject)
caseXXX
for each class of the model until one returns a non null result; it yields that result.
public T caseIndex(Index object)
object
- the target of the switch.doSwitch(EObject)
public T caseCatalogSelection(CatalogSelection object)
object
- the target of the switch.doSwitch(EObject)
public T caseWorkspace(Workspace object)
object
- the target of the switch.doSwitch(EObject)
public T caseLinkLocationTask(LinkLocationTask object)
object
- the target of the switch.doSwitch(EObject)
public T casePreferenceTask(PreferenceTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseSetupTaskContainer(SetupTaskContainer object)
object
- the target of the switch.doSwitch(EObject)
public T caseScope(Scope object)
object
- the target of the switch.doSwitch(EObject)
public T caseProject(Project object)
object
- the target of the switch.doSwitch(EObject)
public T caseStream(Stream object)
object
- the target of the switch.doSwitch(EObject)
public T caseInstallation(Installation object)
object
- the target of the switch.doSwitch(EObject)
public T caseProductCatalog(ProductCatalog object)
object
- the target of the switch.doSwitch(EObject)
public T caseProduct(Product object)
object
- the target of the switch.doSwitch(EObject)
public T caseProductVersion(ProductVersion object)
object
- the target of the switch.doSwitch(EObject)
public T caseProjectCatalog(ProjectCatalog object)
object
- the target of the switch.doSwitch(EObject)
public T caseInstallationTask(InstallationTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseWorkspaceTask(WorkspaceTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseCompoundTask(CompoundTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseVariableTask(VariableTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseSetupTask(SetupTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseResourceCopyTask(ResourceCopyTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseTextModifyTask(TextModifyTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseTextModification(TextModification object)
object
- the target of the switch.doSwitch(EObject)
public T caseProductToProductVersionMapEntry(Map.Entry<Product,ProductVersion> object)
object
- the target of the switch.doSwitch(EObject)
public T caseProjectToStreamMapEntry(Map.Entry<Project,Stream> object)
object
- the target of the switch.doSwitch(EObject)
public T caseInstallationToWorkspacesMapEntry(Map.Entry<Installation,EList<Workspace>> object)
object
- the target of the switch.doSwitch(EObject)
public T caseWorkspaceToInstallationsMapEntry(Map.Entry<Workspace,EList<Installation>> object)
object
- the target of the switch.doSwitch(EObject)
public T caseModelElement(ModelElement object)
object
- the target of the switch.doSwitch(EObject)
public T caseStringSubstitutionTask(StringSubstitutionTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseProjectContainer(ProjectContainer object)
object
- the target of the switch.doSwitch(EObject)
public T caseAttributeRule(AttributeRule object)
object
- the target of the switch.doSwitch(EObject)
public T caseLocationCatalog(LocationCatalog object)
object
- the target of the switch.doSwitch(EObject)
public T caseRedirectionTask(RedirectionTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseVariableChoice(VariableChoice object)
object
- the target of the switch.doSwitch(EObject)
public T caseResourceCreationTask(ResourceCreationTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseEclipseIniTask(EclipseIniTask object)
object
- the target of the switch.doSwitch(EObject)
public T caseUser(User object)
object
- the target of the switch.doSwitch(EObject)
public T defaultCase(EObject object)
defaultCase
in class Switch<T>
object
- the target of the switch.Switch.doSwitch(org.eclipse.emf.ecore.EObject)
Copyright (c) 2014 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html