org.eclipse.gmt.modisco.omg.kdm.code.util
Class CodeSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.modisco.omg.kdm.code.util.CodeSwitch<T>

public class CodeSwitch<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:
CodePackage
Generated:

Constructor Summary
CodeSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAbstractCodeElement(AbstractCodeElement object)
          Returns the result of interpreting the object as an instance of 'Abstract Code Element'.
 T caseAbstractCodeRelationship(AbstractCodeRelationship object)
          Returns the result of interpreting the object as an instance of 'Abstract Code Relationship'.
 T caseArrayType(ArrayType object)
          Returns the result of interpreting the object as an instance of 'Array Type'.
 T caseBagType(BagType object)
          Returns the result of interpreting the object as an instance of 'Bag Type'.
 T caseBitstringType(BitstringType object)
          Returns the result of interpreting the object as an instance of 'Bitstring Type'.
 T caseBitType(BitType object)
          Returns the result of interpreting the object as an instance of 'Bit Type'.
 T caseBooleanType(BooleanType object)
          Returns the result of interpreting the object as an instance of 'Boolean Type'.
 T caseCallableUnit(CallableUnit object)
          Returns the result of interpreting the object as an instance of 'Callable Unit'.
 T caseCharType(CharType object)
          Returns the result of interpreting the object as an instance of 'Char Type'.
 T caseChoiceType(ChoiceType object)
          Returns the result of interpreting the object as an instance of 'Choice Type'.
 T caseClassUnit(ClassUnit object)
          Returns the result of interpreting the object as an instance of 'Class Unit'.
 T caseCodeAssembly(CodeAssembly object)
          Returns the result of interpreting the object as an instance of 'Assembly'.
 T caseCodeElement(CodeElement object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseCodeItem(CodeItem object)
          Returns the result of interpreting the object as an instance of 'Item'.
 T caseCodeModel(CodeModel object)
          Returns the result of interpreting the object as an instance of 'Model'.
 T caseCodeRelationship(CodeRelationship object)
          Returns the result of interpreting the object as an instance of 'Relationship'.
 T caseCommentUnit(CommentUnit object)
          Returns the result of interpreting the object as an instance of 'Comment Unit'.
 T caseCompilationUnit(CompilationUnit object)
          Returns the result of interpreting the object as an instance of 'Compilation Unit'.
 T caseCompositeType(CompositeType object)
          Returns the result of interpreting the object as an instance of 'Composite Type'.
 T caseComputationalObject(ComputationalObject object)
          Returns the result of interpreting the object as an instance of 'Computational Object'.
 T caseConditionalDirective(ConditionalDirective object)
          Returns the result of interpreting the object as an instance of 'Conditional Directive'.
 T caseControlElement(ControlElement object)
          Returns the result of interpreting the object as an instance of 'Control Element'.
 T caseDataElement(DataElement object)
          Returns the result of interpreting the object as an instance of 'Data Element'.
 T caseDatatype(Datatype object)
          Returns the result of interpreting the object as an instance of 'Datatype'.
 T caseDateType(DateType object)
          Returns the result of interpreting the object as an instance of 'Date Type'.
 T caseDecimalType(DecimalType object)
          Returns the result of interpreting the object as an instance of 'Decimal Type'.
 T caseDefinedType(DefinedType object)
          Returns the result of interpreting the object as an instance of 'Defined Type'.
 T caseDerivedType(DerivedType object)
          Returns the result of interpreting the object as an instance of 'Derived Type'.
 T caseElement(Element object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseEnumeratedType(EnumeratedType object)
          Returns the result of interpreting the object as an instance of 'Enumerated Type'.
 T caseExpands(Expands object)
          Returns the result of interpreting the object as an instance of 'Expands'.
 T caseExtends(Extends object)
          Returns the result of interpreting the object as an instance of 'Extends'.
 T caseFloatType(FloatType object)
          Returns the result of interpreting the object as an instance of 'Float Type'.
 T caseGeneratedFrom(GeneratedFrom object)
          Returns the result of interpreting the object as an instance of 'Generated From'.
 T caseHasType(HasType object)
          Returns the result of interpreting the object as an instance of 'Has Type'.
 T caseHasValue(HasValue object)
          Returns the result of interpreting the object as an instance of 'Has Value'.
 T caseImplementationOf(ImplementationOf object)
          Returns the result of interpreting the object as an instance of 'Implementation Of'.
 T caseImplements(Implements object)
          Returns the result of interpreting the object as an instance of 'Implements'.
 T caseImports(Imports object)
          Returns the result of interpreting the object as an instance of 'Imports'.
 T caseIncludeDirective(IncludeDirective object)
          Returns the result of interpreting the object as an instance of 'Include Directive'.
 T caseIncludes(Includes object)
          Returns the result of interpreting the object as an instance of 'Includes'.
 T caseIndexUnit(IndexUnit object)
          Returns the result of interpreting the object as an instance of 'Index Unit'.
 T caseInstanceOf(InstanceOf object)
          Returns the result of interpreting the object as an instance of 'Instance Of'.
 T caseIntegerType(IntegerType object)
          Returns the result of interpreting the object as an instance of 'Integer Type'.
 T caseInterfaceUnit(InterfaceUnit object)
          Returns the result of interpreting the object as an instance of 'Interface Unit'.
 T caseItemUnit(ItemUnit object)
          Returns the result of interpreting the object as an instance of 'Item Unit'.
 T caseKDMEntity(KDMEntity object)
          Returns the result of interpreting the object as an instance of 'KDM Entity'.
 T caseKDMFramework(KDMFramework object)
          Returns the result of interpreting the object as an instance of 'KDM Framework'.
 T caseKDMModel(KDMModel object)
          Returns the result of interpreting the object as an instance of 'KDM Model'.
 T caseKDMRelationship(KDMRelationship object)
          Returns the result of interpreting the object as an instance of 'KDM Relationship'.
 T caseLanguageUnit(LanguageUnit object)
          Returns the result of interpreting the object as an instance of 'Language Unit'.
 T caseMacroDirective(MacroDirective object)
          Returns the result of interpreting the object as an instance of 'Macro Directive'.
 T caseMacroUnit(MacroUnit object)
          Returns the result of interpreting the object as an instance of 'Macro Unit'.
 T caseMemberUnit(MemberUnit object)
          Returns the result of interpreting the object as an instance of 'Member Unit'.
 T caseMethodUnit(MethodUnit object)
          Returns the result of interpreting the object as an instance of 'Method Unit'.
 T caseModelElement(ModelElement object)
          Returns the result of interpreting the object as an instance of 'Model Element'.
 T caseModule(Module object)
          Returns the result of interpreting the object as an instance of 'Module'.
 T caseNamespace(Namespace object)
          Returns the result of interpreting the object as an instance of 'Namespace'.
 T caseOctetstringType(OctetstringType object)
          Returns the result of interpreting the object as an instance of 'Octetstring Type'.
 T caseOctetType(OctetType object)
          Returns the result of interpreting the object as an instance of 'Octet Type'.
 T caseOrdinalType(OrdinalType object)
          Returns the result of interpreting the object as an instance of 'Ordinal Type'.
 T casePackage(Package object)
          Returns the result of interpreting the object as an instance of 'Package'.
 T caseParameterTo(ParameterTo object)
          Returns the result of interpreting the object as an instance of 'Parameter To'.
 T caseParameterUnit(ParameterUnit object)
          Returns the result of interpreting the object as an instance of 'Parameter Unit'.
 T casePointerType(PointerType object)
          Returns the result of interpreting the object as an instance of 'Pointer Type'.
 T casePreprocessorDirective(PreprocessorDirective object)
          Returns the result of interpreting the object as an instance of 'Preprocessor Directive'.
 T casePrimitiveType(PrimitiveType object)
          Returns the result of interpreting the object as an instance of 'Primitive Type'.
 T caseRangeType(RangeType object)
          Returns the result of interpreting the object as an instance of 'Range Type'.
 T caseRecordType(RecordType object)
          Returns the result of interpreting the object as an instance of 'Record Type'.
 T caseRedefines(Redefines object)
          Returns the result of interpreting the object as an instance of 'Redefines'.
 T caseScaledType(ScaledType object)
          Returns the result of interpreting the object as an instance of 'Scaled Type'.
 T caseSequenceType(SequenceType object)
          Returns the result of interpreting the object as an instance of 'Sequence Type'.
 T caseSetType(SetType object)
          Returns the result of interpreting the object as an instance of 'Set Type'.
 T caseSharedUnit(SharedUnit object)
          Returns the result of interpreting the object as an instance of 'Shared Unit'.
 T caseSignature(Signature object)
          Returns the result of interpreting the object as an instance of 'Signature'.
 T caseStorableUnit(StorableUnit object)
          Returns the result of interpreting the object as an instance of 'Storable Unit'.
 T caseStringType(StringType object)
          Returns the result of interpreting the object as an instance of 'String Type'.
 T caseSynonymUnit(SynonymUnit object)
          Returns the result of interpreting the object as an instance of 'Synonym Unit'.
 T caseTemplateParameter(TemplateParameter object)
          Returns the result of interpreting the object as an instance of 'Template Parameter'.
 T caseTemplateType(TemplateType object)
          Returns the result of interpreting the object as an instance of 'Template Type'.
 T caseTemplateUnit(TemplateUnit object)
          Returns the result of interpreting the object as an instance of 'Template Unit'.
 T caseTimeType(TimeType object)
          Returns the result of interpreting the object as an instance of 'Time Type'.
 T caseTypeUnit(TypeUnit object)
          Returns the result of interpreting the object as an instance of 'Type Unit'.
 T caseValue(Value object)
          Returns the result of interpreting the object as an instance of 'Value'.
 T caseValueElement(ValueElement object)
          Returns the result of interpreting the object as an instance of 'Value Element'.
 T caseValueList(ValueList object)
          Returns the result of interpreting the object as an instance of 'Value List'.
 T caseVariantTo(VariantTo object)
          Returns the result of interpreting the object as an instance of 'Variant To'.
 T caseVisibleIn(VisibleIn object)
          Returns the result of interpreting the object as an instance of 'Visible In'.
 T caseVoidType(VoidType object)
          Returns the result of interpreting the object as an instance of 'Void Type'.
 T defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 T doSwitch(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

CodeSwitch

public CodeSwitch()
Creates an instance of the switch.

Generated:
Method Detail

doSwitch

public T doSwitch(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.
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

caseSynonymUnit

public T caseSynonymUnit(SynonymUnit object)
Returns the result of interpreting the object as an instance of 'Synonym 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 'Synonym Unit'.
See Also:
doSwitch(EObject)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

caseNamespace

public T caseNamespace(Namespace object)
Returns the result of interpreting the object as an instance of 'Namespace'. 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'.
See Also:
doSwitch(EObject)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

defaultCase

public T defaultCase(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:
#doSwitch(org.eclipse.emf.ecore.EObject)
Generated: