10440-3-4

return convertEBooleanToString(eDataType, instanceValue); case EcorePackage.EBOOLEAN_OBJECT: return convertEBooleanObjectToString(eDataType, instanceValue); case EcorePackage.EBYTE: return convertEByteToString(eDataType, instanceValue); case EcorePackage.EBYTE_ARRAY: return convertEByteArrayToString(eDataType, instanceValue); case EcorePackage.EBYTE_OBJECT: return convertEByteObjectToString(eDataType, instanceValue); case EcorePackage.ECHAR: return convertECharToString(eDataType, instanceValue); case EcorePackage.ECHARACTER_OBJECT: return convertECharacterObjectToString(eDataType, instanceValue); case EcorePackage.EDATE: return convertEDateToString(eDataType, instanceValue); case EcorePackage.EDOUBLE: return convertEDoubleToString(eDataType, instanceValue); case EcorePackage.EDOUBLE_OBJECT: return convertEDoubleObjectToString(eDataType, instanceValue); case EcorePackage.EFLOAT: return convertEFloatToString(eDataType, instanceValue); case EcorePackage.EFLOAT_OBJECT: return convertEFloatObjectToString(eDataType, instanceValue); case EcorePackage.EINT: return convertEIntToString(eDataType, instanceValue); case EcorePackage.EINTEGER_OBJECT: return convertEIntegerObjectToString(eDataType, instanceValue); case EcorePackage.EJAVA_CLASS: return convertEJavaClassToString(eDataType, instanceValue); case EcorePackage.EJAVA_OBJECT: return convertEJavaObjectToString(eDataType, instanceValue); case EcorePackage.ELONG: return convertELongToString(eDataType, instanceValue); case EcorePackage.ELONG_OBJECT: return convertELongObjectToString(eDataType, instanceValue); case EcorePackage.ESHORT: return convertEShortToString(eDataType, instanceValue); case EcorePackage.ESHORT_OBJECT: return convertEShortObjectToString(eDataType, instanceValue); case EcorePackage.ESTRING: return convertEStringToString(eDataType, instanceValue); default: throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
return convertNMTOKENToString(eDataType, instanceValue); case XMLTypePackage.NMTOKENS: return convertNMTOKENSToString(eDataType, instanceValue); case XMLTypePackage.NMTOKENS_BASE: return convertNMTOKENSBaseToString(eDataType, instanceValue); case XMLTypePackage.NON_NEGATIVE_INTEGER: return convertNonNegativeIntegerToString(eDataType, instanceValue); case XMLTypePackage.NON_POSITIVE_INTEGER: return convertNonPositiveIntegerToString(eDataType, instanceValue); case XMLTypePackage.NORMALIZED_STRING: return convertNormalizedStringToString(eDataType, instanceValue); case XMLTypePackage.NOTATION: return convertNOTATIONToString(eDataType, instanceValue); case XMLTypePackage.POSITIVE_INTEGER: return convertPositiveIntegerToString(eDataType, instanceValue); case XMLTypePackage.QNAME: return convertQNameToString(eDataType, instanceValue); case XMLTypePackage.SHORT: return convertShortToString(eDataType, instanceValue); case XMLTypePackage.SHORT_OBJECT: return convertShortObjectToString(eDataType, instanceValue); case XMLTypePackage.STRING: return convertStringToString(eDataType, instanceValue); case XMLTypePackage.TIME: return convertTimeToString(eDataType, instanceValue); case XMLTypePackage.TOKEN: return convertTokenToString(eDataType, instanceValue); case XMLTypePackage.UNSIGNED_BYTE: return convertUnsignedByteToString(eDataType, instanceValue); case XMLTypePackage.UNSIGNED_BYTE_OBJECT: return convertUnsignedByteObjectToString(eDataType, instanceValue); case XMLTypePackage.UNSIGNED_INT: return convertUnsignedIntToString(eDataType, instanceValue); case XMLTypePackage.UNSIGNED_INT_OBJECT: return convertUnsignedIntObjectToString(eDataType, instanceValue); case XMLTypePackage.UNSIGNED_LONG: return convertUnsignedLongToString(eDataType, instanceValue); case XMLTypePackage.UNSIGNED_SHORT: return convertUnsignedShortToString(eDataType, instanceValue); case XMLTypePackage.UNSIGNED_SHORT_OBJECT: return convertUnsignedShortObjectToString(eDataType, instanceValue); default: throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EcoreFactoryImpl.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/impl/XMLTypeFactoryImpl.java
Method name: `String convertToString(EDataType, Object)` |  | Method name: `String convertToString(EDataType, Object)`
Number of AST nodes: 43 |  | Number of AST nodes: 43

