2160-11-15

XMLTypeResourceImpl.DataFrame pushNMTOKENSBase(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultNMTOKENSBase = nmtokensBase == null ? new XMLTypeResourceImpl.DataFrame() : nmtokensBase; nmtokensBase = null; resultNMTOKENSBase.pushOnto(previous); resultNMTOKENSBase.handleAttributes(attributes); return resultNMTOKENSBase; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public List<String> popNMTOKENSBase(XMLTypeResourceImpl.DataFrame nmtokensBase) { List<String> resultNMTOKENSBaseValue = XMLTypeFactory.eINSTANCE.createNMTOKENSBase(nmtokensBase.popValue()); this.nmtokensBase = nmtokensBase; return resultNMTOKENSBaseValue; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLTypeResourceImpl.DataFrame pushNonNegativeInteger(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultNonNegativeInteger = nonNegativeInteger == null ? new XMLTypeResourceImpl.DataFrame() : nonNegativeInteger; nonNegativeInteger = null; resultNonNegativeInteger.pushOnto(previous); resultNonNegativeInteger.handleAttributes(attributes); return resultNonNegativeInteger; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BigInteger popNonNegativeInteger(XMLTypeResourceImpl.DataFrame nonNegativeInteger) { BigInteger resultNonNegativeIntegerValue = XMLTypeFactory.eINSTANCE.createNonNegativeInteger(nonNegativeInteger.popValue()); this.nonNegativeInteger = nonNegativeInteger; return resultNonNegativeIntegerValue; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLTypeResourceImpl.DataFrame pushNonPositiveInteger(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultNonPositiveInteger = nonPositiveInteger == null ? new XMLTypeResourceImpl.DataFrame() : nonPositiveInteger; nonPositiveInteger = null; resultNonPositiveInteger.pushOnto(previous); resultNonPositiveInteger.handleAttributes(attributes); return resultNonPositiveInteger; }
XMLTypeResourceImpl.DataFrame pushByteObject(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultByteObject = byteObject == null ? new XMLTypeResourceImpl.DataFrame() : byteObject; byteObject = null; resultByteObject.pushOnto(previous); resultByteObject.handleAttributes(attributes); return resultByteObject; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Byte popByteObject(XMLTypeResourceImpl.DataFrame byteObject) { Byte resultByteObjectValue = XMLTypeFactory.eINSTANCE.createByteObject(byteObject.popValue()); this.byteObject = byteObject; return resultByteObjectValue; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLTypeResourceImpl.DataFrame pushDate(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultDate = date == null ? new XMLTypeResourceImpl.DataFrame() : date; date = null; resultDate.pushOnto(previous); resultDate.handleAttributes(attributes); return resultDate; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLGregorianCalendar popDate(XMLTypeResourceImpl.DataFrame date) { XMLGregorianCalendar resultDateValue = XMLTypeFactory.eINSTANCE.createDate(date.popValue()); this.date = date; return resultDateValue; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public XMLTypeResourceImpl.DataFrame pushDateTime(XMLTypeResourceImpl.StackFrame previous, Attributes attributes) { XMLTypeResourceImpl.DataFrame resultDateTime = dateTime == null ? new XMLTypeResourceImpl.DataFrame() : dateTime; dateTime = null; resultDateTime.pushOnto(previous); resultDateTime.handleAttributes(attributes); return resultDateTime; }

Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/util/XMLTypeResourceImpl.java |  | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/util/XMLTypeResourceImpl.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    XMLTypeResourceImpl.DataFrame pushNMTOKENSBase(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

1

    XMLTypeResourceImpl.DataFrame pushByteObject(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

2

        {↵

2

        {↵

3

           XMLTypeResourceImpl.DataFrame resultNMTOKENSBase = nmtokensBase == null ? new XMLTypeResourceImpl.DataFrame() : nmtokensBase;↵

3

           XMLTypeResourceImpl.DataFrame resultByteObject = byteObject == null ? new XMLTypeResourceImpl.DataFrame() : ↵

4

           nmtokensBase↵

4

    byteObject;↵

5

     = null;↵

5

           byteObject = null;↵

6

           resultNMTOKENSBase.pushOnto(previous);↵

6

           resultByteObject.pushOnto(previous);↵

7

           resultNMTOKENSBase.handleAttributes(attributes);↵

7

           resultByteObject.handleAttributes(attributes);↵

8

           return resultNMTOKENSBase;↵

8

           return resultByteObject;↵

9

        }↵

9

        }↵

10

        /**↵

10

        /**↵

11

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

11

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

12

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

12

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

13

         * @generated↵

13

         * @generated↵

14

         */↵

14

         */↵

15

        public List<String> popNMTOKENSBase(XMLTypeResourceImpl.DataFrame nmtokensBase)↵

15

        public Byte popByteObject(XMLTypeResourceImpl.DataFrame byteObject)↵

16

        {↵

16

        {↵

17

          List<String> resultNMTOKENSBaseValue = XMLTypeFactory.eINSTANCE.createNMTOKENSBase(nmtokensBase.popValue());↵

17

          Byte resultByteObjectValue = XMLTypeFactory.eINSTANCE.createByteObject(byteObject.popValue());↵

18

          this.nmtokensBase = nmtokensBase;↵

18

          this.byteObject = byteObject;↵

19

          return resultNMTOKENSBaseValue;↵

19

          return resultByteObjectValue;↵

20

        }↵

20

        }↵

21

        /**↵

21

        /**↵

22

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

22

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

23

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

23

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

24

         * @generated↵

24

         * @generated↵

25

         */↵

25

         */↵

26

        public XMLTypeResourceImpl.DataFrame pushNonNegativeInteger(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

26

        public XMLTypeResourceImpl.DataFrame pushDate(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

27

        {↵

27

        {↵

28

           XMLTypeResourceImpl.DataFrame resultNonNegativeInteger = nonNegativeInteger == null ? new XMLTypeResourceImpl.DataFrame() : nonNegativeInteger;↵

28

           XMLTypeResourceImpl.DataFrame resultDate = date == null ? new XMLTypeResourceImpl.DataFrame() : ↵

29

           nonNegativeInteger↵

29

    date;↵

30

     = null;↵

30

           date = null;↵

31

           resultNonNegativeInteger.pushOnto(previous);↵

31

           resultDate.pushOnto(previous);↵

32

           resultNonNegativeInteger.handleAttributes(attributes);↵

32

           resultDate.handleAttributes(attributes);↵

33

           return resultNonNegativeInteger;↵

33

           return resultDate;↵

34

        }↵

34

        }↵

35

        /**↵

35

        /**↵

36

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

36

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

37

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

37

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

38

         * @generated↵

38

         * @generated↵

39

         */↵

39

         */↵

40

        public BigInteger popNonNegativeInteger(XMLTypeResourceImpl.DataFrame nonNegativeInteger)↵

40

        public XMLGregorianCalendar popDate(XMLTypeResourceImpl.DataFrame ↵

41

        {↵

42

          BigInteger resultNonNegativeInteger↵

41

    date)↵

42

        {↵

43

    Value = XMLTypeFactory.eINSTANCE.createNonNegativeInteger(nonNegativeInteger.popValue());↵

43

          XMLGregorianCalendar resultDateValue = XMLTypeFactory.eINSTANCE.create↵

44

          this.nonNegativeInteger = nonNegativeInteger↵

44

    Date(date.popValue());↵

45

    ;↵

45

          this.date = date;↵

46

          return resultNonNegativeIntegerValue;↵

46

          return resultDateValue;↵

47

        }↵

47

        }↵

48

        /**↵

48

        /**↵

49

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

49

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

50

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

50

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

51

         * @generated↵

51

         * @generated↵

52

         */↵

52

         */↵

53

        public XMLTypeResourceImpl.DataFrame pushNonPositiveInteger(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

53

        public XMLTypeResourceImpl.DataFrame pushDateTime(XMLTypeResourceImpl.StackFrame previous, Attributes attributes)↵

54

        {↵

54

        {↵

55

           XMLTypeResourceImpl.DataFrame resultNonPositiveInteger = nonPositiveInteger == null ? new XMLTypeResourceImpl.DataFrame() : nonPositiveInteger;↵

55

           XMLTypeResourceImpl.DataFrame resultDateTime = dateTime == null ? new XMLTypeResourceImpl.DataFrame() : ↵

56

           nonPositiveInteger↵

56

    dateTime;↵

57

     = null;↵

57

           dateTime = null;↵

58

           resultNonPositiveInteger.pushOnto(previous);↵

58

           resultDateTime.pushOnto(previous);↵

59

           resultNonPositiveInteger.handleAttributes(attributes);↵

59

           resultDateTime.handleAttributes(attributes);↵

60

           return resultNonPositiveInteger;↵

60

           return resultDateTime;↵

61

        }

61

        }

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