10440-1-2

return createEBooleanFromString(eDataType, initialValue); case EcorePackage.EBOOLEAN_OBJECT: return createEBooleanObjectFromString(eDataType, initialValue); case EcorePackage.EBYTE: return createEByteFromString(eDataType, initialValue); case EcorePackage.EBYTE_ARRAY: return createEByteArrayFromString(eDataType, initialValue); case EcorePackage.EBYTE_OBJECT: return createEByteObjectFromString(eDataType, initialValue); case EcorePackage.ECHAR: return createECharFromString(eDataType, initialValue); case EcorePackage.ECHARACTER_OBJECT: return createECharacterObjectFromString(eDataType, initialValue); case EcorePackage.EDATE: return createEDateFromString(eDataType, initialValue); case EcorePackage.EDOUBLE: return createEDoubleFromString(eDataType, initialValue); case EcorePackage.EDOUBLE_OBJECT: return createEDoubleObjectFromString(eDataType, initialValue); case EcorePackage.EFLOAT: return createEFloatFromString(eDataType, initialValue); case EcorePackage.EFLOAT_OBJECT: return createEFloatObjectFromString(eDataType, initialValue); case EcorePackage.EINT: return createEIntFromString(eDataType, initialValue); case EcorePackage.EINTEGER_OBJECT: return createEIntegerObjectFromString(eDataType, initialValue); case EcorePackage.EJAVA_CLASS: return createEJavaClassFromString(eDataType, initialValue); case EcorePackage.EJAVA_OBJECT: return createEJavaObjectFromString(eDataType, initialValue); case EcorePackage.ELONG: return createELongFromString(eDataType, initialValue); case EcorePackage.ELONG_OBJECT: return createELongObjectFromString(eDataType, initialValue); case EcorePackage.ESHORT: return createEShortFromString(eDataType, initialValue); case EcorePackage.ESHORT_OBJECT: return createEShortObjectFromString(eDataType, initialValue); case EcorePackage.ESTRING: return createEStringFromString(eDataType, initialValue); default: throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
return createNMTOKENFromString(eDataType, initialValue); case XMLTypePackage.NMTOKENS: return createNMTOKENSFromString(eDataType, initialValue); case XMLTypePackage.NMTOKENS_BASE: return createNMTOKENSBaseFromString(eDataType, initialValue); case XMLTypePackage.NON_NEGATIVE_INTEGER: return createNonNegativeIntegerFromString(eDataType, initialValue); case XMLTypePackage.NON_POSITIVE_INTEGER: return createNonPositiveIntegerFromString(eDataType, initialValue); case XMLTypePackage.NORMALIZED_STRING: return createNormalizedStringFromString(eDataType, initialValue); case XMLTypePackage.NOTATION: return createNOTATIONFromString(eDataType, initialValue); case XMLTypePackage.POSITIVE_INTEGER: return createPositiveIntegerFromString(eDataType, initialValue); case XMLTypePackage.QNAME: return createQNameFromString(eDataType, initialValue); case XMLTypePackage.SHORT: return createShortFromString(eDataType, initialValue); case XMLTypePackage.SHORT_OBJECT: return createShortObjectFromString(eDataType, initialValue); case XMLTypePackage.STRING: return createStringFromString(eDataType, initialValue); case XMLTypePackage.TIME: return createTimeFromString(eDataType, initialValue); case XMLTypePackage.TOKEN: return createTokenFromString(eDataType, initialValue); case XMLTypePackage.UNSIGNED_BYTE: return createUnsignedByteFromString(eDataType, initialValue); case XMLTypePackage.UNSIGNED_BYTE_OBJECT: return createUnsignedByteObjectFromString(eDataType, initialValue); case XMLTypePackage.UNSIGNED_INT: return createUnsignedIntFromString(eDataType, initialValue); case XMLTypePackage.UNSIGNED_INT_OBJECT: return createUnsignedIntObjectFromString(eDataType, initialValue); case XMLTypePackage.UNSIGNED_LONG: return createUnsignedLongFromString(eDataType, initialValue); case XMLTypePackage.UNSIGNED_SHORT: return createUnsignedShortFromString(eDataType, initialValue); case XMLTypePackage.UNSIGNED_SHORT_OBJECT: return createUnsignedShortObjectFromString(eDataType, initialValue); 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: `Object createFromString(EDataType, String)` |  | Method name: `Object createFromString(EDataType, String)`
Number of AST nodes: 43 |  | Number of AST nodes: 43