1

    return convertEBooleanToString(eDataType, instanceValue);↵

1

    return convertNMTOKENToString(eDataType, instanceValue);↵

2

          case EcorePackage.EBOOLEAN_OBJECT:↵

2

          case XMLTypePackage.NMTOKENS:↵

3

            return convertEBooleanObjectToString(eDataType, instanceValue);↵

3

            return convertNMTOKENSToString(eDataType, instanceValue);↵

4

          case EcorePackage.EBYTE:↵

4

          case XMLTypePackage.NMTOKENS_BASE:↵

5

            return convertEByteToString(eDataType, instanceValue);↵

5

            return convertNMTOKENSBaseToString(eDataType, instanceValue);↵

6

          case EcorePackage.EBYTE_ARRAY:↵

6

          case XMLTypePackage.NON_NEGATIVE_INTEGER:↵

7

            return convertEByteArrayToString(eDataType, instanceValue);↵

7

            return convertNonNegativeIntegerToString(eDataType, instanceValue);↵

8

          case EcorePackage.EBYTE_OBJECT:↵

8

          case XMLTypePackage.NON_POSITIVE_INTEGER:↵

9

            return convertEByteObjectToString(eDataType, instanceValue);↵

9

            return convertNonPositiveIntegerToString(eDataType, instanceValue);↵

10

          case EcorePackage.ECHAR:↵

10

          case XMLTypePackage.NORMALIZED_STRING:↵

11

            return convertECharToString(eDataType, instanceValue);↵

11

            return convertNormalizedStringToString(eDataType, instanceValue);↵

12

          case EcorePackage.ECHARACTER_OBJECT:↵

12

          case XMLTypePackage.NOTATION:↵

13

            return convertECharacterObjectToString(eDataType, instanceValue);↵

13

            return convertNOTATIONToString(eDataType, instanceValue);↵

14

          case EcorePackage.EDATE:↵

14

          case XMLTypePackage.POSITIVE_INTEGER:↵

15

            return convertEDateToString(eDataType, instanceValue);↵

15

            return convertPositiveIntegerToString(eDataType, instanceValue);↵

16

          case EcorePackage.EDOUBLE:↵

16

          case XMLTypePackage.QNAME:↵

17

            return convertEDoubleToString(eDataType, instanceValue);↵

17

            return convertQNameToString(eDataType, instanceValue);↵

18

          case EcorePackage.EDOUBLE_OBJECT:↵

18

          case XMLTypePackage.SHORT:↵

19

            return convertEDoubleObjectToString(eDataType, instanceValue);↵

19

            return convertShortToString(eDataType, instanceValue);↵

20

          case EcorePackage.EFLOAT:↵

20

          case XMLTypePackage.SHORT_OBJECT:↵

21

            return convertEFloatToString(eDataType, instanceValue);↵

21

            return convertShortObjectToString(eDataType, instanceValue);↵

22

          case EcorePackage.EFLOAT_OBJECT:↵

22

          case XMLTypePackage.STRING:↵

23

            return convertEFloatObjectToString(eDataType, instanceValue);↵

23

            return convertStringToString(eDataType, instanceValue);↵

24

          case EcorePackage.EINT:↵

24

          case XMLTypePackage.TIME:↵

25

            return convertEIntToString(eDataType, instanceValue);↵

25

            return convertTimeToString(eDataType, instanceValue);↵

26

          case EcorePackage.EINTEGER_OBJECT:↵

26

          case XMLTypePackage.TOKEN:↵

27

            return convertEIntegerObjectToString(eDataType, instanceValue);↵

27

            return convertTokenToString(eDataType, instanceValue);↵

28

          case EcorePackage.EJAVA_CLASS:↵

