Class OCLSwitch<T>

java.lang.Object
org.eclipse.m2m.atl.common.OCL.util.OCLSwitch<T>

public class OCLSwitch<T> extends 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:
  • Field Details

    • modelPackage

      protected static OCLPackage modelPackage
      The cached model package
  • Constructor Details

    • OCLSwitch

      public OCLSwitch()
      Creates an instance of the switch.
  • Method Details

    • 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.
    • 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.
    • 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.
    • caseOclExpression

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

      public T caseVariableExp(VariableExp object)
      Returns the result of interpreting the object as an instance of 'Variable 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 interpreting the object as an instance of 'Variable Exp'.
      See Also:
    • caseSuperExp

      public T caseSuperExp(SuperExp object)
      Returns the result of interpreting the object as an instance of 'Super 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 interpreting the object as an instance of 'Super Exp'.
      See Also:
    • casePrimitiveExp

      public T casePrimitiveExp(PrimitiveExp object)
      Returns the result of interpreting the object as an instance of 'Primitive 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 interpreting the object as an instance of 'Primitive Exp'.
      See Also:
    • caseStringExp

      public T caseStringExp(StringExp object)
      Returns the result of interpreting the object as an instance of 'String 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 interpreting the object as an instance of 'String Exp'.
      See Also:
    • caseBooleanExp

      public T caseBooleanExp(BooleanExp object)
      Returns the result of interpreting the object as an instance of 'Boolean 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 interpreting the object as an instance of 'Boolean Exp'.
      See Also:
    • caseNumericExp

      public T caseNumericExp(NumericExp object)
      Returns the result of interpreting the object as an instance of 'Numeric 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 interpreting the object as an instance of 'Numeric Exp'.
      See Also:
    • caseRealExp

      public T caseRealExp(RealExp object)
      Returns the result of interpreting the object as an instance of 'Real 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 interpreting the object as an instance of 'Real Exp'.
      See Also:
    • caseIntegerExp

      public T caseIntegerExp(IntegerExp object)
      Returns the result of interpreting the object as an instance of 'Integer 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 interpreting the object as an instance of 'Integer Exp'.
      See Also:
    • caseCollectionExp

      public T caseCollectionExp(CollectionExp object)
      Returns the result of interpreting the object as an instance of 'Collection 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 interpreting the object as an instance of 'Collection Exp'.
      See Also:
    • caseBagExp

      public T caseBagExp(BagExp object)
      Returns the result of interpreting the object as an instance of 'Bag 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 interpreting the object as an instance of 'Bag Exp'.
      See Also:
    • caseOrderedSetExp

      public T caseOrderedSetExp(OrderedSetExp object)
      Returns the result of interpreting the object as an instance of 'Ordered Set 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 interpreting the object as an instance of 'Ordered Set Exp'.
      See Also:
    • caseSequenceExp

      public T caseSequenceExp(SequenceExp object)
      Returns the result of interpreting the object as an instance of 'Sequence 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 interpreting the object as an instance of 'Sequence Exp'.
      See Also:
    • caseSetExp

      public T caseSetExp(SetExp object)
      Returns the result of interpreting the object as an instance of 'Set 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 interpreting the object as an instance of 'Set Exp'.
      See Also:
    • caseTupleExp

      public T caseTupleExp(TupleExp object)
      Returns the result of interpreting the object as an instance of 'Tuple 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 interpreting the object as an instance of 'Tuple Exp'.
      See Also:
    • caseTuplePart

      public T caseTuplePart(TuplePart object)
      Returns the result of interpreting the object as an instance of 'Tuple Part'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Tuple Part'.
      See Also:
    • caseMapExp

      public T caseMapExp(MapExp object)
      Returns the result of interpreting the object as an instance of 'Map 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 interpreting the object as an instance of 'Map Exp'.
      See Also:
    • caseMapElement

      public T caseMapElement(MapElement object)
      Returns the result of interpreting the object as an instance of 'Map 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 interpreting the object as an instance of 'Map Element'.
      See Also:
    • caseEnumLiteralExp

      public T caseEnumLiteralExp(EnumLiteralExp object)
      Returns the result of interpreting the object as an instance of 'Enum Literal 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 interpreting the object as an instance of 'Enum Literal Exp'.
      See Also:
    • caseOclUndefinedExp

      public T caseOclUndefinedExp(OclUndefinedExp object)
      Returns the result of interpreting the object as an instance of 'Ocl Undefined 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 interpreting the object as an instance of 'Ocl Undefined Exp'.
      See Also:
    • casePropertyCallExp

      public T casePropertyCallExp(PropertyCallExp object)
      Returns the result of interpreting the object as an instance of 'Property 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 interpreting the object as an instance of 'Property Call Exp'.
      See Also:
    • caseNavigationOrAttributeCallExp

      public T caseNavigationOrAttributeCallExp(NavigationOrAttributeCallExp object)
      Returns the result of interpreting the object as an instance of 'Navigation Or Attribute 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 interpreting the object as an instance of 'Navigation Or Attribute Call Exp'.
      See Also:
    • caseOperationCallExp

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

      public T caseOperatorCallExp(OperatorCallExp object)
      Returns the result of interpreting the object as an instance of 'Operator 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 interpreting the object as an instance of 'Operator Call Exp'.
      See Also:
    • caseCollectionOperationCallExp

      public T caseCollectionOperationCallExp(CollectionOperationCallExp object)
      Returns the result of interpreting the object as an instance of 'Collection 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 interpreting the object as an instance of 'Collection Operation Call Exp'.
      See Also:
    • caseLoopExp

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

      public T caseIterateExp(IterateExp object)
      Returns the result of interpreting the object as an instance of 'Iterate 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 interpreting the object as an instance of 'Iterate Exp'.
      See Also:
    • caseIteratorExp

      public T caseIteratorExp(IteratorExp object)
      Returns the result of interpreting the object as an instance of 'Iterator 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 interpreting the object as an instance of 'Iterator Exp'.
      See Also:
    • caseLetExp

      public T caseLetExp(LetExp object)
      Returns the result of interpreting the object as an instance of 'Let 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 interpreting the object as an instance of 'Let Exp'.
      See Also:
    • caseIfExp

      public T caseIfExp(IfExp object)
      Returns the result of interpreting the object as an instance of 'If 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 interpreting the object as an instance of 'If Exp'.
      See Also:
    • caseVariableDeclaration

      public T caseVariableDeclaration(VariableDeclaration object)
      Returns the result of interpreting the object as an instance of 'Variable Declaration'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Variable Declaration'.
      See Also:
    • caseIterator

      public T caseIterator(Iterator object)
      Returns the result of interpreting the object as an instance of 'Iterator'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Iterator'.
      See Also:
    • caseParameter

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

      public T caseCollectionType(CollectionType object)
      Returns the result of interpreting the object as an instance of 'Collection 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 interpreting the object as an instance of 'Collection Type'.
      See Also:
    • caseOclType

      public T caseOclType(OclType object)
      Returns the result of interpreting the object as an instance of 'Ocl 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 interpreting the object as an instance of 'Ocl Type'.
      See Also:
    • casePrimitive

      public T casePrimitive(Primitive object)
      Returns the result of interpreting the object as an instance of 'Primitive'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Primitive'.
      See Also:
    • caseStringType

      public T caseStringType(StringType object)
      Returns the result of interpreting the object as an instance of 'String 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 interpreting the object as an instance of 'String Type'.
      See Also:
    • caseBooleanType

      public T caseBooleanType(BooleanType object)
      Returns the result of interpreting the object as an instance of 'Boolean 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 interpreting the object as an instance of 'Boolean Type'.
      See Also:
    • caseNumericType

      public T caseNumericType(NumericType object)
      Returns the result of interpreting the object as an instance of 'Numeric 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 interpreting the object as an instance of 'Numeric Type'.
      See Also:
    • caseIntegerType

      public T caseIntegerType(IntegerType object)
      Returns the result of interpreting the object as an instance of 'Integer 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 interpreting the object as an instance of 'Integer Type'.
      See Also:
    • caseRealType

      public T caseRealType(RealType object)
      Returns the result of interpreting the object as an instance of 'Real 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 interpreting the object as an instance of 'Real Type'.
      See Also:
    • caseBagType

      public T caseBagType(BagType object)
      Returns the result of interpreting the object as an instance of 'Bag 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 interpreting the object as an instance of 'Bag Type'.
      See Also:
    • caseOrderedSetType

      public T caseOrderedSetType(OrderedSetType object)
      Returns the result of interpreting the object as an instance of 'Ordered Set 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 interpreting the object as an instance of 'Ordered Set Type'.
      See Also:
    • caseSequenceType

      public T caseSequenceType(SequenceType object)
      Returns the result of interpreting the object as an instance of 'Sequence 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 interpreting the object as an instance of 'Sequence Type'.
      See Also:
    • caseSetType

      public T caseSetType(SetType object)
      Returns the result of interpreting the object as an instance of 'Set 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 interpreting the object as an instance of 'Set Type'.
      See Also:
    • caseOclAnyType

      public T caseOclAnyType(OclAnyType object)
      Returns the result of interpreting the object as an instance of 'Ocl Any 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 interpreting the object as an instance of 'Ocl Any Type'.
      See Also:
    • caseTupleType

      public T caseTupleType(TupleType object)
      Returns the result of interpreting the object as an instance of 'Tuple 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 interpreting the object as an instance of 'Tuple Type'.
      See Also:
    • caseTupleTypeAttribute

      public T caseTupleTypeAttribute(TupleTypeAttribute object)
      Returns the result of interpreting the object as an instance of 'Tuple Type Attribute'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Tuple Type Attribute'.
      See Also:
    • caseOclModelElement

      public T caseOclModelElement(OclModelElement object)
      Returns the result of interpreting the object as an instance of 'Ocl Model 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 interpreting the object as an instance of 'Ocl Model Element'.
      See Also:
    • caseMapType

      public T caseMapType(MapType object)
      Returns the result of interpreting the object as an instance of 'Map 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 interpreting the object as an instance of 'Map Type'.
      See Also:
    • caseOclFeatureDefinition

      public T caseOclFeatureDefinition(OclFeatureDefinition object)
      Returns the result of interpreting the object as an instance of 'Ocl Feature Definition'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Ocl Feature Definition'.
      See Also:
    • caseOclContextDefinition

      public T caseOclContextDefinition(OclContextDefinition object)
      Returns the result of interpreting the object as an instance of 'Ocl Context Definition'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Ocl Context Definition'.
      See Also:
    • caseOclFeature

      public T caseOclFeature(OclFeature object)
      Returns the result of interpreting the object as an instance of 'Ocl Feature'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Ocl Feature'.
      See Also:
    • caseAttribute

      public T caseAttribute(Attribute object)
      Returns the result of interpreting the object as an instance of 'Attribute'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Attribute'.
      See Also:
    • caseOperation

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

      public T caseOclModel(OclModel object)
      Returns the result of interpreting the object as an instance of 'Ocl 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 interpreting the object as an instance of 'Ocl Model'.
      See Also:
    • caseLocatedElement

      public T caseLocatedElement(LocatedElement object)
      Returns the result of interpreting the object as an instance of 'Located 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 interpreting the object as an instance of 'Located Element'.
      See Also:
    • defaultCase

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