org.eclipse.gmt.umlx.qvtoperational.util
Class QvtoperationalSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.umlx.qvtoperational.util.QvtoperationalSwitch<T>

public class QvtoperationalSwitch<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:
QvtoperationalPackage

Constructor Summary
QvtoperationalSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseCallExp(CallExp object)
          Returns the result of interpretting the object as an instance of 'Call Exp'.
 T caseClass(Class object)
          Returns the result of interpretting the object as an instance of 'Class'.
 T caseConstructor(Constructor object)
          Returns the result of interpretting the object as an instance of 'Constructor'.
 T caseConstructorBody(ConstructorBody object)
          Returns the result of interpretting the object as an instance of 'Constructor Body'.
 T caseContextualProperty(ContextualProperty object)
          Returns the result of interpretting the object as an instance of 'Contextual Property'.
 T caseElement(Element object)
          Returns the result of interpretting the object as an instance of 'Element'.
 T caseEntryOperation(EntryOperation object)
          Returns the result of interpretting the object as an instance of 'Entry Operation'.
 T caseExtent(Extent object)
          Returns the result of interpretting the object as an instance of 'Extent'.
 T caseFeaturePropertyCall(FeaturePropertyCall object)
          Returns the result of interpretting the object as an instance of 'Feature Property Call'.
 T caseHelper(Helper object)
          Returns the result of interpretting the object as an instance of 'Helper'.
 T caseImperativeCallExp(ImperativeCallExp object)
          Returns the result of interpretting the object as an instance of 'Imperative Call Exp'.
 T caseImperativeExpression(ImperativeExpression object)
          Returns the result of interpretting the object as an instance of 'Imperative Expression'.
 T caseImperativeLoopExp(ImperativeLoopExp object)
          Returns the result of interpretting the object as an instance of 'Imperative Loop Exp'.
 T caseImperativeOperation(ImperativeOperation object)
          Returns the result of interpretting the object as an instance of 'Imperative Operation'.
 T caseInstantiationExp(InstantiationExp object)
          Returns the result of interpretting the object as an instance of 'Instantiation Exp'.
 T caseLibrary(Library object)
          Returns the result of interpretting the object as an instance of 'Library'.
 T caseLoopExp(LoopExp object)
          Returns the result of interpretting the object as an instance of 'Loop Exp'.
 T caseMappingBody(MappingBody object)
          Returns the result of interpretting the object as an instance of 'Mapping Body'.
 T caseMappingCallExp(MappingCallExp object)
          Returns the result of interpretting the object as an instance of 'Mapping Call Exp'.
 T caseMappingOperation(MappingOperation object)
          Returns the result of interpretting the object as an instance of 'Mapping Operation'.
 T caseMappingParameter(MappingParameter object)
          Returns the result of interpretting the object as an instance of 'Mapping Parameter'.
 T caseModelParameter(ModelParameter object)
          Returns the result of interpretting the object as an instance of 'Model Parameter'.
 T caseModelType(ModelType object)
          Returns the result of interpretting the object as an instance of 'Model Type'.
 T caseModule(Module object)
          Returns the result of interpretting the object as an instance of 'Module'.
 T caseModuleImport(ModuleImport object)
          Returns the result of interpretting the object as an instance of 'Module Import'.
 T caseMultiplicityElement(MultiplicityElement object)
          Returns the result of interpretting the object as an instance of 'Multiplicity Element'.
 T caseNamedElement(NamedElement object)
          Returns the result of interpretting the object as an instance of 'Named Element'.
 T caseObject(Object object)
          Returns the result of interpretting the object as an instance of 'Object'.
 T caseObjectExp(ObjectExp object)
          Returns the result of interpretting the object as an instance of 'Object Exp'.
 T caseOclExpression(OclExpression object)
          Returns the result of interpretting the object as an instance of 'Ocl Expression'.
 T caseOperation(Operation object)
          Returns the result of interpretting the object as an instance of 'Operation'.
 T caseOperationalTransformation(OperationalTransformation object)
          Returns the result of interpretting the object as an instance of 'Operational Transformation'.
 T caseOperationBody(OperationBody object)
          Returns the result of interpretting the object as an instance of 'Operation Body'.
 T caseOperationCallExp(OperationCallExp object)
          Returns the result of interpretting the object as an instance of 'Operation Call Exp'.
 T casePackage(Package object)
          Returns the result of interpretting the object as an instance of 'Package'.
 T caseParameter(Parameter object)
          Returns the result of interpretting the object as an instance of 'Parameter'.
 T caseProperty(Property object)
          Returns the result of interpretting the object as an instance of 'Property'.
 T caseResolveExp(ResolveExp object)
          Returns the result of interpretting the object as an instance of 'Resolve Exp'.
 T caseResolveInExp(ResolveInExp object)
          Returns the result of interpretting the object as an instance of 'Resolve In Exp'.
 T caseType(Type object)
          Returns the result of interpretting the object as an instance of 'Type'.
 T caseTypedElement(TypedElement object)
          Returns the result of interpretting the object as an instance of 'Typed Element'.
 T caseURIExtent(URIExtent object)
          Returns the result of interpretting the object as an instance of 'URI Extent'.
 T caseVariable(Variable object)
          Returns the result of interpretting the object as an instance of 'Variable'.
 T caseVarParameter(VarParameter object)
          Returns the result of interpretting the object as an instance of 'Var Parameter'.
 T defaultCase(org.eclipse.emf.ecore.EObject object)
          Returns the result of interpretting the object as an instance of 'EObject'.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QvtoperationalSwitch

public QvtoperationalSwitch()
Creates an instance of the switch.

Method Detail

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.

caseMappingBody

public T caseMappingBody(MappingBody object)
Returns the result of interpretting the object as an instance of 'Mapping Body'. 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 'Mapping Body'.
See Also:
doSwitch(EObject)

caseHelper

public T caseHelper(Helper object)
Returns the result of interpretting the object as an instance of 'Helper'. 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 'Helper'.
See Also:
doSwitch(EObject)

caseResolveExp

public T caseResolveExp(ResolveExp object)
Returns the result of interpretting the object as an instance of 'Resolve Exp'. 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 'Resolve Exp'.
See Also:
doSwitch(EObject)

caseResolveInExp

public T caseResolveInExp(ResolveInExp object)
Returns the result of interpretting the object as an instance of 'Resolve In Exp'. 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 'Resolve In Exp'.
See Also:
doSwitch(EObject)

caseOperationalTransformation

public T caseOperationalTransformation(OperationalTransformation object)
Returns the result of interpretting the object as an instance of 'Operational Transformation'. 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 'Operational Transformation'.
See Also:
doSwitch(EObject)

caseMappingParameter

public T caseMappingParameter(MappingParameter object)
Returns the result of interpretting the object as an instance of 'Mapping Parameter'. 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 'Mapping Parameter'.
See Also:
doSwitch(EObject)

caseMappingOperation

public T caseMappingOperation(MappingOperation object)
Returns the result of interpretting the object as an instance of 'Mapping Operation'. 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 'Mapping Operation'.
See Also:
doSwitch(EObject)

caseMappingCallExp

public T caseMappingCallExp(MappingCallExp object)
Returns the result of interpretting the object as an instance of 'Mapping Call Exp'. 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 'Mapping Call Exp'.
See Also:
doSwitch(EObject)

caseConstructor

public T caseConstructor(Constructor object)
Returns the result of interpretting the object as an instance of 'Constructor'. 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 'Constructor'.
See Also:
doSwitch(EObject)

caseContextualProperty

public T caseContextualProperty(ContextualProperty object)
Returns the result of interpretting the object as an instance of 'Contextual Property'. 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 'Contextual Property'.
See Also:
doSwitch(EObject)

caseEntryOperation

public T caseEntryOperation(EntryOperation object)
Returns the result of interpretting the object as an instance of 'Entry Operation'. 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 'Entry Operation'.
See Also:
doSwitch(EObject)

caseImperativeCallExp

public T caseImperativeCallExp(ImperativeCallExp object)
Returns the result of interpretting the object as an instance of 'Imperative Call Exp'. 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 'Imperative Call Exp'.
See Also:
doSwitch(EObject)

caseImperativeOperation

public T caseImperativeOperation(ImperativeOperation object)
Returns the result of interpretting the object as an instance of 'Imperative Operation'. 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 'Imperative Operation'.
See Also:
doSwitch(EObject)

caseLibrary

public T caseLibrary(Library object)
Returns the result of interpretting the object as an instance of 'Library'. 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 'Library'.
See Also:
doSwitch(EObject)

caseModelParameter

public T caseModelParameter(ModelParameter object)
Returns the result of interpretting the object as an instance of 'Model Parameter'. 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 'Model Parameter'.
See Also:
doSwitch(EObject)

caseModelType

public T caseModelType(ModelType object)
Returns the result of interpretting the object as an instance of 'Model Type'. 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 'Model Type'.
See Also:
doSwitch(EObject)

caseModule

public T caseModule(Module object)
Returns the result of interpretting the object as an instance of 'Module'. 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 'Module'.
See Also:
doSwitch(EObject)

caseModuleImport

public T caseModuleImport(ModuleImport object)
Returns the result of interpretting the object as an instance of 'Module Import'. 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 'Module Import'.
See Also:
doSwitch(EObject)

caseVarParameter

public T caseVarParameter(VarParameter object)
Returns the result of interpretting the object as an instance of 'Var Parameter'. 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 'Var Parameter'.
See Also:
doSwitch(EObject)

caseOperationBody

public T caseOperationBody(OperationBody object)
Returns the result of interpretting the object as an instance of 'Operation Body'. 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 'Operation Body'.
See Also:
doSwitch(EObject)

caseConstructorBody

public T caseConstructorBody(ConstructorBody object)
Returns the result of interpretting the object as an instance of 'Constructor Body'. 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 'Constructor Body'.
See Also:
doSwitch(EObject)

caseObjectExp

public T caseObjectExp(ObjectExp object)
Returns the result of interpretting the object as an instance of 'Object Exp'. 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 'Object Exp'.
See Also:
doSwitch(EObject)

caseObject

public T caseObject(Object object)
Returns the result of interpretting the object as an instance of '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 interpretting the object as an instance of 'Object'.
See Also:
doSwitch(EObject)

caseElement

public T caseElement(Element object)
Returns the result of interpretting the object as an instance of 'Element'. 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 'Element'.
See Also:
doSwitch(EObject)

caseMultiplicityElement

public T caseMultiplicityElement(MultiplicityElement object)
Returns the result of interpretting the object as an instance of 'Multiplicity Element'. 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 'Multiplicity Element'.
See Also:
doSwitch(EObject)

caseNamedElement

public T caseNamedElement(NamedElement object)
Returns the result of interpretting the object as an instance of 'Named Element'. 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 'Named Element'.
See Also:
doSwitch(EObject)

caseTypedElement

public T caseTypedElement(TypedElement object)
Returns the result of interpretting the object as an instance of 'Typed Element'. 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 'Typed Element'.
See Also:
doSwitch(EObject)

caseOperation

public T caseOperation(Operation object)
Returns the result of interpretting the object as an instance of 'Operation'. 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 'Operation'.
See Also:
doSwitch(EObject)

caseOclExpression

public T caseOclExpression(OclExpression object)
Returns the result of interpretting the object as an instance of 'Ocl Expression'. 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 'Ocl Expression'.
See Also:
doSwitch(EObject)

caseCallExp

public T caseCallExp(CallExp object)
Returns the result of interpretting the object as an instance of 'Call Exp'. 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 'Call Exp'.
See Also:
doSwitch(EObject)

caseLoopExp

public T caseLoopExp(LoopExp object)
Returns the result of interpretting the object as an instance of 'Loop Exp'. 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 'Loop Exp'.
See Also:
doSwitch(EObject)

caseImperativeExpression

public T caseImperativeExpression(ImperativeExpression object)
Returns the result of interpretting the object as an instance of 'Imperative Expression'. 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 'Imperative Expression'.
See Also:
doSwitch(EObject)

caseImperativeLoopExp

public T caseImperativeLoopExp(ImperativeLoopExp object)
Returns the result of interpretting the object as an instance of 'Imperative Loop Exp'. 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 'Imperative Loop Exp'.
See Also:
doSwitch(EObject)

caseType

public T caseType(Type object)
Returns the result of interpretting the object as an instance of 'Type'. 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 'Type'.
See Also:
doSwitch(EObject)

caseClass

public T caseClass(Class object)
Returns the result of interpretting the object as an instance of 'Class'. 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 'Class'.
See Also:
doSwitch(EObject)

casePackage

public T casePackage(Package object)
Returns the result of interpretting the object as an instance of 'Package'. 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 'Package'.
See Also:
doSwitch(EObject)

caseParameter

public T caseParameter(Parameter object)
Returns the result of interpretting the object as an instance of 'Parameter'. 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 'Parameter'.
See Also:
doSwitch(EObject)

caseVariable

public T caseVariable(Variable object)
Returns the result of interpretting the object as an instance of 'Variable'. 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 'Variable'.
See Also:
doSwitch(EObject)

caseFeaturePropertyCall

public T caseFeaturePropertyCall(FeaturePropertyCall object)
Returns the result of interpretting the object as an instance of 'Feature Property Call'. 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 'Feature Property Call'.
See Also:
doSwitch(EObject)

caseOperationCallExp

public T caseOperationCallExp(OperationCallExp object)
Returns the result of interpretting the object as an instance of 'Operation Call Exp'. 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 'Operation Call Exp'.
See Also:
doSwitch(EObject)

caseProperty

public T caseProperty(Property object)
Returns the result of interpretting the object as an instance of 'Property'. 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 'Property'.
See Also:
doSwitch(EObject)

caseExtent

public T caseExtent(Extent object)
Returns the result of interpretting the object as an instance of 'Extent'. 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 'Extent'.
See Also:
doSwitch(EObject)

caseURIExtent

public T caseURIExtent(URIExtent object)
Returns the result of interpretting the object as an instance of 'URI Extent'. 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 'URI Extent'.
See Also:
doSwitch(EObject)

caseInstantiationExp

public T caseInstantiationExp(InstantiationExp object)
Returns the result of interpretting the object as an instance of 'Instantiation Exp'. 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 'Instantiation Exp'.
See Also:
doSwitch(EObject)

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)