1

    return createEBooleanFromString(eDataType, initialValue);↵

1

    return createNMTOKENFromString(eDataType, initialValue);↵

2

          case EcorePackage.EBOOLEAN_OBJECT:↵

2

          case XMLTypePackage.NMTOKENS:↵

3

            return createEBooleanObjectFromString(eDataType, initialValue);↵

3

            return createNMTOKENSFromString(eDataType, initialValue);↵

4

          case EcorePackage.EBYTE:↵

4

          case XMLTypePackage.NMTOKENS_BASE:↵

5

            return createEByteFromString(eDataType, initialValue);↵

5

            return createNMTOKENSBaseFromString(eDataType, initialValue);↵

6

          case EcorePackage.EBYTE_ARRAY:↵

6

          case XMLTypePackage.NON_NEGATIVE_INTEGER:↵

7

            return createEByteArrayFromString(eDataType, initialValue);↵

7

            return createNonNegativeIntegerFromString(eDataType, initialValue);↵

8

          case EcorePackage.EBYTE_OBJECT:↵

8

          case XMLTypePackage.NON_POSITIVE_INTEGER:↵

9

            return createEByteObjectFromString(eDataType, initialValue);↵

9

            return createNonPositiveIntegerFromString(eDataType, initialValue);↵

10

          case EcorePackage.ECHAR:↵

10

          case XMLTypePackage.NORMALIZED_STRING:↵

11

            return createECharFromString(eDataType, initialValue);↵

11

            return createNormalizedStringFromString(eDataType, initialValue);↵

12

          case EcorePackage.ECHARACTER_OBJECT:↵

12

          case XMLTypePackage.NOTATION:↵

13

            return createECharacterObjectFromString(eDataType, initialValue);↵

13

            return createNOTATIONFromString(eDataType, initialValue);↵

14

          case EcorePackage.EDATE:↵

14

          case XMLTypePackage.POSITIVE_INTEGER:↵

15

            return createEDateFromString(eDataType, initialValue);↵

15

            return createPositiveIntegerFromString(eDataType, initialValue);↵

16

          case EcorePackage.EDOUBLE:↵

16

          case XMLTypePackage.QNAME:↵

17

            return createEDoubleFromString(eDataType, initialValue);↵

17

            return createQNameFromString(eDataType, initialValue);↵

18

          case EcorePackage.EDOUBLE_OBJECT:↵

18

          case XMLTypePackage.SHORT:↵

19

            return createEDoubleObjectFromString(eDataType, initialValue);↵

19

            return createShortFromString(eDataType, initialValue);↵

20

          case EcorePackage.EFLOAT:↵

20

          case XMLTypePackage.SHORT_OBJECT:↵

21

            return createEFloatFromString(eDataType, initialValue);↵

21

            return createShortObjectFromString(eDataType, initialValue);↵

22

          case EcorePackage.EFLOAT_OBJECT:↵

22

          case XMLTypePackage.STRING:↵

23

            return createEFloatObjectFromString(eDataType, initialValue);↵

23

            return createStringFromString(eDataType, initialValue);↵

24

          case EcorePackage.EINT:↵

24

          case XMLTypePackage.TIME:↵

25

            return createEIntFromString(eDataType, initialValue);↵

25

            return createTimeFromString(eDataType, initialValue);↵

26

          case EcorePackage.EINTEGER_OBJECT:↵

26

          case XMLTypePackage.TOKEN:↵

27

            return createEIntegerObjectFromString(eDataType, initialValue);↵

27

            return createTokenFromString(eDataType, initialValue);↵

28

          case EcorePackage.EJAVA_CLASS:↵

28

          case XMLTypePackage.UNSIGNED_BYTE:↵

29

            return createEJavaClassFromString(eDataType, initialValue);↵

29

            return createUnsignedByteFromString(eDataType, initialValue);↵

30

          case EcorePackage.EJAVA_OBJECT:↵

30

          case XMLTypePackage.UNSIGNED_BYTE_OBJECT:↵

31

            return createEJavaObjectFromString(eDataType, initialValue);↵

31

            return createUnsignedByteObjectFromString(eDataType, initialValue);↵

32

          case EcorePackage.ELONG:↵

32

          case XMLTypePackage.UNSIGNED_INT:↵

33

            return createELongFromString(eDataType, initialValue);↵

33

            return createUnsignedIntFromString(eDataType, initialValue);↵

34

          case EcorePackage.ELONG_OBJECT:↵

34

          case XMLTypePackage.UNSIGNED_INT_OBJECT:↵

35

            return createELongObjectFromString(eDataType, initialValue);↵

35

            return createUnsignedIntObjectFromString(eDataType, initialValue);↵

36

          case EcorePackage.ESHORT:↵

36

          case XMLTypePackage.UNSIGNED_LONG:↵

37

            return createEShortFromString(eDataType, initialValue);↵

37

            return createUnsignedLongFromString(eDataType, initialValue);↵

38

          case EcorePackage.ESHORT_OBJECT:↵

38

          case XMLTypePackage.UNSIGNED_SHORT:↵

39

            return createEShortObjectFromString(eDataType, initialValue);↵

39

            return createUnsignedShortFromString(eDataType, initialValue);↵

40

          case EcorePackage.ESTRING:↵

40

          case XMLTypePackage.UNSIGNED_SHORT_OBJECT:↵

41

            return createEStringFromString(eDataType, initialValue);↵

41

            return createUnsignedShortObjectFromString(eDataType, initialValue);↵

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 | 960

1. {Non-refactorable}

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

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

   7

       return createEBooleanFromString(eDataType, initialValue);

   7 | return createEBooleanFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createEBooleanFromString(eDataType,initialValue);

   77 | return createNMTOKENFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNMTOKENFromString(eDataType,initialValue);

   77

       return createNMTOKENFromString(eDataType, initialValue);

   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 createEBooleanObjectFromString(eDataType, initialValue);

   9 | return createEBooleanObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createEBooleanObjectFromString(eDataType,initialValue);

   79 | return createNMTOKENSFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNMTOKENSFromString(eDataType,initialValue);

   79

       return createNMTOKENSFromString(eDataType, initialValue);

   10

       case EcorePackage.EBYTE:

   10 | case EcorePackage.EBYTE:
   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 | 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:

   11

       return createEByteFromString(eDataType, initialValue);

   11 | return createEByteFromString(eDataType, initialValue);
   83 | return createNonNegativeIntegerFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEByteFromString | createNonNegativeIntegerFromString | METHOD_INVOCATION_NAME_MISMATCH

   83

       return createNonNegativeIntegerFromString(eDataType, initialValue);

   12

       case EcorePackage.EBYTE_ARRAY:

   12 | case EcorePackage.EBYTE_ARRAY:
   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_ARRAY | 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:

   13

       return createEByteArrayFromString(eDataType, initialValue);

   13 | return createEByteArrayFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createEByteArrayFromString(eDataType,initialValue);

   81 | return createNMTOKENSBaseFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNMTOKENSBaseFromString(eDataType,initialValue);

   81

       return createNMTOKENSBaseFromString(eDataType, initialValue);

   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 createEByteObjectFromString(eDataType, initialValue);

   15 | return createEByteObjectFromString(eDataType, initialValue);
   85 | return createNonPositiveIntegerFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEByteObjectFromString | createNonPositiveIntegerFromString | METHOD_INVOCATION_NAME_MISMATCH

   85

       return createNonPositiveIntegerFromString(eDataType, initialValue);

   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 createECharFromString(eDataType, initialValue);

   17 | return createECharFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createECharFromString(eDataType,initialValue);

   87 | return createNormalizedStringFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNormalizedStringFromString(eDataType,initialValue);

   87

       return createNormalizedStringFromString(eDataType, initialValue);

   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 createECharacterObjectFromString(eDataType, initialValue);

   19 | return createECharacterObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createECharacterObjectFromString(eDataType,initialValue);

   89 | return createNOTATIONFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNOTATIONFromString(eDataType,initialValue);

   89

       return createNOTATIONFromString(eDataType, initialValue);

   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 createEDateFromString(eDataType, initialValue);

   21 | return createEDateFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createEDateFromString(eDataType,initialValue);

   93 | return createQNameFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createQNameFromString(eDataType,initialValue);

   93

       return createQNameFromString(eDataType, initialValue);

   22

       case EcorePackage.EDOUBLE:

   22 | case EcorePackage.EDOUBLE:
   94 | case XMLTypePackage.SHORT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EDOUBLE | 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:

   23

       return createEDoubleFromString(eDataType, initialValue);

   23 | return createEDoubleFromString(eDataType, initialValue);
   95 | return createShortFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEDoubleFromString | createShortFromString | METHOD_INVOCATION_NAME_MISMATCH

   95

       return createShortFromString(eDataType, initialValue);

   24

       case EcorePackage.EDOUBLE_OBJECT:

   24 | case EcorePackage.EDOUBLE_OBJECT:
   96 | case XMLTypePackage.SHORT_OBJECT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EDOUBLE_OBJECT | 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:

   25

       return createEDoubleObjectFromString(eDataType, initialValue);

   25 | return createEDoubleObjectFromString(eDataType, initialValue);
   97 | return createShortObjectFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEDoubleObjectFromString | createShortObjectFromString | METHOD_INVOCATION_NAME_MISMATCH

   97

       return createShortObjectFromString(eDataType, initialValue);

   99 | return createStringFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createStringFromString(eDataType,initialValue);

   99

       return createStringFromString(eDataType, initialValue);

   26

       case EcorePackage.EFLOAT:

   26 | case EcorePackage.EFLOAT:
   104 | case XMLTypePackage.UNSIGNED_BYTE:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EFLOAT | 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:

   27

       return createEFloatFromString(eDataType, initialValue);

   27 | return createEFloatFromString(eDataType, initialValue);
   105 | return createUnsignedByteFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEFloatFromString | createUnsignedByteFromString | METHOD_INVOCATION_NAME_MISMATCH

   105

       return createUnsignedByteFromString(eDataType, initialValue);

   28

       case EcorePackage.EFLOAT_OBJECT:

   28 | case EcorePackage.EFLOAT_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
   EFLOAT_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:

   29

       return createEFloatObjectFromString(eDataType, initialValue);

   29 | return createEFloatObjectFromString(eDataType, initialValue);
   107 | return createUnsignedByteObjectFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEFloatObjectFromString | createUnsignedByteObjectFromString | METHOD_INVOCATION_NAME_MISMATCH

   107

       return createUnsignedByteObjectFromString(eDataType, initialValue);

   30

       case EcorePackage.EINT:

   30 | case EcorePackage.EINT:
   108 | case XMLTypePackage.UNSIGNED_INT:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EINT | 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:

   31

       return createEIntFromString(eDataType, initialValue);

   31 | return createEIntFromString(eDataType, initialValue);
   109 | return createUnsignedIntFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEIntFromString | createUnsignedIntFromString | METHOD_INVOCATION_NAME_MISMATCH

   109

       return createUnsignedIntFromString(eDataType, initialValue);

   32

       case EcorePackage.EINTEGER_OBJECT:

   32 | case EcorePackage.EINTEGER_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
   EINTEGER_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:

   33

       return createEIntegerObjectFromString(eDataType, initialValue);

   33 | return createEIntegerObjectFromString(eDataType, initialValue);
   111 | return createUnsignedIntObjectFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEIntegerObjectFromString | createUnsignedIntObjectFromString | METHOD_INVOCATION_NAME_MISMATCH

   111

       return createUnsignedIntObjectFromString(eDataType, initialValue);

   34

       case EcorePackage.EJAVA_CLASS:

   34 | case EcorePackage.EJAVA_CLASS:
   92 | case XMLTypePackage.QNAME:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EJAVA_CLASS | 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:

   35

       return createEJavaClassFromString(eDataType, initialValue);

   35 | return createEJavaClassFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createEJavaClassFromString(eDataType,initialValue);

   36

       case EcorePackage.EJAVA_OBJECT:

   36 | case EcorePackage.EJAVA_OBJECT:
   100 | case XMLTypePackage.TIME:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   EJAVA_OBJECT | 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:

   37

       return createEJavaObjectFromString(eDataType, initialValue);

   37 | return createEJavaObjectFromString(eDataType, initialValue);
   101 | return createTimeFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEJavaObjectFromString | createTimeFromString | METHOD_INVOCATION_NAME_MISMATCH

   101

       return createTimeFromString(eDataType, initialValue);

   38

       case EcorePackage.ELONG:

   38 | case EcorePackage.ELONG:
   112 | case XMLTypePackage.UNSIGNED_LONG:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   ELONG | 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:

   39

       return createELongFromString(eDataType, initialValue);

   39 | return createELongFromString(eDataType, initialValue);
   113 | return createUnsignedLongFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createELongFromString | createUnsignedLongFromString | METHOD_INVOCATION_NAME_MISMATCH

   113

       return createUnsignedLongFromString(eDataType, initialValue);

   40

       case EcorePackage.ELONG_OBJECT:

   40 | case EcorePackage.ELONG_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
   ELONG_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:

   41

       return createELongObjectFromString(eDataType, initialValue);

   41 | return createELongObjectFromString(eDataType, initialValue);
   115 | return createUnsignedShortFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createELongObjectFromString | createUnsignedShortFromString | METHOD_INVOCATION_NAME_MISMATCH

   115

       return createUnsignedShortFromString(eDataType, initialValue);

   42

       case EcorePackage.ESHORT:

   42 | case EcorePackage.ESHORT:
   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
   ESHORT | 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:

   43

       return createEShortFromString(eDataType, initialValue);

   43 | return createEShortFromString(eDataType, initialValue);
   117 | return createUnsignedShortObjectFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEShortFromString | createUnsignedShortObjectFromString | METHOD_INVOCATION_NAME_MISMATCH

   117

       return createUnsignedShortObjectFromString(eDataType, initialValue);

   44

       case EcorePackage.ESHORT_OBJECT:

   44 | case EcorePackage.ESHORT_OBJECT:
   98 | case XMLTypePackage.STRING:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   ESHORT_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:

   45

       return createEShortObjectFromString(eDataType, initialValue);

   45 | return createEShortObjectFromString(eDataType, initialValue);
   91 | return createPositiveIntegerFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEShortObjectFromString | createPositiveIntegerFromString | METHOD_INVOCATION_NAME_MISMATCH

   91

       return createPositiveIntegerFromString(eDataType, initialValue);

   46

       case EcorePackage.ESTRING:

   46 | case EcorePackage.ESTRING:
   102 | case XMLTypePackage.TOKEN:

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   org.eclipse.emf.ecore.EcorePackage | org.eclipse.emf.ecore.xml.type.XMLTypePackage | VARIABLE_TYPE_MISMATCH
   ESTRING | 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:

   47

       return createEStringFromString(eDataType, initialValue);

   47 | return createEStringFromString(eDataType, initialValue);
   103 | return createTokenFromString(eDataType, initialValue);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   createEStringFromString | createTokenFromString | METHOD_INVOCATION_NAME_MISMATCH

   103

       return createTokenFromString(eDataType, initialValue);

   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 (34)
   Row | Violation
   --- | ---
   1 | Unmatched return createEBooleanFromString(eDataType,initialValue);
   2 | Unmatched return createNMTOKENFromString(eDataType,initialValue);
   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 | Unmatched return createEBooleanObjectFromString(eDataType,initialValue);
   5 | Unmatched return createNMTOKENSFromString(eDataType,initialValue);
   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 | Unmatched return createEByteArrayFromString(eDataType,initialValue);
   9 | Unmatched return createNMTOKENSBaseFromString(eDataType,initialValue);
   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 | Unmatched return createECharFromString(eDataType,initialValue);
   13 | Unmatched return createNormalizedStringFromString(eDataType,initialValue);
   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 | Unmatched return createECharacterObjectFromString(eDataType,initialValue);
   16 | Unmatched return createNOTATIONFromString(eDataType,initialValue);
   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 | Unmatched return createEDateFromString(eDataType,initialValue);
   19 | Unmatched return createQNameFromString(eDataType,initialValue);
   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
   21 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   22 | Unmatched return createStringFromString(eDataType,initialValue);
   23 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   24 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   25 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   26 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   27 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   28 | Unmatched return createEJavaClassFromString(eDataType,initialValue);
   29 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   30 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   31 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   32 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   33 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage
   34 | Type org.eclipse.emf.ecore.EcorePackage of variable EcorePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage