Class CodeSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.eclipse.gmt.modisco.omg.kdm.code.util.CodeSwitch<T>

public class CodeSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
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:
CodePackage
  • Field Details

    • modelPackage

      protected static CodePackage modelPackage
      The cached model package
  • Constructor Details

    • CodeSwitch

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

    • isSwitchFor

      protected boolean isSwitchFor​(org.eclipse.emf.ecore.EPackage ePackage)
      Checks whether this is a switch for the given package.
      Specified by:
      isSwitchFor in class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      ePackage - the package in question.
      Returns:
      whether this is a switch for the given package.
    • 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.
      Overrides:
      doSwitch in class org.eclipse.emf.ecore.util.Switch<T>
      Returns:
      the first non-null result returned by a caseXXX call.
    • caseAbstractCodeElement

      public T caseAbstractCodeElement​(AbstractCodeElement object)
      Returns the result of interpreting the object as an instance of 'Abstract Code 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 'Abstract Code Element'.
      See Also:
      doSwitch(EObject)
    • caseCodeItem

      public T caseCodeItem​(CodeItem object)
      Returns the result of interpreting the object as an instance of 'Item'. 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 'Item'.
      See Also:
      doSwitch(EObject)
    • caseComputationalObject

      public T caseComputationalObject​(ComputationalObject object)
      Returns the result of interpreting the object as an instance of 'Computational 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 interpreting the object as an instance of 'Computational Object'.
      See Also:
      doSwitch(EObject)
    • caseControlElement

      public T caseControlElement​(ControlElement object)
      Returns the result of interpreting the object as an instance of 'Control 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 'Control Element'.
      See Also:
      doSwitch(EObject)
    • caseMethodUnit

      public T caseMethodUnit​(MethodUnit object)
      Returns the result of interpreting the object as an instance of 'Method Unit'. 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 'Method Unit'.
      See Also:
      doSwitch(EObject)
    • caseModule

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

      public T caseCodeAssembly​(CodeAssembly object)
      Returns the result of interpreting the object as an instance of 'Assembly'. 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 'Assembly'.
      See Also:
      doSwitch(EObject)
    • caseCallableUnit

      public T caseCallableUnit​(CallableUnit object)
      Returns the result of interpreting the object as an instance of 'Callable Unit'. 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 'Callable Unit'.
      See Also:
      doSwitch(EObject)
    • caseDatatype

      public T caseDatatype​(Datatype object)
      Returns the result of interpreting the object as an instance of 'Datatype'. 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 'Datatype'.
      See Also:
      doSwitch(EObject)
    • caseTemplateUnit

      public T caseTemplateUnit​(TemplateUnit object)
      Returns the result of interpreting the object as an instance of 'Template Unit'. 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 'Template Unit'.
      See Also:
      doSwitch(EObject)
    • caseTemplateParameter

      public T caseTemplateParameter​(TemplateParameter object)
      Returns the result of interpreting the object as an instance of 'Template 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 'Template Parameter'.
      See Also:
      doSwitch(EObject)
    • caseAbstractCodeRelationship

      public T caseAbstractCodeRelationship​(AbstractCodeRelationship object)
      Returns the result of interpreting the object as an instance of 'Abstract Code Relationship'. 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 'Abstract Code Relationship'.
      See Also:
      doSwitch(EObject)
    • caseInstanceOf

      public T caseInstanceOf​(InstanceOf object)
      Returns the result of interpreting the object as an instance of 'Instance Of'. 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 'Instance Of'.
      See Also:
      doSwitch(EObject)
    • caseCompilationUnit

      public T caseCompilationUnit​(CompilationUnit object)
      Returns the result of interpreting the object as an instance of 'Compilation Unit'. 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 'Compilation Unit'.
      See Also:
      doSwitch(EObject)
    • caseCodeModel

      public T caseCodeModel​(CodeModel object)
      Returns the result of interpreting the object as an instance of '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 'Model'.
      See Also:
      doSwitch(EObject)
    • caseDerivedType

      public T caseDerivedType​(DerivedType object)
      Returns the result of interpreting the object as an instance of 'Derived 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 'Derived Type'.
      See Also:
      doSwitch(EObject)
    • caseArrayType

      public T caseArrayType​(ArrayType object)
      Returns the result of interpreting the object as an instance of 'Array 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 'Array Type'.
      See Also:
      doSwitch(EObject)
    • casePrimitiveType

      public T casePrimitiveType​(PrimitiveType object)
      Returns the result of interpreting the object as an instance of 'Primitive 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 'Primitive Type'.
      See Also:
      doSwitch(EObject)
    • 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:
      doSwitch(EObject)
    • caseCharType

      public T caseCharType​(CharType object)
      Returns the result of interpreting the object as an instance of 'Char 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 'Char Type'.
      See Also:
      doSwitch(EObject)
    • caseClassUnit

      public T caseClassUnit​(ClassUnit object)
      Returns the result of interpreting the object as an instance of 'Class Unit'. 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 'Class Unit'.
      See Also:
      doSwitch(EObject)
    • caseCompositeType

      public T caseCompositeType​(CompositeType object)
      Returns the result of interpreting the object as an instance of 'Composite 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 'Composite Type'.
      See Also:
      doSwitch(EObject)
    • caseRecordType

      public T caseRecordType​(RecordType object)
      Returns the result of interpreting the object as an instance of 'Record 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 'Record Type'.
      See Also:
      doSwitch(EObject)
    • caseEnumeratedType

      public T caseEnumeratedType​(EnumeratedType object)
      Returns the result of interpreting the object as an instance of 'Enumerated 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 'Enumerated Type'.
      See Also:
      doSwitch(EObject)
    • caseExtends

      public T caseExtends​(Extends object)
      Returns the result of interpreting the object as an instance of 'Extends'. 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 'Extends'.
      See Also:
      doSwitch(EObject)
    • caseScaledType

      public T caseScaledType​(ScaledType object)
      Returns the result of interpreting the object as an instance of 'Scaled 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 'Scaled Type'.
      See Also:
      doSwitch(EObject)
    • caseFloatType

      public T caseFloatType​(FloatType object)
      Returns the result of interpreting the object as an instance of 'Float 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 'Float Type'.
      See Also:
      doSwitch(EObject)
    • caseHasType

      public T caseHasType​(HasType object)
      Returns the result of interpreting the object as an instance of 'Has 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 'Has Type'.
      See Also:
      doSwitch(EObject)
    • caseImplementationOf

      public T caseImplementationOf​(ImplementationOf object)
      Returns the result of interpreting the object as an instance of 'Implementation Of'. 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 'Implementation Of'.
      See Also:
      doSwitch(EObject)
    • caseImplements

      public T caseImplements​(Implements object)
      Returns the result of interpreting the object as an instance of 'Implements'. 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 'Implements'.
      See Also:
      doSwitch(EObject)
    • 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:
      doSwitch(EObject)
    • caseInterfaceUnit

      public T caseInterfaceUnit​(InterfaceUnit object)
      Returns the result of interpreting the object as an instance of 'Interface Unit'. 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 'Interface Unit'.
      See Also:
      doSwitch(EObject)
    • casePointerType

      public T casePointerType​(PointerType object)
      Returns the result of interpreting the object as an instance of 'Pointer 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 'Pointer Type'.
      See Also:
      doSwitch(EObject)
    • caseDefinedType

      public T caseDefinedType​(DefinedType object)
      Returns the result of interpreting the object as an instance of 'Defined 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 'Defined Type'.
      See Also:
      doSwitch(EObject)
    • caseTypeUnit

      public T caseTypeUnit​(TypeUnit object)
      Returns the result of interpreting the object as an instance of 'Type Unit'. 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 'Type Unit'.
      See Also:
      doSwitch(EObject)
    • caseRangeType

      public T caseRangeType​(RangeType object)
      Returns the result of interpreting the object as an instance of 'Range 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 'Range Type'.
      See Also:
      doSwitch(EObject)
    • caseSignature

      public T caseSignature​(Signature object)
      Returns the result of interpreting the object as an instance of 'Signature'. 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 'Signature'.
      See Also:
      doSwitch(EObject)
    • caseDataElement

      public T caseDataElement​(DataElement object)
      Returns the result of interpreting the object as an instance of 'Data 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 'Data Element'.
      See Also:
      doSwitch(EObject)
    • 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:
      doSwitch(EObject)
    • caseChoiceType

      public T caseChoiceType​(ChoiceType object)
      Returns the result of interpreting the object as an instance of 'Choice 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 'Choice Type'.
      See Also:
      doSwitch(EObject)
    • caseNamespaceUnit

      public T caseNamespaceUnit​(NamespaceUnit object)
      Returns the result of interpreting the object as an instance of 'Namespace Unit'. 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 'Namespace Unit'.
      See Also:
      doSwitch(EObject)
    • caseVisibleIn

      public T caseVisibleIn​(VisibleIn object)
      Returns the result of interpreting the object as an instance of 'Visible In'. 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 'Visible In'.
      See Also:
      doSwitch(EObject)
    • caseCommentUnit

      public T caseCommentUnit​(CommentUnit object)
      Returns the result of interpreting the object as an instance of 'Comment Unit'. 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 'Comment Unit'.
      See Also:
      doSwitch(EObject)
    • caseSharedUnit

      public T caseSharedUnit​(SharedUnit object)
      Returns the result of interpreting the object as an instance of 'Shared Unit'. 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 'Shared Unit'.
      See Also:
      doSwitch(EObject)
    • caseDecimalType

      public T caseDecimalType​(DecimalType object)
      Returns the result of interpreting the object as an instance of 'Decimal 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 'Decimal Type'.
      See Also:
      doSwitch(EObject)
    • caseDateType

      public T caseDateType​(DateType object)
      Returns the result of interpreting the object as an instance of 'Date 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 'Date Type'.
      See Also:
      doSwitch(EObject)
    • caseTimeType

      public T caseTimeType​(TimeType object)
      Returns the result of interpreting the object as an instance of 'Time 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 'Time Type'.
      See Also:
      doSwitch(EObject)
    • caseVoidType

      public T caseVoidType​(VoidType object)
      Returns the result of interpreting the object as an instance of 'Void 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 'Void Type'.
      See Also:
      doSwitch(EObject)
    • caseValueElement

      public T caseValueElement​(ValueElement object)
      Returns the result of interpreting the object as an instance of 'Value 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 'Value Element'.
      See Also:
      doSwitch(EObject)
    • caseValue

      public T caseValue​(Value object)
      Returns the result of interpreting the object as an instance of 'Value'. 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 'Value'.
      See Also:
      doSwitch(EObject)
    • caseValueList

      public T caseValueList​(ValueList object)
      Returns the result of interpreting the object as an instance of 'Value List'. 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 'Value List'.
      See Also:
      doSwitch(EObject)
    • caseStorableUnit

      public T caseStorableUnit​(StorableUnit object)
      Returns the result of interpreting the object as an instance of 'Storable Unit'. 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 'Storable Unit'.
      See Also:
      doSwitch(EObject)
    • caseMemberUnit

      public T caseMemberUnit​(MemberUnit object)
      Returns the result of interpreting the object as an instance of 'Member Unit'. 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 'Member Unit'.
      See Also:
      doSwitch(EObject)
    • caseParameterUnit

      public T caseParameterUnit​(ParameterUnit object)
      Returns the result of interpreting the object as an instance of 'Parameter Unit'. 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 Unit'.
      See Also:
      doSwitch(EObject)
    • caseItemUnit

      public T caseItemUnit​(ItemUnit object)
      Returns the result of interpreting the object as an instance of 'Item Unit'. 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 'Item Unit'.
      See Also:
      doSwitch(EObject)
    • caseIndexUnit

      public T caseIndexUnit​(IndexUnit object)
      Returns the result of interpreting the object as an instance of 'Index Unit'. 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 'Index Unit'.
      See Also:
      doSwitch(EObject)
    • caseSynonymType

      public T caseSynonymType​(SynonymType object)
      Returns the result of interpreting the object as an instance of 'Synonym 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 'Synonym Type'.
      See Also:
      doSwitch(EObject)
    • 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:
      doSwitch(EObject)
    • 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:
      doSwitch(EObject)
    • 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:
      doSwitch(EObject)
    • caseCodeElement

      public T caseCodeElement​(CodeElement object)
      Returns the result of interpreting 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 interpreting the object as an instance of 'Element'.
      See Also:
      doSwitch(EObject)
    • caseCodeRelationship

      public T caseCodeRelationship​(CodeRelationship object)
      Returns the result of interpreting the object as an instance of 'Relationship'. 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 'Relationship'.
      See Also:
      doSwitch(EObject)
    • caseLanguageUnit

      public T caseLanguageUnit​(LanguageUnit object)
      Returns the result of interpreting the object as an instance of 'Language Unit'. 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 'Language Unit'.
      See Also:
      doSwitch(EObject)
    • caseOrdinalType

      public T caseOrdinalType​(OrdinalType object)
      Returns the result of interpreting the object as an instance of 'Ordinal 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 'Ordinal Type'.
      See Also:
      doSwitch(EObject)
    • caseBitstringType

      public T caseBitstringType​(BitstringType object)
      Returns the result of interpreting the object as an instance of 'Bitstring 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 'Bitstring Type'.
      See Also:
      doSwitch(EObject)
    • caseOctetType

      public T caseOctetType​(OctetType object)
      Returns the result of interpreting the object as an instance of 'Octet 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 'Octet Type'.
      See Also:
      doSwitch(EObject)
    • caseOctetstringType

      public T caseOctetstringType​(OctetstringType object)
      Returns the result of interpreting the object as an instance of 'Octetstring 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 'Octetstring Type'.
      See Also:
      doSwitch(EObject)
    • caseBitType

      public T caseBitType​(BitType object)
      Returns the result of interpreting the object as an instance of 'Bit 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 'Bit Type'.
      See Also:
      doSwitch(EObject)
    • caseImports

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

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

      public T caseParameterTo​(ParameterTo object)
      Returns the result of interpreting the object as an instance of 'Parameter To'. 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 To'.
      See Also:
      doSwitch(EObject)
    • caseTemplateType

      public T caseTemplateType​(TemplateType object)
      Returns the result of interpreting the object as an instance of 'Template 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 'Template Type'.
      See Also:
      doSwitch(EObject)
    • casePreprocessorDirective

      public T casePreprocessorDirective​(PreprocessorDirective object)
      Returns the result of interpreting the object as an instance of 'Preprocessor Directive'. 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 'Preprocessor Directive'.
      See Also:
      doSwitch(EObject)
    • caseMacroDirective

      public T caseMacroDirective​(MacroDirective object)
      Returns the result of interpreting the object as an instance of 'Macro Directive'. 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 'Macro Directive'.
      See Also:
      doSwitch(EObject)
    • caseMacroUnit

      public T caseMacroUnit​(MacroUnit object)
      Returns the result of interpreting the object as an instance of 'Macro Unit'. 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 'Macro Unit'.
      See Also:
      doSwitch(EObject)
    • caseConditionalDirective

      public T caseConditionalDirective​(ConditionalDirective object)
      Returns the result of interpreting the object as an instance of 'Conditional Directive'. 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 'Conditional Directive'.
      See Also:
      doSwitch(EObject)
    • caseIncludeDirective

      public T caseIncludeDirective​(IncludeDirective object)
      Returns the result of interpreting the object as an instance of 'Include Directive'. 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 'Include Directive'.
      See Also:
      doSwitch(EObject)
    • caseVariantTo

      public T caseVariantTo​(VariantTo object)
      Returns the result of interpreting the object as an instance of 'Variant To'. 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 'Variant To'.
      See Also:
      doSwitch(EObject)
    • caseExpands

      public T caseExpands​(Expands object)
      Returns the result of interpreting the object as an instance of 'Expands'. 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 'Expands'.
      See Also:
      doSwitch(EObject)
    • caseRedefines

      public T caseRedefines​(Redefines object)
      Returns the result of interpreting the object as an instance of 'Redefines'. 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 'Redefines'.
      See Also:
      doSwitch(EObject)
    • caseGeneratedFrom

      public T caseGeneratedFrom​(GeneratedFrom object)
      Returns the result of interpreting the object as an instance of 'Generated From'. 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 'Generated From'.
      See Also:
      doSwitch(EObject)
    • caseIncludes

      public T caseIncludes​(Includes object)
      Returns the result of interpreting the object as an instance of 'Includes'. 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 'Includes'.
      See Also:
      doSwitch(EObject)
    • caseHasValue

      public T caseHasValue​(HasValue object)
      Returns the result of interpreting the object as an instance of 'Has Value'. 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 'Has Value'.
      See Also:
      doSwitch(EObject)
    • caseElement

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

      public T caseModelElement​(ModelElement object)
      Returns the result of interpreting the object as an instance of '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 'Model Element'.
      See Also:
      doSwitch(EObject)
    • caseKDMEntity

      public T caseKDMEntity​(KDMEntity object)
      Returns the result of interpreting the object as an instance of 'KDM Entity'. 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 'KDM Entity'.
      See Also:
      doSwitch(EObject)
    • caseKDMRelationship

      public T caseKDMRelationship​(KDMRelationship object)
      Returns the result of interpreting the object as an instance of 'KDM Relationship'. 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 'KDM Relationship'.
      See Also:
      doSwitch(EObject)
    • caseKDMFramework

      public T caseKDMFramework​(KDMFramework object)
      Returns the result of interpreting the object as an instance of 'KDM Framework'. 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 'KDM Framework'.
      See Also:
      doSwitch(EObject)
    • caseKDMModel

      public T caseKDMModel​(KDMModel object)
      Returns the result of interpreting the object as an instance of 'KDM 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 'KDM Model'.
      See Also:
      doSwitch(EObject)
    • 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.
      Overrides:
      defaultCase in class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'EObject'.
      See Also:
      Switch.doSwitch(org.eclipse.emf.ecore.EObject)