28

          case XMLTypePackage.UNSIGNED_BYTE:↵

29

            return convertEJavaClassToString(eDataType, instanceValue);↵

29

            return convertUnsignedByteToString(eDataType, instanceValue);↵

30

          case EcorePackage.EJAVA_OBJECT:↵

30

          case XMLTypePackage.UNSIGNED_BYTE_OBJECT:↵

31

            return convertEJavaObjectToString(eDataType, instanceValue);↵

31

            return convertUnsignedByteObjectToString(eDataType, instanceValue);↵

32

          case EcorePackage.ELONG:↵

32

          case XMLTypePackage.UNSIGNED_INT:↵

33

            return convertELongToString(eDataType, instanceValue);↵

33

            return convertUnsignedIntToString(eDataType, instanceValue);↵

34

          case EcorePackage.ELONG_OBJECT:↵

34

          case XMLTypePackage.UNSIGNED_INT_OBJECT:↵

35

            return convertELongObjectToString(eDataType, instanceValue);↵

35

            return convertUnsignedIntObjectToString(eDataType, instanceValue);↵

36

          case EcorePackage.ESHORT:↵

36

          case XMLTypePackage.UNSIGNED_LONG:↵

37

            return convertEShortToString(eDataType, instanceValue);↵

37

            return convertUnsignedLongToString(eDataType, instanceValue);↵

38

          case EcorePackage.ESHORT_OBJECT:↵

38

          case XMLTypePackage.UNSIGNED_SHORT:↵

39

            return convertEShortObjectToString(eDataType, instanceValue);↵

39

            return convertUnsignedShortToString(eDataType, instanceValue);↵

40

          case EcorePackage.ESTRING:↵

40

          case XMLTypePackage.UNSIGNED_SHORT_OBJECT:↵

41

            return convertEStringToString(eDataType, instanceValue);↵

41

            return convertUnsignedShortObjectToString(eDataType, instanceValue);↵

42

          default:↵

42

          default:↵

43

            throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");

43

            throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 1
Number of refactorable cases | 0
Number of non-refactorable cases | 1
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location | Clones are in different classes having the same super class
Number of node comparisons | 925

