org.eclipse.gmt.umlx.eqvtbase.util
Class EqvtBaseSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.umlx.eqvtbase.util.EqvtBaseSwitch<T>

public class EqvtBaseSwitch<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:
EqvtBasePackage

Constructor Summary
EqvtBaseSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseDomain(Domain object)
          Returns the result of interpretting the object as an instance of 'Domain'.
 T caseEClass(org.eclipse.emf.ecore.EClass object)
          Returns the result of interpretting the object as an instance of 'EClass'.
 T caseEClassifier(org.eclipse.emf.ecore.EClassifier object)
          Returns the result of interpretting the object as an instance of 'EClassifier'.
 T caseEModelElement(org.eclipse.emf.ecore.EModelElement object)
          Returns the result of interpretting the object as an instance of 'EModel Element'.
 T caseENamedElement(org.eclipse.emf.ecore.ENamedElement object)
          Returns the result of interpretting the object as an instance of 'ENamed Element'.
 T caseEOperation(org.eclipse.emf.ecore.EOperation object)
          Returns the result of interpretting the object as an instance of 'EOperation'.
 T caseEPackage(org.eclipse.emf.ecore.EPackage object)
          Returns the result of interpretting the object as an instance of 'EPackage'.
 T caseEParameter(org.eclipse.emf.ecore.EParameter object)
          Returns the result of interpretting the object as an instance of 'EParameter'.
 T caseETypedElement(org.eclipse.emf.ecore.ETypedElement object)
          Returns the result of interpretting the object as an instance of 'ETyped Element'.
 T caseFunction(Function object)
          Returns the result of interpretting the object as an instance of 'Function'.
 T caseFunctionParameter(FunctionParameter object)
          Returns the result of interpretting the object as an instance of 'Function Parameter'.
 T casePattern(Pattern object)
          Returns the result of interpretting the object as an instance of 'Pattern'.
 T casePredicate(Predicate object)
          Returns the result of interpretting the object as an instance of 'Predicate'.
 T caseRule(Rule object)
          Returns the result of interpretting the object as an instance of 'Rule'.
 T caseTag(Tag object)
          Returns the result of interpretting the object as an instance of 'Tag'.
 T caseTransformation(Transformation object)
          Returns the result of interpretting the object as an instance of 'Transformation'.
 T caseTypedModel(TypedModel object)
          Returns the result of interpretting the object as an instance of 'Typed Model'.
 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

EqvtBaseSwitch

public EqvtBaseSwitch()
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.

caseDomain

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

caseTransformation

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

caseTypedModel

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

caseRule

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

casePattern

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

casePredicate

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

caseFunction

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

caseFunctionParameter

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

caseTag

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

caseEModelElement

public T caseEModelElement(org.eclipse.emf.ecore.EModelElement object)
Returns the result of interpretting the object as an instance of 'EModel 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 'EModel Element'.
See Also:
doSwitch(EObject)

caseENamedElement

public T caseENamedElement(org.eclipse.emf.ecore.ENamedElement object)
Returns the result of interpretting the object as an instance of 'ENamed 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 'ENamed Element'.
See Also:
doSwitch(EObject)

caseEClassifier

public T caseEClassifier(org.eclipse.emf.ecore.EClassifier object)
Returns the result of interpretting the object as an instance of 'EClassifier'. 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 'EClassifier'.
See Also:
doSwitch(EObject)

caseEClass

public T caseEClass(org.eclipse.emf.ecore.EClass object)
Returns the result of interpretting the object as an instance of 'EClass'. 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 'EClass'.
See Also:
doSwitch(EObject)

caseEPackage

public T caseEPackage(org.eclipse.emf.ecore.EPackage object)
Returns the result of interpretting the object as an instance of 'EPackage'. 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 'EPackage'.
See Also:
doSwitch(EObject)

caseETypedElement

public T caseETypedElement(org.eclipse.emf.ecore.ETypedElement object)
Returns the result of interpretting the object as an instance of 'ETyped 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 'ETyped Element'.
See Also:
doSwitch(EObject)

caseEOperation

public T caseEOperation(org.eclipse.emf.ecore.EOperation object)
Returns the result of interpretting the object as an instance of 'EOperation'. 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 'EOperation'.
See Also:
doSwitch(EObject)

caseEParameter

public T caseEParameter(org.eclipse.emf.ecore.EParameter object)
Returns the result of interpretting the object as an instance of 'EParameter'. 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 'EParameter'.
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)