10598-1-2

switch (eDataType.getClassifierID()) { case XMLTypePackage.ANY_SIMPLE_TYPE: return createAnySimpleTypeFromString(eDataType, initialValue); case XMLTypePackage.ANY_URI: return createAnyURIFromString(eDataType, initialValue); case XMLTypePackage.BASE64_BINARY: return createBase64BinaryFromString(eDataType, initialValue); case XMLTypePackage.BOOLEAN: return createBooleanFromString(eDataType, initialValue); case XMLTypePackage.BOOLEAN_OBJECT: return createBooleanObjectFromString(eDataType, initialValue); case XMLTypePackage.BYTE: return createByteFromString(eDataType, initialValue); case XMLTypePackage.BYTE_OBJECT: return createByteObjectFromString(eDataType, initialValue); case XMLTypePackage.DATE: return createDateFromString(eDataType, initialValue); case XMLTypePackage.DATE_TIME: return createDateTimeFromString(eDataType, initialValue); case XMLTypePackage.DECIMAL: return createDecimalFromString(eDataType, initialValue); case XMLTypePackage.DOUBLE: return createDoubleFromString(eDataType, initialValue); case XMLTypePackage.DOUBLE_OBJECT: return createDoubleObjectFromString(eDataType, initialValue); case XMLTypePackage.DURATION: return createDurationFromString(eDataType, initialValue); case XMLTypePackage.ENTITIES: return createENTITIESFromString(eDataType, initialValue); case XMLTypePackage.ENTITIES_BASE: return createENTITIESBaseFromString(eDataType, initialValue); case XMLTypePackage.ENTITY: return createENTITYFromString(eDataType, initialValue); case XMLTypePackage.FLOAT: return createFloatFromString(eDataType, initialValue); case XMLTypePackage.FLOAT_OBJECT: return createFloatObjectFromString(eDataType, initialValue); case XMLTypePackage.GDAY: return createGDayFromString(eDataType, initialValue); case XMLTypePackage.GMONTH: return createGMonthFromString(eDataType, initialValue); case XMLTypePackage.GMONTH_DAY: return createGMonthDayFromString(eDataType, initialValue); case XMLTypePackage.GYEAR: return createGYearFromString(eDataType, initialValue); case XMLTypePackage.GYEAR_MONTH: return createGYearMonthFromString(eDataType, initialValue); case XMLTypePackage.HEX_BINARY: return createHexBinaryFromString(eDataType, initialValue); case XMLTypePackage.ID: return createIDFromString(eDataType, initialValue); case XMLTypePackage.IDREF: return createIDREFFromString(eDataType, initialValue); case XMLTypePackage.IDREFS: return createIDREFSFromString(eDataType, initialValue); case XMLTypePackage.IDREFS_BASE: return createIDREFSBaseFromString(eDataType, initialValue); case XMLTypePackage.INT: return createIntFromString(eDataType, initialValue); case XMLTypePackage.INTEGER: return createIntegerFromString(eDataType, initialValue); case XMLTypePackage.INT_OBJECT: return createIntObjectFromString(eDataType, initialValue); case XMLTypePackage.LANGUAGE: return createLanguageFromString(eDataType, initialValue); case XMLTypePackage.LONG: return createLongFromString(eDataType, initialValue); case XMLTypePackage.LONG_OBJECT: return createLongObjectFromString(eDataType, initialValue); case XMLTypePackage.NAME: return createNameFromString(eDataType, initialValue); case XMLTypePackage.NC_NAME: return createNCNameFromString(eDataType, initialValue); case XMLTypePackage.NEGATIVE_INTEGER: return createNegativeIntegerFromString(eDataType, initialValue); case XMLTypePackage.NMTOKEN: 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"); }
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 XMLTypePackage.GMONTH: return convertGMonthToString(eDataType, instanceValue); case XMLTypePackage.GMONTH_DAY: return convertGMonthDayToString(eDataType, instanceValue); case XMLTypePackage.GYEAR: return convertGYearToString(eDataType, instanceValue); case XMLTypePackage.GYEAR_MONTH: return convertGYearMonthToString(eDataType, instanceValue); case XMLTypePackage.HEX_BINARY: return convertHexBinaryToString(eDataType, instanceValue); case XMLTypePackage.ID: return convertIDToString(eDataType, instanceValue); case XMLTypePackage.IDREF: return convertIDREFToString(eDataType, instanceValue); case XMLTypePackage.IDREFS: return convertIDREFSToString(eDataType, instanceValue); case XMLTypePackage.IDREFS_BASE: return convertIDREFSBaseToString(eDataType, instanceValue); case XMLTypePackage.INT: return convertIntToString(eDataType, instanceValue); case XMLTypePackage.INTEGER: return convertIntegerToString(eDataType, instanceValue); case XMLTypePackage.INT_OBJECT: return convertIntObjectToString(eDataType, instanceValue); case XMLTypePackage.LANGUAGE: return convertLanguageToString(eDataType, instanceValue); case XMLTypePackage.LONG: return convertLongToString(eDataType, instanceValue); case XMLTypePackage.LONG_OBJECT: return convertLongObjectToString(eDataType, instanceValue); case XMLTypePackage.NAME: return convertNameToString(eDataType, instanceValue); case XMLTypePackage.NC_NAME: return convertNCNameToString(eDataType, instanceValue); case XMLTypePackage.NEGATIVE_INTEGER: return convertNegativeIntegerToString(eDataType, instanceValue); case XMLTypePackage.NMTOKEN: 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/xml/type/impl/XMLTypeFactoryImpl.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: `String convertToString(EDataType, Object)`
Number of AST nodes: 119 |  | Number of AST nodes: 119

1

    switch (eDataType.getClassifierID())↵

1

    switch (eDataType.getClassifierID())↵

2

        {↵

2

        {↵

3

          case XMLTypePackage.ANY_SIMPLE_TYPE:↵

3

          case XMLTypePackage.ANY_SIMPLE_TYPE:↵

4

            return createAnySimpleTypeFromString(eDataType, initialValue);↵

4

            return convertAnySimpleTypeToString(eDataType, instanceValue);↵

5

          case XMLTypePackage.ANY_URI:↵

5

          case XMLTypePackage.ANY_URI:↵

6

            return createAnyURIFromString(eDataType, initialValue);↵

6

            return convertAnyURIToString(eDataType, instanceValue);↵

7

          case XMLTypePackage.BASE64_BINARY:↵

7

          case XMLTypePackage.BASE64_BINARY:↵

8

            return createBase64BinaryFromString(eDataType, initialValue);↵

8

            return convertBase64BinaryToString(eDataType, instanceValue);↵

9

          case XMLTypePackage.BOOLEAN:↵

9

          case XMLTypePackage.BOOLEAN:↵

10

            return createBooleanFromString(eDataType, initialValue);↵

10

            return convertBooleanToString(eDataType, instanceValue);↵

11

          case XMLTypePackage.BOOLEAN_OBJECT:↵

11

          case XMLTypePackage.BOOLEAN_OBJECT:↵

12

            return createBooleanObjectFromString(eDataType, initialValue);↵

12

            return convertBooleanObjectToString(eDataType, instanceValue);↵

13

          case XMLTypePackage.BYTE:↵

13

          case XMLTypePackage.BYTE:↵

14

            return createByteFromString(eDataType, initialValue);↵

14

            return convertByteToString(eDataType, instanceValue);↵

15

          case XMLTypePackage.BYTE_OBJECT:↵

15

          case XMLTypePackage.BYTE_OBJECT:↵

16

            return createByteObjectFromString(eDataType, initialValue);↵

16

            return convertByteObjectToString(eDataType, instanceValue);↵

17

          case XMLTypePackage.DATE:↵

17

          case XMLTypePackage.DATE:↵

18

            return createDateFromString(eDataType, initialValue);↵

18

            return convertDateToString(eDataType, instanceValue);↵

19

          case XMLTypePackage.DATE_TIME:↵

19

          case XMLTypePackage.DATE_TIME:↵

20

            return createDateTimeFromString(eDataType, initialValue);↵

20

            return convertDateTimeToString(eDataType, instanceValue);↵

21

          case XMLTypePackage.DECIMAL:↵

21

          case XMLTypePackage.DECIMAL:↵

22

            return createDecimalFromString(eDataType, initialValue);↵

22

            return convertDecimalToString(eDataType, instanceValue);↵

23

          case XMLTypePackage.DOUBLE:↵

23

          case XMLTypePackage.DOUBLE:↵

24

            return createDoubleFromString(eDataType, initialValue);↵

24

            return convertDoubleToString(eDataType, instanceValue);↵

25

          case XMLTypePackage.DOUBLE_OBJECT:↵

25

          case XMLTypePackage.DOUBLE_OBJECT:↵

26

            return createDoubleObjectFromString(eDataType, initialValue);↵

26

            return convertDoubleObjectToString(eDataType, instanceValue);↵

27

          case XMLTypePackage.DURATION:↵

27

          case XMLTypePackage.DURATION:↵

28

            return createDurationFromString(eDataType, initialValue);↵

28

            return convertDurationToString(eDataType, instanceValue);↵

29

          case XMLTypePackage.ENTITIES:↵

29

          case XMLTypePackage.ENTITIES:↵

30

            return createENTITIESFromString(eDataType, initialValue);↵

30

            return convertENTITIESToString(eDataType, instanceValue);↵

31

          case XMLTypePackage.ENTITIES_BASE:↵

31

          case XMLTypePackage.ENTITIES_BASE:↵

32

            return createENTITIESBaseFromString(eDataType, initialValue);↵

32

            return convertENTITIESBaseToString(eDataType, instanceValue);↵

33

          case XMLTypePackage.ENTITY:↵

33

          case XMLTypePackage.ENTITY:↵

34

            return createENTITYFromString(eDataType, initialValue);↵

34

            return convertENTITYToString(eDataType, instanceValue);↵

35

          case XMLTypePackage.FLOAT:↵

35

          case XMLTypePackage.FLOAT:↵

36

            return createFloatFromString(eDataType, initialValue);↵

36

            return convertFloatToString(eDataType, instanceValue);↵

37

          case XMLTypePackage.FLOAT_OBJECT:↵

37

          case XMLTypePackage.FLOAT_OBJECT:↵

38

            return createFloatObjectFromString(eDataType, initialValue);↵

38

            return convertFloatObjectToString(eDataType, instanceValue);↵

39

          case XMLTypePackage.GDAY:↵

39

          case XMLTypePackage.GDAY:↵

40

            return createGDayFromString(eDataType, initialValue);↵

40

            return convertGDayToString(eDataType, instanceValue);↵

41

          case XMLTypePackage.GMONTH:↵

41

          case XMLTypePackage.GMONTH:↵

42

            return createGMonthFromString(eDataType, initialValue);↵

42

            return convertGMonthToString(eDataType, instanceValue);↵

43

          case XMLTypePackage.GMONTH_DAY:↵

43

          case XMLTypePackage.GMONTH_DAY:↵

44

            return createGMonthDayFromString(eDataType, initialValue);↵

44

            return convertGMonthDayToString(eDataType, instanceValue);↵

45

          case XMLTypePackage.GYEAR:↵

45

          case XMLTypePackage.GYEAR:↵

46

            return createGYearFromString(eDataType, initialValue);↵

46

            return convertGYearToString(eDataType, instanceValue);↵

47

          case XMLTypePackage.GYEAR_MONTH:↵

47

          case XMLTypePackage.GYEAR_MONTH:↵

48

            return createGYearMonthFromString(eDataType, initialValue);↵

48

            return convertGYearMonthToString(eDataType, instanceValue);↵

49

          case XMLTypePackage.HEX_BINARY:↵

49

          case XMLTypePackage.HEX_BINARY:↵

50

            return createHexBinaryFromString(eDataType, initialValue);↵

50

            return convertHexBinaryToString(eDataType, instanceValue);↵

51

          case XMLTypePackage.ID:↵

51

          case XMLTypePackage.ID:↵

52

            return createIDFromString(eDataType, initialValue);↵

52

            return convertIDToString(eDataType, instanceValue);↵

53

          case XMLTypePackage.IDREF:↵

53

          case XMLTypePackage.IDREF:↵

54

            return createIDREFFromString(eDataType, initialValue);↵

54

            return convertIDREFToString(eDataType, instanceValue);↵

55

          case XMLTypePackage.IDREFS:↵

55

          case XMLTypePackage.IDREFS:↵

56

            return createIDREFSFromString(eDataType, initialValue);↵

56

            return convertIDREFSToString(eDataType, instanceValue);↵

57

          case XMLTypePackage.IDREFS_BASE:↵

57

          case XMLTypePackage.IDREFS_BASE:↵

58

            return createIDREFSBaseFromString(eDataType, initialValue);↵

58

            return convertIDREFSBaseToString(eDataType, instanceValue);↵

59

          case XMLTypePackage.INT:↵

59

          case XMLTypePackage.INT:↵

60

            return createIntFromString(eDataType, initialValue);↵

60

            return convertIntToString(eDataType, instanceValue);↵

61

          case XMLTypePackage.INTEGER:↵

61

          case XMLTypePackage.INTEGER:↵

62

            return createIntegerFromString(eDataType, initialValue);↵

62

            return convertIntegerToString(eDataType, instanceValue);↵

63

          case XMLTypePackage.INT_OBJECT:↵

63

          case XMLTypePackage.INT_OBJECT:↵

64

            return createIntObjectFromString(eDataType, initialValue);↵

64

            return convertIntObjectToString(eDataType, instanceValue);↵

65

          case XMLTypePackage.LANGUAGE:↵

65

          case XMLTypePackage.LANGUAGE:↵

66

            return createLanguageFromString(eDataType, initialValue);↵

66

            return convertLanguageToString(eDataType, instanceValue);↵

67

          case XMLTypePackage.LONG:↵

67

          case XMLTypePackage.LONG:↵

68

            return createLongFromString(eDataType, initialValue);↵

68

            return convertLongToString(eDataType, instanceValue);↵

69

          case XMLTypePackage.LONG_OBJECT:↵

69

          case XMLTypePackage.LONG_OBJECT:↵

70

            return createLongObjectFromString(eDataType, initialValue);↵

70

            return convertLongObjectToString(eDataType, instanceValue);↵

71

          case XMLTypePackage.NAME:↵

71

          case XMLTypePackage.NAME:↵

72

            return createNameFromString(eDataType, initialValue);↵

72

            return convertNameToString(eDataType, instanceValue);↵

73

          case XMLTypePackage.NC_NAME:↵

73

          case XMLTypePackage.NC_NAME:↵

74

            return createNCNameFromString(eDataType, initialValue);↵

74

            return convertNCNameToString(eDataType, instanceValue);↵

75

          case XMLTypePackage.NEGATIVE_INTEGER:↵

75

          case XMLTypePackage.NEGATIVE_INTEGER:↵

76

            return createNegativeIntegerFromString(eDataType, initialValue);↵

76

            return convertNegativeIntegerToString(eDataType, instanceValue);↵

77

          case XMLTypePackage.NMTOKEN:↵

77

          case XMLTypePackage.NMTOKEN:↵

78

            return createNMTOKENFromString(eDataType, initialValue);↵

78

            return convertNMTOKENToString(eDataType, instanceValue);↵

79

          case XMLTypePackage.NMTOKENS:↵

79

          case XMLTypePackage.NMTOKENS:↵

80

            return createNMTOKENSFromString(eDataType, initialValue);↵

80

            return convertNMTOKENSToString(eDataType, instanceValue);↵

81

          case XMLTypePackage.NMTOKENS_BASE:↵

81

          case XMLTypePackage.NMTOKENS_BASE:↵

82

            return createNMTOKENSBaseFromString(eDataType, initialValue);↵

82

            return convertNMTOKENSBaseToString(eDataType, instanceValue);↵

83

          case XMLTypePackage.NON_NEGATIVE_INTEGER:↵

83

          case XMLTypePackage.NON_NEGATIVE_INTEGER:↵

84

            return createNonNegativeIntegerFromString(eDataType, initialValue);↵

84

            return convertNonNegativeIntegerToString(eDataType, instanceValue);↵

85

          case XMLTypePackage.NON_POSITIVE_INTEGER:↵

85

          case XMLTypePackage.NON_POSITIVE_INTEGER:↵

86

            return createNonPositiveIntegerFromString(eDataType, initialValue);↵

86

            return convertNonPositiveIntegerToString(eDataType, instanceValue);↵

87

          case XMLTypePackage.NORMALIZED_STRING:↵

87

          case XMLTypePackage.NORMALIZED_STRING:↵

88

            return createNormalizedStringFromString(eDataType, initialValue);↵

88

            return convertNormalizedStringToString(eDataType, instanceValue);↵

89

          case XMLTypePackage.NOTATION:↵

89

          case XMLTypePackage.NOTATION:↵

90

            return createNOTATIONFromString(eDataType, initialValue);↵

90

            return convertNOTATIONToString(eDataType, instanceValue);↵

91

          case XMLTypePackage.POSITIVE_INTEGER:↵

91

          case XMLTypePackage.POSITIVE_INTEGER:↵

92

            return createPositiveIntegerFromString(eDataType, initialValue);↵

92

            return convertPositiveIntegerToString(eDataType, instanceValue);↵

93

          case XMLTypePackage.QNAME:↵

93

          case XMLTypePackage.QNAME:↵

94

            return createQNameFromString(eDataType, initialValue);↵

94

            return convertQNameToString(eDataType, instanceValue);↵

95

          case XMLTypePackage.SHORT:↵

95

          case XMLTypePackage.SHORT:↵

96

            return createShortFromString(eDataType, initialValue);↵

96

            return convertShortToString(eDataType, instanceValue);↵

97

          case XMLTypePackage.SHORT_OBJECT:↵

97

          case XMLTypePackage.SHORT_OBJECT:↵

98

            return createShortObjectFromString(eDataType, initialValue);↵

98

            return convertShortObjectToString(eDataType, instanceValue);↵

99

          case XMLTypePackage.STRING:↵

99

          case XMLTypePackage.STRING:↵

100

            return createStringFromString(eDataType, initialValue);↵

100

            return convertStringToString(eDataType, instanceValue);↵

101

          case XMLTypePackage.TIME:↵

101

          case XMLTypePackage.TIME:↵

102

            return createTimeFromString(eDataType, initialValue);↵

102

            return convertTimeToString(eDataType, instanceValue);↵

103

          case XMLTypePackage.TOKEN:↵

103

          case XMLTypePackage.TOKEN:↵

104

            return createTokenFromString(eDataType, initialValue);↵

104

            return convertTokenToString(eDataType, instanceValue);↵

105

          case XMLTypePackage.UNSIGNED_BYTE:↵

105

          case XMLTypePackage.UNSIGNED_BYTE:↵

106

            return createUnsignedByteFromString(eDataType, initialValue);↵

106

            return convertUnsignedByteToString(eDataType, instanceValue);↵

107

          case XMLTypePackage.UNSIGNED_BYTE_OBJECT:↵

107

          case XMLTypePackage.UNSIGNED_BYTE_OBJECT:↵

108

            return createUnsignedByteObjectFromString(eDataType, initialValue);↵

108

            return convertUnsignedByteObjectToString(eDataType, instanceValue);↵

109

          case XMLTypePackage.UNSIGNED_INT:↵

109

          case XMLTypePackage.UNSIGNED_INT:↵

110

            return createUnsignedIntFromString(eDataType, initialValue);↵

110

            return convertUnsignedIntToString(eDataType, instanceValue);↵

111

          case XMLTypePackage.UNSIGNED_INT_OBJECT:↵

111

          case XMLTypePackage.UNSIGNED_INT_OBJECT:↵

112

            return createUnsignedIntObjectFromString(eDataType, initialValue);↵

112

            return convertUnsignedIntObjectToString(eDataType, instanceValue);↵

113

          case XMLTypePackage.UNSIGNED_LONG:↵

113

          case XMLTypePackage.UNSIGNED_LONG:↵

114

            return createUnsignedLongFromString(eDataType, initialValue);↵

114

            return convertUnsignedLongToString(eDataType, instanceValue);↵

115

          case XMLTypePackage.UNSIGNED_SHORT:↵

115

          case XMLTypePackage.UNSIGNED_SHORT:↵

116

            return createUnsignedShortFromString(eDataType, initialValue);↵

116

            return convertUnsignedShortToString(eDataType, instanceValue);↵

117

          case XMLTypePackage.UNSIGNED_SHORT_OBJECT:↵

117

          case XMLTypePackage.UNSIGNED_SHORT_OBJECT:↵

118

            return createUnsignedShortObjectFromString(eDataType, initialValue);↵

118

            return convertUnsignedShortObjectToString(eDataType, instanceValue);↵

119

          default:↵

119

          default:↵

120

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

120

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

121

        }

121

        }

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.1
Clones location | Clones are declared in the same class
Number of node comparisons | 8734

1. {Non-refactorable}

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

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

   1

       switch (eDataType.getClassifierID())

   1

       switch (eDataType.getClassifierID())

   2

       case XMLTypePackage.ANY_SIMPLE_TYPE:

   2

       case XMLTypePackage.ANY_SIMPLE_TYPE:

   3 | return convertAnySimpleTypeToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertAnySimpleTypeToString(eDataType,instanceValue);

   3

       return convertAnySimpleTypeToString(eDataType, instanceValue);

   3

       return createAnySimpleTypeFromString(eDataType, initialValue);

   3 | return createAnySimpleTypeFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createAnySimpleTypeFromString(eDataType,initialValue);

   4

       case XMLTypePackage.ANY_URI:

   4

       case XMLTypePackage.ANY_URI:

   5 | return convertAnyURIToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertAnyURIToString(eDataType,instanceValue);

   5

       return convertAnyURIToString(eDataType, instanceValue);

   5

       return createAnyURIFromString(eDataType, initialValue);

   5 | return createAnyURIFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createAnyURIFromString(eDataType,initialValue);

   6

       case XMLTypePackage.BASE64_BINARY:

   6

       case XMLTypePackage.BASE64_BINARY:

   7 | return convertBase64BinaryToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertBase64BinaryToString(eDataType,instanceValue);

   7

       return convertBase64BinaryToString(eDataType, instanceValue);

   7

       return createBase64BinaryFromString(eDataType, initialValue);

   7 | return createBase64BinaryFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createBase64BinaryFromString(eDataType,initialValue);

   8

       case XMLTypePackage.BOOLEAN:

   8

       case XMLTypePackage.BOOLEAN:

   9 | return convertBooleanToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertBooleanToString(eDataType,instanceValue);

   9

       return convertBooleanToString(eDataType, instanceValue);

   9

       return createBooleanFromString(eDataType, initialValue);

   9 | return createBooleanFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createBooleanFromString(eDataType,initialValue);

   10

       case XMLTypePackage.BOOLEAN_OBJECT:

   10

       case XMLTypePackage.BOOLEAN_OBJECT:

   11 | return convertBooleanObjectToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertBooleanObjectToString(eDataType,instanceValue);

   11

       return convertBooleanObjectToString(eDataType, instanceValue);

   11

       return createBooleanObjectFromString(eDataType, initialValue);

   11 | return createBooleanObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createBooleanObjectFromString(eDataType,initialValue);

   12

       case XMLTypePackage.BYTE:

   12

       case XMLTypePackage.BYTE:

   13 | return convertByteToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertByteToString(eDataType,instanceValue);

   13

       return convertByteToString(eDataType, instanceValue);

   13

       return createByteFromString(eDataType, initialValue);

   13 | return createByteFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createByteFromString(eDataType,initialValue);

   14

       case XMLTypePackage.BYTE_OBJECT:

   14

       case XMLTypePackage.BYTE_OBJECT:

   15 | return convertByteObjectToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertByteObjectToString(eDataType,instanceValue);

   15

       return convertByteObjectToString(eDataType, instanceValue);

   15

       return createByteObjectFromString(eDataType, initialValue);

   15 | return createByteObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createByteObjectFromString(eDataType,initialValue);

   16

       case XMLTypePackage.DATE:

   16

       case XMLTypePackage.DATE:

   17 | return convertDateToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertDateToString(eDataType,instanceValue);

   17

       return convertDateToString(eDataType, instanceValue);

   17

       return createDateFromString(eDataType, initialValue);

   17 | return createDateFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createDateFromString(eDataType,initialValue);

   18

       case XMLTypePackage.DATE_TIME:

   18

       case XMLTypePackage.DATE_TIME:

   19 | return convertDateTimeToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertDateTimeToString(eDataType,instanceValue);

   19

       return convertDateTimeToString(eDataType, instanceValue);

   19

       return createDateTimeFromString(eDataType, initialValue);

   19 | return createDateTimeFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createDateTimeFromString(eDataType,initialValue);

   20

       case XMLTypePackage.DECIMAL:

   20

       case XMLTypePackage.DECIMAL:

   21 | return convertDecimalToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertDecimalToString(eDataType,instanceValue);

   21

       return convertDecimalToString(eDataType, instanceValue);

   21

       return createDecimalFromString(eDataType, initialValue);

   21 | return createDecimalFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createDecimalFromString(eDataType,initialValue);

   22

       case XMLTypePackage.DOUBLE:

   22

       case XMLTypePackage.DOUBLE:

   23 | return convertDoubleToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertDoubleToString(eDataType,instanceValue);

   23

       return convertDoubleToString(eDataType, instanceValue);

   23

       return createDoubleFromString(eDataType, initialValue);

   23 | return createDoubleFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createDoubleFromString(eDataType,initialValue);

   24

       case XMLTypePackage.DOUBLE_OBJECT:

   24

       case XMLTypePackage.DOUBLE_OBJECT:

   25 | return convertDoubleObjectToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertDoubleObjectToString(eDataType,instanceValue);

   25

       return convertDoubleObjectToString(eDataType, instanceValue);

   25

       return createDoubleObjectFromString(eDataType, initialValue);

   25 | return createDoubleObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createDoubleObjectFromString(eDataType,initialValue);

   26

       case XMLTypePackage.DURATION:

   26

       case XMLTypePackage.DURATION:

   27 | return convertDurationToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertDurationToString(eDataType,instanceValue);

   27

       return convertDurationToString(eDataType, instanceValue);

   27

       return createDurationFromString(eDataType, initialValue);

   27 | return createDurationFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createDurationFromString(eDataType,initialValue);

   28

       case XMLTypePackage.ENTITIES:

   28

       case XMLTypePackage.ENTITIES:

   29 | return convertENTITIESToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertENTITIESToString(eDataType,instanceValue);

   29

       return convertENTITIESToString(eDataType, instanceValue);

   29

       return createENTITIESFromString(eDataType, initialValue);

   29 | return createENTITIESFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createENTITIESFromString(eDataType,initialValue);

   30

       case XMLTypePackage.ENTITIES_BASE:

   30

       case XMLTypePackage.ENTITIES_BASE:

   31 | return convertENTITIESBaseToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertENTITIESBaseToString(eDataType,instanceValue);

   31

       return convertENTITIESBaseToString(eDataType, instanceValue);

   31

       return createENTITIESBaseFromString(eDataType, initialValue);

   31 | return createENTITIESBaseFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createENTITIESBaseFromString(eDataType,initialValue);

   32

       case XMLTypePackage.ENTITY:

   32

       case XMLTypePackage.ENTITY:

   33 | return convertENTITYToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertENTITYToString(eDataType,instanceValue);

   33

       return convertENTITYToString(eDataType, instanceValue);

   33

       return createENTITYFromString(eDataType, initialValue);

   33 | return createENTITYFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createENTITYFromString(eDataType,initialValue);

   34

       case XMLTypePackage.FLOAT:

   34

       case XMLTypePackage.FLOAT:

   35 | return convertFloatToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertFloatToString(eDataType,instanceValue);

   35

       return convertFloatToString(eDataType, instanceValue);

   35

       return createFloatFromString(eDataType, initialValue);

   35 | return createFloatFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createFloatFromString(eDataType,initialValue);

   36

       case XMLTypePackage.FLOAT_OBJECT:

   36

       case XMLTypePackage.FLOAT_OBJECT:

   37 | return convertFloatObjectToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertFloatObjectToString(eDataType,instanceValue);

   37

       return convertFloatObjectToString(eDataType, instanceValue);

   37

       return createFloatObjectFromString(eDataType, initialValue);

   37 | return createFloatObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createFloatObjectFromString(eDataType,initialValue);

   38

       case XMLTypePackage.GDAY:

   38

       case XMLTypePackage.GDAY:

   39 | return convertGDayToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertGDayToString(eDataType,instanceValue);

   39

       return convertGDayToString(eDataType, instanceValue);

   39

       return createGDayFromString(eDataType, initialValue);

   39 | return createGDayFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createGDayFromString(eDataType,initialValue);

   40

       case XMLTypePackage.GMONTH:

   40

       case XMLTypePackage.GMONTH:

   41 | return convertGMonthToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertGMonthToString(eDataType,instanceValue);

   41

       return convertGMonthToString(eDataType, instanceValue);

   41

       return createGMonthFromString(eDataType, initialValue);

   41 | return createGMonthFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createGMonthFromString(eDataType,initialValue);

   42

       case XMLTypePackage.GMONTH_DAY:

   42

       case XMLTypePackage.GMONTH_DAY:

   43 | return convertGMonthDayToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertGMonthDayToString(eDataType,instanceValue);

   43

       return convertGMonthDayToString(eDataType, instanceValue);

   43

       return createGMonthDayFromString(eDataType, initialValue);

   43 | return createGMonthDayFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createGMonthDayFromString(eDataType,initialValue);

   44

       case XMLTypePackage.GYEAR:

   44

       case XMLTypePackage.GYEAR:

   45 | return convertGYearToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertGYearToString(eDataType,instanceValue);

   45

       return convertGYearToString(eDataType, instanceValue);

   45

       return createGYearFromString(eDataType, initialValue);

   45 | return createGYearFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createGYearFromString(eDataType,initialValue);

   46

       case XMLTypePackage.GYEAR_MONTH:

   46

       case XMLTypePackage.GYEAR_MONTH:

   47 | return convertGYearMonthToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertGYearMonthToString(eDataType,instanceValue);

   47

       return convertGYearMonthToString(eDataType, instanceValue);

   47

       return createGYearMonthFromString(eDataType, initialValue);

   47 | return createGYearMonthFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createGYearMonthFromString(eDataType,initialValue);

   48

       case XMLTypePackage.HEX_BINARY:

   48

       case XMLTypePackage.HEX_BINARY:

   49 | return convertHexBinaryToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertHexBinaryToString(eDataType,instanceValue);

   49

       return convertHexBinaryToString(eDataType, instanceValue);

   49

       return createHexBinaryFromString(eDataType, initialValue);

   49 | return createHexBinaryFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createHexBinaryFromString(eDataType,initialValue);

   50

       case XMLTypePackage.ID:

   50

       case XMLTypePackage.ID:

   51 | return convertIDToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertIDToString(eDataType,instanceValue);

   51

       return convertIDToString(eDataType, instanceValue);

   51

       return createIDFromString(eDataType, initialValue);

   51 | return createIDFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createIDFromString(eDataType,initialValue);

   52

       case XMLTypePackage.IDREF:

   52

       case XMLTypePackage.IDREF:

   53 | return convertIDREFToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertIDREFToString(eDataType,instanceValue);

   53

       return convertIDREFToString(eDataType, instanceValue);

   53

       return createIDREFFromString(eDataType, initialValue);

   53 | return createIDREFFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createIDREFFromString(eDataType,initialValue);

   54

       case XMLTypePackage.IDREFS:

   54

       case XMLTypePackage.IDREFS:

   55 | return convertIDREFSToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertIDREFSToString(eDataType,instanceValue);

   55

       return convertIDREFSToString(eDataType, instanceValue);

   55

       return createIDREFSFromString(eDataType, initialValue);

   55 | return createIDREFSFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createIDREFSFromString(eDataType,initialValue);

   56

       case XMLTypePackage.IDREFS_BASE:

   56

       case XMLTypePackage.IDREFS_BASE:

   57 | return convertIDREFSBaseToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertIDREFSBaseToString(eDataType,instanceValue);

   57

       return convertIDREFSBaseToString(eDataType, instanceValue);

   57

       return createIDREFSBaseFromString(eDataType, initialValue);

   57 | return createIDREFSBaseFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createIDREFSBaseFromString(eDataType,initialValue);

   58

       case XMLTypePackage.INT:

   58

       case XMLTypePackage.INT:

   59 | return convertIntToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertIntToString(eDataType,instanceValue);

   59

       return convertIntToString(eDataType, instanceValue);

   59

       return createIntFromString(eDataType, initialValue);

   59 | return createIntFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createIntFromString(eDataType,initialValue);

   60

       case XMLTypePackage.INTEGER:

   60

       case XMLTypePackage.INTEGER:

   61 | return convertIntegerToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertIntegerToString(eDataType,instanceValue);

   61

       return convertIntegerToString(eDataType, instanceValue);

   61

       return createIntegerFromString(eDataType, initialValue);

   61 | return createIntegerFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createIntegerFromString(eDataType,initialValue);

   62

       case XMLTypePackage.INT_OBJECT:

   62

       case XMLTypePackage.INT_OBJECT:

   63 | return convertIntObjectToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertIntObjectToString(eDataType,instanceValue);

   63

       return convertIntObjectToString(eDataType, instanceValue);

   63

       return createIntObjectFromString(eDataType, initialValue);

   63 | return createIntObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createIntObjectFromString(eDataType,initialValue);

   64

       case XMLTypePackage.LANGUAGE:

   64

       case XMLTypePackage.LANGUAGE:

   65 | return convertLanguageToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertLanguageToString(eDataType,instanceValue);

   65

       return convertLanguageToString(eDataType, instanceValue);

   65

       return createLanguageFromString(eDataType, initialValue);

   65 | return createLanguageFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createLanguageFromString(eDataType,initialValue);

   66

       case XMLTypePackage.LONG:

   66

       case XMLTypePackage.LONG:

   67 | return convertLongToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertLongToString(eDataType,instanceValue);

   67

       return convertLongToString(eDataType, instanceValue);

   67

       return createLongFromString(eDataType, initialValue);

   67 | return createLongFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createLongFromString(eDataType,initialValue);

   68

       case XMLTypePackage.LONG_OBJECT:

   68

       case XMLTypePackage.LONG_OBJECT:

   69 | return convertLongObjectToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertLongObjectToString(eDataType,instanceValue);

   69

       return convertLongObjectToString(eDataType, instanceValue);

   69

       return createLongObjectFromString(eDataType, initialValue);

   69 | return createLongObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createLongObjectFromString(eDataType,initialValue);

   70

       case XMLTypePackage.NAME:

   70

       case XMLTypePackage.NAME:

   71 | return convertNameToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertNameToString(eDataType,instanceValue);

   71

       return convertNameToString(eDataType, instanceValue);

   71

       return createNameFromString(eDataType, initialValue);

   71 | return createNameFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNameFromString(eDataType,initialValue);

   72

       case XMLTypePackage.NC_NAME:

   72

       case XMLTypePackage.NC_NAME:

   73 | return convertNCNameToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertNCNameToString(eDataType,instanceValue);

   73

       return convertNCNameToString(eDataType, instanceValue);

   73

       return createNCNameFromString(eDataType, initialValue);

   73 | return createNCNameFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNCNameFromString(eDataType,initialValue);

   74

       case XMLTypePackage.NEGATIVE_INTEGER:

   74

       case XMLTypePackage.NEGATIVE_INTEGER:

   75 | return convertNegativeIntegerToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertNegativeIntegerToString(eDataType,instanceValue);

   75

       return convertNegativeIntegerToString(eDataType, instanceValue);

   75

       return createNegativeIntegerFromString(eDataType, initialValue);

   75 | return createNegativeIntegerFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNegativeIntegerFromString(eDataType,initialValue);

   76

       case XMLTypePackage.NMTOKEN:

   76

       case XMLTypePackage.NMTOKEN:

   77 | return convertNMTOKENToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertNMTOKENToString(eDataType,instanceValue);

   77

       return convertNMTOKENToString(eDataType, instanceValue);

   77

       return createNMTOKENFromString(eDataType, initialValue);

   77 | return createNMTOKENFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNMTOKENFromString(eDataType,initialValue);

   78

       case XMLTypePackage.NMTOKENS:

   78

       case XMLTypePackage.NMTOKENS:

   79 | return convertNMTOKENSToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertNMTOKENSToString(eDataType,instanceValue);

   79

       return convertNMTOKENSToString(eDataType, instanceValue);

   79

       return createNMTOKENSFromString(eDataType, initialValue);

   79 | return createNMTOKENSFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNMTOKENSFromString(eDataType,initialValue);

   80

       case XMLTypePackage.NMTOKENS_BASE:

   80

       case XMLTypePackage.NMTOKENS_BASE:

   81 | return convertNMTOKENSBaseToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertNMTOKENSBaseToString(eDataType,instanceValue);

   81

       return convertNMTOKENSBaseToString(eDataType, instanceValue);

   81

       return createNMTOKENSBaseFromString(eDataType, initialValue);

   81 | return createNMTOKENSBaseFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNMTOKENSBaseFromString(eDataType,initialValue);

   82

       case XMLTypePackage.NON_NEGATIVE_INTEGER:

   82

       case XMLTypePackage.NON_NEGATIVE_INTEGER:

   83 | return convertNonNegativeIntegerToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertNonNegativeIntegerToString(eDataType,instanceValue);

   83

       return convertNonNegativeIntegerToString(eDataType, instanceValue);

   83

       return createNonNegativeIntegerFromString(eDataType, initialValue);

   83 | return createNonNegativeIntegerFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNonNegativeIntegerFromString(eDataType,initialValue);

   84

       case XMLTypePackage.NON_POSITIVE_INTEGER:

   84

       case XMLTypePackage.NON_POSITIVE_INTEGER:

   85 | return convertNonPositiveIntegerToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertNonPositiveIntegerToString(eDataType,instanceValue);

   85

       return convertNonPositiveIntegerToString(eDataType, instanceValue);

   85

       return createNonPositiveIntegerFromString(eDataType, initialValue);

   85 | return createNonPositiveIntegerFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNonPositiveIntegerFromString(eDataType,initialValue);

   86

       case XMLTypePackage.NORMALIZED_STRING:

   86

       case XMLTypePackage.NORMALIZED_STRING:

   87 | return convertNormalizedStringToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertNormalizedStringToString(eDataType,instanceValue);

   87

       return convertNormalizedStringToString(eDataType, instanceValue);

   87

       return createNormalizedStringFromString(eDataType, initialValue);

   87 | return createNormalizedStringFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNormalizedStringFromString(eDataType,initialValue);

   88

       case XMLTypePackage.NOTATION:

   88

       case XMLTypePackage.NOTATION:

   89 | return convertNOTATIONToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertNOTATIONToString(eDataType,instanceValue);

   89

       return convertNOTATIONToString(eDataType, instanceValue);

   89

       return createNOTATIONFromString(eDataType, initialValue);

   89 | return createNOTATIONFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createNOTATIONFromString(eDataType,initialValue);

   90

       case XMLTypePackage.POSITIVE_INTEGER:

   90

       case XMLTypePackage.POSITIVE_INTEGER:

   91 | return convertPositiveIntegerToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertPositiveIntegerToString(eDataType,instanceValue);

   91

       return convertPositiveIntegerToString(eDataType, instanceValue);

   91

       return createPositiveIntegerFromString(eDataType, initialValue);

   91 | return createPositiveIntegerFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createPositiveIntegerFromString(eDataType,initialValue);

   92

       case XMLTypePackage.QNAME:

   92

       case XMLTypePackage.QNAME:

   93 | return convertQNameToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertQNameToString(eDataType,instanceValue);

   93

       return convertQNameToString(eDataType, instanceValue);

   93

       return createQNameFromString(eDataType, initialValue);

   93 | return createQNameFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createQNameFromString(eDataType,initialValue);

   94

       case XMLTypePackage.SHORT:

   94

       case XMLTypePackage.SHORT:

   95 | return convertShortToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertShortToString(eDataType,instanceValue);

   95

       return convertShortToString(eDataType, instanceValue);

   95

       return createShortFromString(eDataType, initialValue);

   95 | return createShortFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createShortFromString(eDataType,initialValue);

   96

       case XMLTypePackage.SHORT_OBJECT:

   96

       case XMLTypePackage.SHORT_OBJECT:

   97 | return convertShortObjectToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertShortObjectToString(eDataType,instanceValue);

   97

       return convertShortObjectToString(eDataType, instanceValue);

   97

       return createShortObjectFromString(eDataType, initialValue);

   97 | return createShortObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createShortObjectFromString(eDataType,initialValue);

   98

       case XMLTypePackage.STRING:

   98

       case XMLTypePackage.STRING:

   99 | return convertStringToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertStringToString(eDataType,instanceValue);

   99

       return convertStringToString(eDataType, instanceValue);

   99

       return createStringFromString(eDataType, initialValue);

   99 | return createStringFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createStringFromString(eDataType,initialValue);

   100

       case XMLTypePackage.TIME:

   100

       case XMLTypePackage.TIME:

   101 | return convertTimeToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertTimeToString(eDataType,instanceValue);

   101

       return convertTimeToString(eDataType, instanceValue);

   101

       return createTimeFromString(eDataType, initialValue);

   101 | return createTimeFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createTimeFromString(eDataType,initialValue);

   102

       case XMLTypePackage.TOKEN:

   102

       case XMLTypePackage.TOKEN:

   103 | return convertTokenToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertTokenToString(eDataType,instanceValue);

   103

       return convertTokenToString(eDataType, instanceValue);

   103

       return createTokenFromString(eDataType, initialValue);

   103 | return createTokenFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createTokenFromString(eDataType,initialValue);

   104

       case XMLTypePackage.UNSIGNED_BYTE:

   104

       case XMLTypePackage.UNSIGNED_BYTE:

   105 | return convertUnsignedByteToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertUnsignedByteToString(eDataType,instanceValue);

   105

       return convertUnsignedByteToString(eDataType, instanceValue);

   105

       return createUnsignedByteFromString(eDataType, initialValue);

   105 | return createUnsignedByteFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createUnsignedByteFromString(eDataType,initialValue);

   106

       case XMLTypePackage.UNSIGNED_BYTE_OBJECT:

   106

       case XMLTypePackage.UNSIGNED_BYTE_OBJECT:

   107 | return convertUnsignedByteObjectToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertUnsignedByteObjectToString(eDataType,instanceValue);

   107

       return convertUnsignedByteObjectToString(eDataType, instanceValue);

   107

       return createUnsignedByteObjectFromString(eDataType, initialValue);

   107 | return createUnsignedByteObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createUnsignedByteObjectFromString(eDataType,initialValue);

   108

       case XMLTypePackage.UNSIGNED_INT:

   108

       case XMLTypePackage.UNSIGNED_INT:

   109 | return convertUnsignedIntToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertUnsignedIntToString(eDataType,instanceValue);

   109

       return convertUnsignedIntToString(eDataType, instanceValue);

   109

       return createUnsignedIntFromString(eDataType, initialValue);

   109 | return createUnsignedIntFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createUnsignedIntFromString(eDataType,initialValue);

   110

       case XMLTypePackage.UNSIGNED_INT_OBJECT:

   110

       case XMLTypePackage.UNSIGNED_INT_OBJECT:

   111 | return convertUnsignedIntObjectToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertUnsignedIntObjectToString(eDataType,instanceValue);

   111

       return convertUnsignedIntObjectToString(eDataType, instanceValue);

   111

       return createUnsignedIntObjectFromString(eDataType, initialValue);

   111 | return createUnsignedIntObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createUnsignedIntObjectFromString(eDataType,initialValue);

   112

       case XMLTypePackage.UNSIGNED_LONG:

   112

       case XMLTypePackage.UNSIGNED_LONG:

   113 | return convertUnsignedLongToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertUnsignedLongToString(eDataType,instanceValue);

   113

       return convertUnsignedLongToString(eDataType, instanceValue);

   113

       return createUnsignedLongFromString(eDataType, initialValue);

   113 | return createUnsignedLongFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createUnsignedLongFromString(eDataType,initialValue);

   114

       case XMLTypePackage.UNSIGNED_SHORT:

   114

       case XMLTypePackage.UNSIGNED_SHORT:

   115 | return convertUnsignedShortToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertUnsignedShortToString(eDataType,instanceValue);

   115

       return convertUnsignedShortToString(eDataType, instanceValue);

   115

       return createUnsignedShortFromString(eDataType, initialValue);

   115 | return createUnsignedShortFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createUnsignedShortFromString(eDataType,initialValue);

   116

       case XMLTypePackage.UNSIGNED_SHORT_OBJECT:

   116

       case XMLTypePackage.UNSIGNED_SHORT_OBJECT:

   117 | return convertUnsignedShortObjectToString(eDataType, instanceValue);

   Preondition Violations
   Unmatched return convertUnsignedShortObjectToString(eDataType,instanceValue);

   117

       return convertUnsignedShortObjectToString(eDataType, instanceValue);

   117

       return createUnsignedShortObjectFromString(eDataType, initialValue);

   117 | return createUnsignedShortObjectFromString(eDataType, initialValue);

   Preondition Violations
   Unmatched return createUnsignedShortObjectFromString(eDataType,initialValue);

   118

       default:

   118

       default:

   119

       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 (116)
   Row | Violation
   --- | ---
   1 | Unmatched return convertAnySimpleTypeToString(eDataType,instanceValue);
   2 | Unmatched return createAnySimpleTypeFromString(eDataType,initialValue);
   3 | Unmatched return convertAnyURIToString(eDataType,instanceValue);
   4 | Unmatched return createAnyURIFromString(eDataType,initialValue);
   5 | Unmatched return convertBase64BinaryToString(eDataType,instanceValue);
   6 | Unmatched return createBase64BinaryFromString(eDataType,initialValue);
   7 | Unmatched return convertBooleanToString(eDataType,instanceValue);
   8 | Unmatched return createBooleanFromString(eDataType,initialValue);
   9 | Unmatched return convertBooleanObjectToString(eDataType,instanceValue);
   10 | Unmatched return createBooleanObjectFromString(eDataType,initialValue);
   11 | Unmatched return convertByteToString(eDataType,instanceValue);
   12 | Unmatched return createByteFromString(eDataType,initialValue);
   13 | Unmatched return convertByteObjectToString(eDataType,instanceValue);
   14 | Unmatched return createByteObjectFromString(eDataType,initialValue);
   15 | Unmatched return convertDateToString(eDataType,instanceValue);
   16 | Unmatched return createDateFromString(eDataType,initialValue);
   17 | Unmatched return convertDateTimeToString(eDataType,instanceValue);
   18 | Unmatched return createDateTimeFromString(eDataType,initialValue);
   19 | Unmatched return convertDecimalToString(eDataType,instanceValue);
   20 | Unmatched return createDecimalFromString(eDataType,initialValue);
   21 | Unmatched return convertDoubleToString(eDataType,instanceValue);
   22 | Unmatched return createDoubleFromString(eDataType,initialValue);
   23 | Unmatched return convertDoubleObjectToString(eDataType,instanceValue);
   24 | Unmatched return createDoubleObjectFromString(eDataType,initialValue);
   25 | Unmatched return convertDurationToString(eDataType,instanceValue);
   26 | Unmatched return createDurationFromString(eDataType,initialValue);
   27 | Unmatched return convertENTITIESToString(eDataType,instanceValue);
   28 | Unmatched return createENTITIESFromString(eDataType,initialValue);
   29 | Unmatched return convertENTITIESBaseToString(eDataType,instanceValue);
   30 | Unmatched return createENTITIESBaseFromString(eDataType,initialValue);
   31 | Unmatched return convertENTITYToString(eDataType,instanceValue);
   32 | Unmatched return createENTITYFromString(eDataType,initialValue);
   33 | Unmatched return convertFloatToString(eDataType,instanceValue);
   34 | Unmatched return createFloatFromString(eDataType,initialValue);
   35 | Unmatched return convertFloatObjectToString(eDataType,instanceValue);
   36 | Unmatched return createFloatObjectFromString(eDataType,initialValue);
   37 | Unmatched return convertGDayToString(eDataType,instanceValue);
   38 | Unmatched return createGDayFromString(eDataType,initialValue);
   39 | Unmatched return convertGMonthToString(eDataType,instanceValue);
   40 | Unmatched return createGMonthFromString(eDataType,initialValue);
   41 | Unmatched return convertGMonthDayToString(eDataType,instanceValue);
   42 | Unmatched return createGMonthDayFromString(eDataType,initialValue);
   43 | Unmatched return convertGYearToString(eDataType,instanceValue);
   44 | Unmatched return createGYearFromString(eDataType,initialValue);
   45 | Unmatched return convertGYearMonthToString(eDataType,instanceValue);
   46 | Unmatched return createGYearMonthFromString(eDataType,initialValue);
   47 | Unmatched return convertHexBinaryToString(eDataType,instanceValue);
   48 | Unmatched return createHexBinaryFromString(eDataType,initialValue);
   49 | Unmatched return convertIDToString(eDataType,instanceValue);
   50 | Unmatched return createIDFromString(eDataType,initialValue);
   51 | Unmatched return convertIDREFToString(eDataType,instanceValue);
   52 | Unmatched return createIDREFFromString(eDataType,initialValue);
   53 | Unmatched return convertIDREFSToString(eDataType,instanceValue);
   54 | Unmatched return createIDREFSFromString(eDataType,initialValue);
   55 | Unmatched return convertIDREFSBaseToString(eDataType,instanceValue);
   56 | Unmatched return createIDREFSBaseFromString(eDataType,initialValue);
   57 | Unmatched return convertIntToString(eDataType,instanceValue);
   58 | Unmatched return createIntFromString(eDataType,initialValue);
   59 | Unmatched return convertIntegerToString(eDataType,instanceValue);
   60 | Unmatched return createIntegerFromString(eDataType,initialValue);
   61 | Unmatched return convertIntObjectToString(eDataType,instanceValue);
   62 | Unmatched return createIntObjectFromString(eDataType,initialValue);
   63 | Unmatched return convertLanguageToString(eDataType,instanceValue);
   64 | Unmatched return createLanguageFromString(eDataType,initialValue);
   65 | Unmatched return convertLongToString(eDataType,instanceValue);
   66 | Unmatched return createLongFromString(eDataType,initialValue);
   67 | Unmatched return convertLongObjectToString(eDataType,instanceValue);
   68 | Unmatched return createLongObjectFromString(eDataType,initialValue);
   69 | Unmatched return convertNameToString(eDataType,instanceValue);
   70 | Unmatched return createNameFromString(eDataType,initialValue);
   71 | Unmatched return convertNCNameToString(eDataType,instanceValue);
   72 | Unmatched return createNCNameFromString(eDataType,initialValue);
   73 | Unmatched return convertNegativeIntegerToString(eDataType,instanceValue);
   74 | Unmatched return createNegativeIntegerFromString(eDataType,initialValue);
   75 | Unmatched return convertNMTOKENToString(eDataType,instanceValue);
   76 | Unmatched return createNMTOKENFromString(eDataType,initialValue);
   77 | Unmatched return convertNMTOKENSToString(eDataType,instanceValue);
   78 | Unmatched return createNMTOKENSFromString(eDataType,initialValue);
   79 | Unmatched return convertNMTOKENSBaseToString(eDataType,instanceValue);
   80 | Unmatched return createNMTOKENSBaseFromString(eDataType,initialValue);
   81 | Unmatched return convertNonNegativeIntegerToString(eDataType,instanceValue);
   82 | Unmatched return createNonNegativeIntegerFromString(eDataType,initialValue);
   83 | Unmatched return convertNonPositiveIntegerToString(eDataType,instanceValue);
   84 | Unmatched return createNonPositiveIntegerFromString(eDataType,initialValue);
   85 | Unmatched return convertNormalizedStringToString(eDataType,instanceValue);
   86 | Unmatched return createNormalizedStringFromString(eDataType,initialValue);
   87 | Unmatched return convertNOTATIONToString(eDataType,instanceValue);
   88 | Unmatched return createNOTATIONFromString(eDataType,initialValue);
   89 | Unmatched return convertPositiveIntegerToString(eDataType,instanceValue);
   90 | Unmatched return createPositiveIntegerFromString(eDataType,initialValue);
   91 | Unmatched return convertQNameToString(eDataType,instanceValue);
   92 | Unmatched return createQNameFromString(eDataType,initialValue);
   93 | Unmatched return convertShortToString(eDataType,instanceValue);
   94 | Unmatched return createShortFromString(eDataType,initialValue);
   95 | Unmatched return convertShortObjectToString(eDataType,instanceValue);
   96 | Unmatched return createShortObjectFromString(eDataType,initialValue);
   97 | Unmatched return convertStringToString(eDataType,instanceValue);
   98 | Unmatched return createStringFromString(eDataType,initialValue);
   99 | Unmatched return convertTimeToString(eDataType,instanceValue);
   100 | Unmatched return createTimeFromString(eDataType,initialValue);
   101 | Unmatched return convertTokenToString(eDataType,instanceValue);
   102 | Unmatched return createTokenFromString(eDataType,initialValue);
   103 | Unmatched return convertUnsignedByteToString(eDataType,instanceValue);
   104 | Unmatched return createUnsignedByteFromString(eDataType,initialValue);
   105 | Unmatched return convertUnsignedByteObjectToString(eDataType,instanceValue);
   106 | Unmatched return createUnsignedByteObjectFromString(eDataType,initialValue);
   107 | Unmatched return convertUnsignedIntToString(eDataType,instanceValue);
   108 | Unmatched return createUnsignedIntFromString(eDataType,initialValue);
   109 | Unmatched return convertUnsignedIntObjectToString(eDataType,instanceValue);
   110 | Unmatched return createUnsignedIntObjectFromString(eDataType,initialValue);
   111 | Unmatched return convertUnsignedLongToString(eDataType,instanceValue);
   112 | Unmatched return createUnsignedLongFromString(eDataType,initialValue);
   113 | Unmatched return convertUnsignedShortToString(eDataType,instanceValue);
   114 | Unmatched return createUnsignedShortFromString(eDataType,initialValue);
   115 | Unmatched return convertUnsignedShortObjectToString(eDataType,instanceValue);
   116 | Unmatched return createUnsignedShortObjectFromString(eDataType,initialValue);