10464-1-2

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"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String convertToString(EDataType eDataType, Object instanceValue) { switch (eDataType.getClassifierID()) { case EcorePackage.EBIG_DECIMAL: return convertEBigDecimalToString(eDataType, instanceValue); case EcorePackage.EBIG_INTEGER: return convertEBigIntegerToString(eDataType, instanceValue); case EcorePackage.EBOOLEAN: 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
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"); } } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String convertToString(EDataType eDataType, Object instanceValue) { switch (eDataType.getClassifierID()) { case XMLTypePackage.ANY_SIMPLE_TYPE: return convertAnySimpleTypeToString(eDataType, instanceValue); case XMLTypePackage.ANY_URI: return convertAnyURIToString(eDataType, instanceValue); case XMLTypePackage.BASE64_BINARY: return convertBase64BinaryToString(eDataType, instanceValue); case XMLTypePackage.BOOLEAN: return convertBooleanToString(eDataType, instanceValue); case XMLTypePackage.BOOLEAN_OBJECT: return convertBooleanObjectToString(eDataType, instanceValue); case XMLTypePackage.BYTE: return convertByteToString(eDataType, instanceValue); case XMLTypePackage.BYTE_OBJECT: return convertByteObjectToString(eDataType, instanceValue); case XMLTypePackage.DATE: return convertDateToString(eDataType, instanceValue); case XMLTypePackage.DATE_TIME: return convertDateTimeToString(eDataType, instanceValue); case XMLTypePackage.DECIMAL: return convertDecimalToString(eDataType, instanceValue); case XMLTypePackage.DOUBLE: return convertDoubleToString(eDataType, instanceValue); case

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: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    return createEDoubleFromString(eDataType, initialValue);↵

1

    return createQNameFromString(eDataType, initialValue);↵

2

          case EcorePackage.EDOUBLE_OBJECT:↵

2

          case XMLTypePackage.SHORT:↵

3

            return createEDoubleObjectFromString(eDataType, initialValue);↵

3

            return createShortFromString(eDataType, initialValue);↵

4

          case EcorePackage.EFLOAT:↵

4

          case XMLTypePackage.SHORT_OBJECT:↵

5

            return createEFloatFromString(eDataType, initialValue);↵

5

            return createShortObjectFromString(eDataType, initialValue);↵

6

          case EcorePackage.EFLOAT_OBJECT:↵

6

          case XMLTypePackage.STRING:↵

7

            return createEFloatObjectFromString(eDataType, initialValue);↵

7

            return createStringFromString(eDataType, initialValue);↵

8

          case EcorePackage.EINT:↵

8

          case XMLTypePackage.TIME:↵

9

            return createEIntFromString(eDataType, initialValue);↵

9

            return createTimeFromString(eDataType, initialValue);↵

10

          case EcorePackage.EINTEGER_OBJECT:↵

10

          case XMLTypePackage.TOKEN:↵

11

            return createEIntegerObjectFromString(eDataType, initialValue);↵

11

            return createTokenFromString(eDataType, initialValue);↵

12

          case EcorePackage.EJAVA_CLASS:↵

12

          case XMLTypePackage.UNSIGNED_BYTE:↵

13

            return createEJavaClassFromString(eDataType, initialValue);↵

13

            return createUnsignedByteFromString(eDataType, initialValue);↵

14

          case EcorePackage.EJAVA_OBJECT:↵

14

          case XMLTypePackage.UNSIGNED_BYTE_OBJECT:↵

15

            return createEJavaObjectFromString(eDataType, initialValue);↵

15

            return createUnsignedByteObjectFromString(eDataType, initialValue);↵

16

          case EcorePackage.ELONG:↵

16

          case XMLTypePackage.UNSIGNED_INT:↵

17

            return createELongFromString(eDataType, initialValue);↵

17

            return createUnsignedIntFromString(eDataType, initialValue);↵

18

          case EcorePackage.ELONG_OBJECT:↵

18

          case XMLTypePackage.UNSIGNED_INT_OBJECT:↵

19

            return createELongObjectFromString(eDataType, initialValue);↵

19

            return createUnsignedIntObjectFromString(eDataType, initialValue);↵

20

          case EcorePackage.ESHORT:↵

20

          case XMLTypePackage.UNSIGNED_LONG:↵

21

            return createEShortFromString(eDataType, initialValue);↵

21

            return createUnsignedLongFromString(eDataType, initialValue);↵

22

          case EcorePackage.ESHORT_OBJECT:↵

22

          case XMLTypePackage.UNSIGNED_SHORT:↵

23

            return createEShortObjectFromString(eDataType, initialValue);↵

23

            return createUnsignedShortFromString(eDataType, initialValue);↵

24

          case EcorePackage.ESTRING:↵

24

          case XMLTypePackage.UNSIGNED_SHORT_OBJECT:↵

25

            return createEStringFromString(eDataType, initialValue);↵

25

            return createUnsignedShortObjectFromString(eDataType, initialValue);↵

26

          default:↵

26

          default:↵

27

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

27

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

28

        }↵

28

        }↵

29

      }↵

29

      }↵

30

      /**↵

30

      /**↵

31

       * <!-- begin-user-doc -->↵

31

       * <!-- begin-user-doc -->↵

32

       * <!-- end-user-doc -->↵

32

       * <!-- end-user-doc -->↵

33

       * @generated↵

33

       * @generated↵

34

       */↵

34

       */↵

35

      @Override↵

35

      @Override↵

36

      public String convertToString(EDataType eDataType, Object instanceValue)↵

36

      public String convertToString(EDataType eDataType, Object instanceValue)↵

37

      {↵

37

      {↵

38

        switch (eDataType.getClassifierID())↵

38

        switch (eDataType.getClassifierID())↵

39

        {↵

39

        {↵

40

          case EcorePackage.EBIG_DECIMAL:↵

40

          case XMLTypePackage.ANY_SIMPLE_TYPE:↵

41

            return convertEBigDecimalToString(eDataType, instanceValue);↵

41

            return convertAnySimpleTypeToString(eDataType, instanceValue);↵

42

          case EcorePackage.EBIG_INTEGER:↵

42

          case XMLTypePackage.ANY_URI:↵

43

            return convertEBigIntegerToString(eDataType, instanceValue);↵

43

            return convertAnyURIToString(eDataType, instanceValue);↵

44

          case EcorePackage.EBOOLEAN:↵

44

          case XMLTypePackage.BASE64_BINARY:↵

45

            return convertEBooleanToString(eDataType, instanceValue);↵

45

            return convertBase64BinaryToString(eDataType, instanceValue);↵

46

          case EcorePackage.EBOOLEAN_OBJECT:↵

46

          case XMLTypePackage.BOOLEAN:↵

47

            return convertEBooleanObjectToString(eDataType, instanceValue);↵

47

            return convertBooleanToString(eDataType, instanceValue);↵

48

          case EcorePackage.EBYTE:↵

48

          case XMLTypePackage.BOOLEAN_OBJECT:↵

49

            return convertEByteToString(eDataType, instanceValue);↵

49

            return convertBooleanObjectToString(eDataType, instanceValue);↵

50

          case EcorePackage.EBYTE_ARRAY:↵

50

          case XMLTypePackage.BYTE:↵

51

            return convertEByteArrayToString(eDataType, instanceValue);↵

51

            return convertByteToString(eDataType, instanceValue);↵

52

          case EcorePackage.EBYTE_OBJECT:↵

52

          case XMLTypePackage.BYTE_OBJECT:↵

53

            return convertEByteObjectToString(eDataType, instanceValue);↵

53

            return convertByteObjectToString(eDataType, instanceValue);↵

54

          case EcorePackage.ECHAR:↵

54

          case XMLTypePackage.DATE:↵

55

            return convertECharToString(eDataType, instanceValue);↵

55

            return convertDateToString(eDataType, instanceValue);↵

56

          case EcorePackage.ECHARACTER_OBJECT:↵

56

          case XMLTypePackage.DATE_TIME:↵

57

            return convertECharacterObjectToString(eDataType, instanceValue);↵

57

            return convertDateTimeToString(eDataType, instanceValue);↵

58

          case EcorePackage.EDATE:↵

58

          case XMLTypePackage.DECIMAL:↵

59

            return convertEDateToString(eDataType, instanceValue);↵

59

            return convertDecimalToString(eDataType, instanceValue);↵

60

          case EcorePackage.EDOUBLE:↵

60

          case XMLTypePackage.DOUBLE:↵

61

            return convertEDoubleToString(eDataType, instanceValue);↵

61

            return convertDoubleToString(eDataType, instanceValue);↵

62

          case

62

          case

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0