1. {Non-refactorable}

   Mapping Summary
   Number of mapped statements | 43
   Number of unmapped statements in the first code fragment | 0
   Number of unmapped statements in the second code fragment | 0
   Time elapsed for statement mapping (ms) | 0.0
   Clone type | Type 2

   Mapped Statements
   ID | Statement |  | ID | Statement
   --- | --- | --- | --- | ---

   7

       return convertEBooleanToString(eDataType, instanceValue);

   7 | return convertEBooleanToString(eDataType, instanceValue);
   77 | return convertNMTOKENToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEBooleanToString | convertNMTOKENToString | METHOD_INVOCATION_NAME_MISMATCH

   77

       return convertNMTOKENToString(eDataType, instanceValue);

   8

       case EcorePackage.EBOOLEAN_OBJECT:

   8 | case EcorePackage.EBOOLEAN_OBJECT:
   78 | case XMLTypePackage.NMTOKENS:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EBOOLEAN_OBJECT | NMTOKENS | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   78

       case XMLTypePackage.NMTOKENS:

   9

       return convertEBooleanObjectToString(eDataType, instanceValue);

   9 | return convertEBooleanObjectToString(eDataType, instanceValue);
   79 | return convertNMTOKENSToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEBooleanObjectToString | convertNMTOKENSToString | METHOD_INVOCATION_NAME_MISMATCH

   79

       return convertNMTOKENSToString(eDataType, instanceValue);

   10

       case EcorePackage.EBYTE:

   10 | case EcorePackage.EBYTE:
   80 | case XMLTypePackage.NMTOKENS_BASE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EBYTE | NMTOKENS_BASE | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   80

       case XMLTypePackage.NMTOKENS_BASE:

   11

       return convertEByteToString(eDataType, instanceValue);

   11 | return convertEByteToString(eDataType, instanceValue);
   81 | return convertNMTOKENSBaseToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEByteToString | convertNMTOKENSBaseToString | METHOD_INVOCATION_NAME_MISMATCH

   81

       return convertNMTOKENSBaseToString(eDataType, instanceValue);

   12

       case EcorePackage.EBYTE_ARRAY:

   12 | case EcorePackage.EBYTE_ARRAY:
   82 | case XMLTypePackage.NON_NEGATIVE_INTEGER:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EBYTE_ARRAY | NON_NEGATIVE_INTEGER | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   82

       case XMLTypePackage.NON_NEGATIVE_INTEGER:

   13

       return convertEByteArrayToString(eDataType, instanceValue);

   13 | return convertEByteArrayToString(eDataType, instanceValue);
   83 | return convertNonNegativeIntegerToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEByteArrayToString | convertNonNegativeIntegerToString | METHOD_INVOCATION_NAME_MISMATCH

   83

       return convertNonNegativeIntegerToString(eDataType, instanceValue);

   14

       case EcorePackage.EBYTE_OBJECT:

   14 | case EcorePackage.EBYTE_OBJECT:
   84 | case XMLTypePackage.NON_POSITIVE_INTEGER:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EBYTE_OBJECT | NON_POSITIVE_INTEGER | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   84

       case XMLTypePackage.NON_POSITIVE_INTEGER:

   15

       return convertEByteObjectToString(eDataType, instanceValue);

   15 | return convertEByteObjectToString(eDataType, instanceValue);
   85 | return convertNonPositiveIntegerToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEByteObjectToString | convertNonPositiveIntegerToString | METHOD_INVOCATION_NAME_MISMATCH

   85

       return convertNonPositiveIntegerToString(eDataType, instanceValue);

   16

       case EcorePackage.ECHAR:

   16 | case EcorePackage.ECHAR:
   86 | case XMLTypePackage.NORMALIZED_STRING:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   ECHAR | NORMALIZED_STRING | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   86

       case XMLTypePackage.NORMALIZED_STRING:

   17

       return convertECharToString(eDataType, instanceValue);

   17 | return convertECharToString(eDataType, instanceValue);
   87 | return convertNormalizedStringToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertECharToString | convertNormalizedStringToString | METHOD_INVOCATION_NAME_MISMATCH

   87

       return convertNormalizedStringToString(eDataType, instanceValue);

   18

       case EcorePackage.ECHARACTER_OBJECT:

   18 | case EcorePackage.ECHARACTER_OBJECT:
   88 | case XMLTypePackage.NOTATION:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   ECHARACTER_OBJECT | NOTATION | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   88

       case XMLTypePackage.NOTATION:

   19

       return convertECharacterObjectToString(eDataType, instanceValue);

   19 | return convertECharacterObjectToString(eDataType, instanceValue);
   89 | return convertNOTATIONToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertECharacterObjectToString | convertNOTATIONToString | METHOD_INVOCATION_NAME_MISMATCH

   89

       return convertNOTATIONToString(eDataType, instanceValue);

   20

       case EcorePackage.EDATE:

   20 | case EcorePackage.EDATE:
   90 | case XMLTypePackage.POSITIVE_INTEGER:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EDATE | POSITIVE_INTEGER | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   90

       case XMLTypePackage.POSITIVE_INTEGER:

   21

       return convertEDateToString(eDataType, instanceValue);

   21 | return convertEDateToString(eDataType, instanceValue);
   91 | return convertPositiveIntegerToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEDateToString | convertPositiveIntegerToString | METHOD_INVOCATION_NAME_MISMATCH

   91

       return convertPositiveIntegerToString(eDataType, instanceValue);

   22

       case EcorePackage.EDOUBLE:

   22 | case EcorePackage.EDOUBLE:
   92 | case XMLTypePackage.QNAME:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EDOUBLE | QNAME | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   92

       case XMLTypePackage.QNAME:

   23

       return convertEDoubleToString(eDataType, instanceValue);

   23 | return convertEDoubleToString(eDataType, instanceValue);
   93 | return convertQNameToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEDoubleToString | convertQNameToString | METHOD_INVOCATION_NAME_MISMATCH

   93

       return convertQNameToString(eDataType, instanceValue);

   24

       case EcorePackage.EDOUBLE_OBJECT:

   24 | case EcorePackage.EDOUBLE_OBJECT:
   94 | case XMLTypePackage.SHORT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EDOUBLE_OBJECT | SHORT | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   94

       case XMLTypePackage.SHORT:

   25

       return convertEDoubleObjectToString(eDataType, instanceValue);

   25 | return convertEDoubleObjectToString(eDataType, instanceValue);
   95 | return convertShortToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEDoubleObjectToString | convertShortToString | METHOD_INVOCATION_NAME_MISMATCH

   95

       return convertShortToString(eDataType, instanceValue);

   26

       case EcorePackage.EFLOAT:

   26 | case EcorePackage.EFLOAT:
   96 | case XMLTypePackage.SHORT_OBJECT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EFLOAT | SHORT_OBJECT | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   96

       case XMLTypePackage.SHORT_OBJECT:

   27

       return convertEFloatToString(eDataType, instanceValue);

   27 | return convertEFloatToString(eDataType, instanceValue);
   97 | return convertShortObjectToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEFloatToString | convertShortObjectToString | METHOD_INVOCATION_NAME_MISMATCH

   97

       return convertShortObjectToString(eDataType, instanceValue);

   28

       case EcorePackage.EFLOAT_OBJECT:

   28 | case EcorePackage.EFLOAT_OBJECT:
   98 | case XMLTypePackage.STRING:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EFLOAT_OBJECT | STRING | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   98

       case XMLTypePackage.STRING:

   29

       return convertEFloatObjectToString(eDataType, instanceValue);

   29 | return convertEFloatObjectToString(eDataType, instanceValue);
   99 | return convertStringToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEFloatObjectToString | convertStringToString | METHOD_INVOCATION_NAME_MISMATCH

   99

       return convertStringToString(eDataType, instanceValue);

   30

       case EcorePackage.EINT:

   30 | case EcorePackage.EINT:
   100 | case XMLTypePackage.TIME:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EINT | TIME | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   100

       case XMLTypePackage.TIME:

   31

       return convertEIntToString(eDataType, instanceValue);

   31 | return convertEIntToString(eDataType, instanceValue);
   101 | return convertTimeToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEIntToString | convertTimeToString | METHOD_INVOCATION_NAME_MISMATCH

   101

       return convertTimeToString(eDataType, instanceValue);

   32

       case EcorePackage.EINTEGER_OBJECT:

   32 | case EcorePackage.EINTEGER_OBJECT:
   102 | case XMLTypePackage.TOKEN:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EINTEGER_OBJECT | TOKEN | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   102

       case XMLTypePackage.TOKEN:

   33

       return convertEIntegerObjectToString(eDataType, instanceValue);

   33 | return convertEIntegerObjectToString(eDataType, instanceValue);
   103 | return convertTokenToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEIntegerObjectToString | convertTokenToString | METHOD_INVOCATION_NAME_MISMATCH

   103

       return convertTokenToString(eDataType, instanceValue);

   34

       case EcorePackage.EJAVA_CLASS:

   34 | case EcorePackage.EJAVA_CLASS:
   104 | case XMLTypePackage.UNSIGNED_BYTE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EJAVA_CLASS | UNSIGNED_BYTE | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   104

       case XMLTypePackage.UNSIGNED_BYTE:

   35

       return convertEJavaClassToString(eDataType, instanceValue);

   35 | return convertEJavaClassToString(eDataType, instanceValue);
   105 | return convertUnsignedByteToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEJavaClassToString | convertUnsignedByteToString | METHOD_INVOCATION_NAME_MISMATCH

   105

       return convertUnsignedByteToString(eDataType, instanceValue);

   36

       case EcorePackage.EJAVA_OBJECT:

   36 | case EcorePackage.EJAVA_OBJECT:
   106 | case XMLTypePackage.UNSIGNED_BYTE_OBJECT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EJAVA_OBJECT | UNSIGNED_BYTE_OBJECT | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   106

       case XMLTypePackage.UNSIGNED_BYTE_OBJECT:

   37

       return convertEJavaObjectToString(eDataType, instanceValue);

   37 | return convertEJavaObjectToString(eDataType, instanceValue);
   107 | return convertUnsignedByteObjectToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEJavaObjectToString | convertUnsignedByteObjectToString | METHOD_INVOCATION_NAME_MISMATCH

   107

       return convertUnsignedByteObjectToString(eDataType, instanceValue);

   38

       case EcorePackage.ELONG:

   38 | case EcorePackage.ELONG:
   108 | case XMLTypePackage.UNSIGNED_INT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   ELONG | UNSIGNED_INT | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   108

       case XMLTypePackage.UNSIGNED_INT:

   39

       return convertELongToString(eDataType, instanceValue);

   39 | return convertELongToString(eDataType, instanceValue);
   109 | return convertUnsignedIntToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertELongToString | convertUnsignedIntToString | METHOD_INVOCATION_NAME_MISMATCH

   109

       return convertUnsignedIntToString(eDataType, instanceValue);

   40

       case EcorePackage.ELONG_OBJECT:

   40 | case EcorePackage.ELONG_OBJECT:
   110 | case XMLTypePackage.UNSIGNED_INT_OBJECT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   ELONG_OBJECT | UNSIGNED_INT_OBJECT | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   110

       case XMLTypePackage.UNSIGNED_INT_OBJECT:

   41

       return convertELongObjectToString(eDataType, instanceValue);

   41 | return convertELongObjectToString(eDataType, instanceValue);
   111 | return convertUnsignedIntObjectToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertELongObjectToString | convertUnsignedIntObjectToString | METHOD_INVOCATION_NAME_MISMATCH

   111

       return convertUnsignedIntObjectToString(eDataType, instanceValue);

   42

       case EcorePackage.ESHORT:

   42 | case EcorePackage.ESHORT:
   112 | case XMLTypePackage.UNSIGNED_LONG:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   ESHORT | UNSIGNED_LONG | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   112

       case XMLTypePackage.UNSIGNED_LONG:

   43

       return convertEShortToString(eDataType, instanceValue);

   43 | return convertEShortToString(eDataType, instanceValue);
   113 | return convertUnsignedLongToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEShortToString | convertUnsignedLongToString | METHOD_INVOCATION_NAME_MISMATCH

   113

       return convertUnsignedLongToString(eDataType, instanceValue);

   44

       case EcorePackage.ESHORT_OBJECT:

   44 | case EcorePackage.ESHORT_OBJECT:
   114 | case XMLTypePackage.UNSIGNED_SHORT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   ESHORT_OBJECT | UNSIGNED_SHORT | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   114

       case XMLTypePackage.UNSIGNED_SHORT:

   45

       return convertEShortObjectToString(eDataType, instanceValue);

   45 | return convertEShortObjectToString(eDataType, instanceValue);
   115 | return convertUnsignedShortToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEShortObjectToString | convertUnsignedShortToString | METHOD_INVOCATION_NAME_MISMATCH

   115

       return convertUnsignedShortToString(eDataType, instanceValue);

   46

       case EcorePackage.ESTRING:

   46 | case EcorePackage.ESTRING:
   116 | case XMLTypePackage.UNSIGNED_SHORT_OBJECT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   ESTRING | UNSIGNED_SHORT_OBJECT | VARIABLE_NAME_MISMATCH

   Preondition Violations

   Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   - Make classes org.eclipse.emf.ecore.EcorePackage and org.eclipse.emf.ecore.xml.type.XMLTypePackage extend a common superclass

   116

       case XMLTypePackage.UNSIGNED_SHORT_OBJECT:

   47

       return convertEStringToString(eDataType, instanceValue);

   47 | return convertEStringToString(eDataType, instanceValue);
   117 | return convertUnsignedShortObjectToString(eDataType, instanceValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   convertEStringToString | convertUnsignedShortObjectToString | METHOD_INVOCATION_NAME_MISMATCH

   117

       return convertUnsignedShortObjectToString(eDataType, instanceValue);

   48

       default:

   118

       default:

   49

       throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");

   119

       throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");

   Precondition Violations (20)
   Row | Violation
   --- | ---
   1 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   2 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   3 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   4 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   5 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   6 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   7 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   8 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   9 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   10 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   11 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   12 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   13 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   14 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   15 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   16 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   17 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   18 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   19 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   20 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage