10488-1-2

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 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
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 XMLTypePackage.DOUBLE_OBJECT: return convertDoubleObjectToString(eDataType, instanceValue); case XMLTypePackage.DURATION: return convertDurationToString(eDataType, instanceValue); case XMLTypePackage.ENTITIES: return convertENTITIESToString(eDataType, instanceValue); case XMLTypePackage.ENTITIES_BASE: return convertENTITIESBaseToString(eDataType, instanceValue); case XMLTypePackage.ENTITY: return convertENTITYToString(eDataType, instanceValue); case XMLTypePackage.FLOAT: return convertFloatToString(eDataType, instanceValue); case XMLTypePackage.FLOAT_OBJECT: return convertFloatObjectToString(eDataType, instanceValue); case XMLTypePackage.GDAY: return convertGDayToString(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 createELongFromString(eDataType, initialValue);↵

1

    return createUnsignedIntFromString(eDataType, initialValue);↵

2

          case EcorePackage.ELONG_OBJECT:↵

2

          case XMLTypePackage.UNSIGNED_INT_OBJECT:↵

3

            return createELongObjectFromString(eDataType, initialValue);↵

3

            return createUnsignedIntObjectFromString(eDataType, initialValue);↵

4

          case EcorePackage.ESHORT:↵

4

          case XMLTypePackage.UNSIGNED_LONG:↵

5

            return createEShortFromString(eDataType, initialValue);↵

5

            return createUnsignedLongFromString(eDataType, initialValue);↵

6

          case EcorePackage.ESHORT_OBJECT:↵

6

          case XMLTypePackage.UNSIGNED_SHORT:↵

7

            return createEShortObjectFromString(eDataType, initialValue);↵

7

            return createUnsignedShortFromString(eDataType, initialValue);↵

8

          case EcorePackage.ESTRING:↵

8

          case XMLTypePackage.UNSIGNED_SHORT_OBJECT:↵

9

            return createEStringFromString(eDataType, initialValue);↵

9

            return createUnsignedShortObjectFromString(eDataType, initialValue);↵

10

          default:↵

10

          default:↵

11

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

11

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

12

        }↵

12

        }↵

13

      }↵

13

      }↵

14

      /**↵

14

      /**↵

15

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

15

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

16

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

16

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

17

       * @generated↵

17

       * @generated↵

18

       */↵

18

       */↵

19

      @Override↵

19

      @Override↵

20

      public String convertToString(EDataType eDataType, Object instanceValue)↵

20

      public String convertToString(EDataType eDataType, Object instanceValue)↵

21

      {↵

21

      {↵

22

        switch (eDataType.getClassifierID())↵

22

        switch (eDataType.getClassifierID())↵

23

        {↵

23

        {↵

24

          case EcorePackage.EBIG_DECIMAL:↵

24

          case XMLTypePackage.ANY_SIMPLE_TYPE:↵

25

            return convertEBigDecimalToString(eDataType, instanceValue);↵

25

            return convertAnySimpleTypeToString(eDataType, instanceValue);↵

26

          case EcorePackage.EBIG_INTEGER:↵

26

          case XMLTypePackage.ANY_URI:↵

27

            return convertEBigIntegerToString(eDataType, instanceValue);↵

27

            return convertAnyURIToString(eDataType, instanceValue);↵

28

          case EcorePackage.EBOOLEAN:↵

28

          case XMLTypePackage.BASE64_BINARY:↵

29

            return convertEBooleanToString(eDataType, instanceValue);↵

29

            return convertBase64BinaryToString(eDataType, instanceValue);↵

30

          case EcorePackage.EBOOLEAN_OBJECT:↵

30

          case XMLTypePackage.BOOLEAN:↵

31

            return convertEBooleanObjectToString(eDataType, instanceValue);↵

31

            return convertBooleanToString(eDataType, instanceValue);↵

32

          case EcorePackage.EBYTE:↵

32

          case XMLTypePackage.BOOLEAN_OBJECT:↵

33

            return convertEByteToString(eDataType, instanceValue);↵

33

            return convertBooleanObjectToString(eDataType, instanceValue);↵

34

          case EcorePackage.EBYTE_ARRAY:↵

34

          case XMLTypePackage.BYTE:↵

35

            return convertEByteArrayToString(eDataType, instanceValue);↵

35

            return convertByteToString(eDataType, instanceValue);↵

36

          case EcorePackage.EBYTE_OBJECT:↵

36

          case XMLTypePackage.BYTE_OBJECT:↵

37

            return convertEByteObjectToString(eDataType, instanceValue);↵

37

            return convertByteObjectToString(eDataType, instanceValue);↵

38

          case EcorePackage.ECHAR:↵

38

          case XMLTypePackage.DATE:↵

39

            return convertECharToString(eDataType, instanceValue);↵

39

            return convertDateToString(eDataType, instanceValue);↵

40

          case EcorePackage.ECHARACTER_OBJECT:↵

40

          case XMLTypePackage.DATE_TIME:↵

41

            return convertECharacterObjectToString(eDataType, instanceValue);↵

41

            return convertDateTimeToString(eDataType, instanceValue);↵

42

          case EcorePackage.EDATE:↵

42

          case XMLTypePackage.DECIMAL:↵

43

            return convertEDateToString(eDataType, instanceValue);↵

43

            return convertDecimalToString(eDataType, instanceValue);↵

44

          case EcorePackage.EDOUBLE:↵

44

          case XMLTypePackage.DOUBLE:↵

45

            return convertEDoubleToString(eDataType, instanceValue);↵

45

            return convertDoubleToString(eDataType, instanceValue);↵

46

          case EcorePackage.EDOUBLE_OBJECT:↵

46

          case XMLTypePackage.DOUBLE_OBJECT:↵

47

            return convertEDoubleObjectToString(eDataType, instanceValue);↵

47

            return convertDoubleObjectToString(eDataType, instanceValue);↵

48

          case EcorePackage.EFLOAT:↵

48

          case XMLTypePackage.DURATION:↵

49

            return convertEFloatToString(eDataType, instanceValue);↵

49

            return convertDurationToString(eDataType, instanceValue);↵

50

          case EcorePackage.EFLOAT_OBJECT:↵

50

          case XMLTypePackage.ENTITIES:↵

51

            return convertEFloatObjectToString(eDataType, instanceValue);↵

51

            return convertENTITIESToString(eDataType, instanceValue);↵

52

          case EcorePackage.EINT:↵

52

          case XMLTypePackage.ENTITIES_BASE:↵

53

            return convertEIntToString(eDataType, instanceValue);↵

53

            return convertENTITIESBaseToString(eDataType, instanceValue);↵

54

          case EcorePackage.EINTEGER_OBJECT:↵

54

          case XMLTypePackage.ENTITY:↵

55

            return convertEIntegerObjectToString(eDataType, instanceValue);↵

55

            return convertENTITYToString(eDataType, instanceValue);↵

56

          case EcorePackage.EJAVA_CLASS:↵

56

          case XMLTypePackage.FLOAT:↵

57

            return convertEJavaClassToString(eDataType, instanceValue);↵

57

            return convertFloatToString(eDataType, instanceValue);↵

58

          case EcorePackage.EJAVA_OBJECT:↵

58

          case XMLTypePackage.FLOAT_OBJECT:↵

59

            return convertEJavaObjectToString(eDataType, instanceValue);↵

59

            return convertFloatObjectToString(eDataType, instanceValue);↵

60

          case EcorePackage.ELONG:↵

60

          case XMLTypePackage.GDAY:↵

61

            return convertELongToString(eDataType, instanceValue);↵

61

            return convertGDayToString(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