public Mapping getIn2out() { if (in2out != null && in2out.eIsProxy()) { InternalEObject oldIn2out = (InternalEObject)in2out; in2out = (Mapping)eResolveProxy(oldIn2out); if (in2out != oldIn2out) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT, oldIn2out, in2out)); } } return in2out; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Mapping basicGetIn2out() { return in2out; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setIn2out(Mapping newIn2out) { Mapping oldIn2out = in2out; in2out = newIn2out; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT, oldIn2out, in2out)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Mapping getOut2in() { if (out2in != null && out2in.eIsProxy()) { InternalEObject oldOut2in = (InternalEObject)out2in; out2in = (Mapping)eResolveProxy(oldOut2in); if (out2in != oldOut2in) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN, oldOut2in, out2in)); } } return out2in; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public Mapping basicGetOut2in() { return out2in; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setOut2in(Mapping newOut2in) { Mapping oldOut2in = out2in; out2in = newOut2in; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN, oldOut2in, out2in)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT: if (resolve) return getIn2out(); return basicGetIn2out(); case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN: if (resolve) return getOut2in(); return basicGetOut2in(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT: setIn2out((Mapping)newValue); return; case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN: setOut2in((Mapping)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT: setIn2out((Mapping)null); return; case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN: setOut2in((Mapping)null); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT: return in2out != null; case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN: return out2in != null; } return super.eIsSet(featureID);
public EOperation getIn2out() { if (in2out != null && in2out.eIsProxy()) { InternalEObject oldIn2out = (InternalEObject)in2out; in2out = (EOperation)eResolveProxy(oldIn2out); if (in2out != oldIn2out) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage.FUNCTION_PAIR__IN2OUT, oldIn2out, in2out)); } } return in2out; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EOperation basicGetIn2out() { return in2out; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setIn2out(EOperation newIn2out) { EOperation oldIn2out = in2out; in2out = newIn2out; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.FUNCTION_PAIR__IN2OUT, oldIn2out, in2out)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EOperation getOut2in() { if (out2in != null && out2in.eIsProxy()) { InternalEObject oldOut2in = (InternalEObject)out2in; out2in = (EOperation)eResolveProxy(oldOut2in); if (out2in != oldOut2in) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage.FUNCTION_PAIR__OUT2IN, oldOut2in, out2in)); } } return out2in; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EOperation basicGetOut2in() { return out2in; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setOut2in(EOperation newOut2in) { EOperation oldOut2in = out2in; out2in = newOut2in; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.FUNCTION_PAIR__OUT2IN, oldOut2in, out2in)); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case MappingPackage.FUNCTION_PAIR__IN2OUT: if (resolve) return getIn2out(); return basicGetIn2out(); case MappingPackage.FUNCTION_PAIR__OUT2IN: if (resolve) return getOut2in(); return basicGetOut2in(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case MappingPackage.FUNCTION_PAIR__IN2OUT: setIn2out((EOperation)newValue); return; case MappingPackage.FUNCTION_PAIR__OUT2IN: setOut2in((EOperation)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case MappingPackage.FUNCTION_PAIR__IN2OUT: setIn2out((EOperation)null); return; case MappingPackage.FUNCTION_PAIR__OUT2IN: setOut2in((EOperation)null); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case MappingPackage.FUNCTION_PAIR__IN2OUT: return in2out != null; case MappingPackage.FUNCTION_PAIR__OUT2IN: return out2in != null; } return super.eIsSet(featureID);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/ComplexTypeConverterImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/FunctionPairImpl.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public Mapping getIn2out()
1
public EOperation getIn2out()
2
  {
2
  {
3
    if (in2out != null && in2out.eIsProxy())
3
    if (in2out != null && in2out.eIsProxy())
4
    {
4
    {
5
      InternalEObject oldIn2out = (InternalEObject)in2out;
5
      InternalEObject oldIn2out = (InternalEObject)in2out;
6
      in2out = (Mapping)eResolveProxy(oldIn2out);
6
      in2out = (EOperation)eResolveProxy(oldIn2out);
7
      if (in2out != oldIn2out)
7
      if (in2out != oldIn2out)
8
      {
8
      {
9
        if (eNotificationRequired())
9
        if (eNotificationRequired())
10
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT, oldIn2out, in2out));
10
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage.FUNCTION_PAIR__IN2OUT, oldIn2out, in2out));
11
      }
11
      }
12
    }
12
    }
13
    return in2out;
13
    return in2out;
14
  }
14
  }
15
  /**
15
  /**
16
   * <!-- begin-user-doc -->
16
   * <!-- begin-user-doc -->
17
   * <!-- end-user-doc -->
17
   * <!-- end-user-doc -->
18
   * @generated
18
   * @generated
19
   */
19
   */
20
  public Mapping basicGetIn2out()
20
  public EOperation basicGetIn2out()
21
  {
21
  {
22
    return in2out;
22
    return in2out;
23
  }
23
  }
24
  /**
24
  /**
25
   * <!-- begin-user-doc -->
25
   * <!-- begin-user-doc -->
26
   * <!-- end-user-doc -->
26
   * <!-- end-user-doc -->
27
   * @generated
27
   * @generated
28
   */
28
   */
29
  public void setIn2out(Mapping newIn2out)
29
  public void setIn2out(EOperation newIn2out)
30
  {
30
  {
31
    Mapping oldIn2out = in2out;
31
    EOperation oldIn2out = in2out;
32
    in2out = newIn2out;
32
    in2out = newIn2out;
33
    if (eNotificationRequired())
33
    if (eNotificationRequired())
34
      eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT, oldIn2out, in2out));
34
      eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.FUNCTION_PAIR__IN2OUT, oldIn2out, in2out));
35
  }
35
  }
36
  /**
36
  /**
37
   * <!-- begin-user-doc -->
37
   * <!-- begin-user-doc -->
38
   * <!-- end-user-doc -->
38
   * <!-- end-user-doc -->
39
   * @generated
39
   * @generated
40
   */
40
   */
41
  public Mapping getOut2in()
41
  public EOperation getOut2in()
42
  {
42
  {
43
    if (out2in != null && out2in.eIsProxy())
43
    if (out2in != null && out2in.eIsProxy())
44
    {
44
    {
45
      InternalEObject oldOut2in = (InternalEObject)out2in;
45
      InternalEObject oldOut2in = (InternalEObject)out2in;
46
      out2in = (Mapping)eResolveProxy(oldOut2in);
46
      out2in = (EOperation)eResolveProxy(oldOut2in);
47
      if (out2in != oldOut2in)
47
      if (out2in != oldOut2in)
48
      {
48
      {
49
        if (eNotificationRequired())
49
        if (eNotificationRequired())
50
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN, oldOut2in, out2in));
50
          eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage.FUNCTION_PAIR__OUT2IN, oldOut2in, out2in));
51
      }
51
      }
52
    }
52
    }
53
    return out2in;
53
    return out2in;
54
  }
54
  }
55
  /**
55
  /**
56
   * <!-- begin-user-doc -->
56
   * <!-- begin-user-doc -->
57
   * <!-- end-user-doc -->
57
   * <!-- end-user-doc -->
58
   * @generated
58
   * @generated
59
   */
59
   */
60
  public Mapping basicGetOut2in()
60
  public EOperation basicGetOut2in()
61
  {
61
  {
62
    return out2in;
62
    return out2in;
63
  }
63
  }
64
  /**
64
  /**
65
   * <!-- begin-user-doc -->
65
   * <!-- begin-user-doc -->
66
   * <!-- end-user-doc -->
66
   * <!-- end-user-doc -->
67
   * @generated
67
   * @generated
68
   */
68
   */
69
  public void setOut2in(Mapping newOut2in)
69
  public void setOut2in(EOperation newOut2in)
70
  {
70
  {
71
    Mapping oldOut2in = out2in;
71
    EOperation oldOut2in = out2in;
72
    out2in = newOut2in;
72
    out2in = newOut2in;
73
    if (eNotificationRequired())
73
    if (eNotificationRequired())
74
      eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN, oldOut2in, out2in));
74
      eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage.FUNCTION_PAIR__OUT2IN, oldOut2in, out2in));
75
  }
75
  }
76
  /**
76
  /**
77
   * <!-- begin-user-doc -->
77
   * <!-- begin-user-doc -->
78
   * <!-- end-user-doc -->
78
   * <!-- end-user-doc -->
79
   * @generated
79
   * @generated
80
   */
80
   */
81
  @Override
81
  @Override
82
  public Object eGet(int featureID, boolean resolve, boolean coreType)
82
  public Object eGet(int featureID, boolean resolve, boolean coreType)
83
  {
83
  {
84
    switch (featureID)
84
    switch (featureID)
85
    {
85
    {
86
      case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT:
86
      case MappingPackage.FUNCTION_PAIR__IN2OUT:
87
        if (resolve) return getIn2out();
87
        if (resolve) return getIn2out();
88
        return basicGetIn2out();
88
        return basicGetIn2out();
89
      case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN:
89
      case MappingPackage.FUNCTION_PAIR__OUT2IN:
90
        if (resolve) return getOut2in();
90
        if (resolve) return getOut2in();
91
        return basicGetOut2in();
91
        return basicGetOut2in();
92
    }
92
    }
93
    return super.eGet(featureID, resolve, coreType);
93
    return super.eGet(featureID, resolve, coreType);
94
  }
94
  }
95
  /**
95
  /**
96
   * <!-- begin-user-doc -->
96
   * <!-- begin-user-doc -->
97
   * <!-- end-user-doc -->
97
   * <!-- end-user-doc -->
98
   * @generated
98
   * @generated
99
   */
99
   */
100
  @Override
100
  @Override
101
  public void eSet(int featureID, Object newValue)
101
  public void eSet(int featureID, Object newValue)
102
  {
102
  {
103
    switch (featureID)
103
    switch (featureID)
104
    {
104
    {
105
      case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT:
105
      case MappingPackage.FUNCTION_PAIR__IN2OUT:
106
        setIn2out((Mapping)newValue);
106
        setIn2out((EOperation)newValue);
107
        return;
107
        return;
108
      case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN:
108
      case MappingPackage.FUNCTION_PAIR__OUT2IN:
109
        setOut2in((Mapping)newValue);
109
        setOut2in((EOperation)newValue);
110
        return;
110
        return;
111
    }
111
    }
112
    super.eSet(featureID, newValue);
112
    super.eSet(featureID, newValue);
113
  }
113
  }
114
  /**
114
  /**
115
   * <!-- begin-user-doc -->
115
   * <!-- begin-user-doc -->
116
   * <!-- end-user-doc -->
116
   * <!-- end-user-doc -->
117
   * @generated
117
   * @generated
118
   */
118
   */
119
  @Override
119
  @Override
120
  public void eUnset(int featureID)
120
  public void eUnset(int featureID)
121
  {
121
  {
122
    switch (featureID)
122
    switch (featureID)
123
    {
123
    {
124
      case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT:
124
      case MappingPackage.FUNCTION_PAIR__IN2OUT:
125
        setIn2out((Mapping)null);
125
        setIn2out((EOperation)null);
126
        return;
126
        return;
127
      case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN:
127
      case MappingPackage.FUNCTION_PAIR__OUT2IN:
128
        setOut2in((Mapping)null);
128
        setOut2in((EOperation)null);
129
        return;
129
        return;
130
    }
130
    }
131
    super.eUnset(featureID);
131
    super.eUnset(featureID);
132
  }
132
  }
133
  /**
133
  /**
134
   * <!-- begin-user-doc -->
134
   * <!-- begin-user-doc -->
135
   * <!-- end-user-doc -->
135
   * <!-- end-user-doc -->
136
   * @generated
136
   * @generated
137
   */
137
   */
138
  @Override
138
  @Override
139
  public boolean eIsSet(int featureID)
139
  public boolean eIsSet(int featureID)
140
  {
140
  {
141
    switch (featureID)
141
    switch (featureID)
142
    {
142
    {
143
      case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT:
143
      case MappingPackage.FUNCTION_PAIR__IN2OUT:
144
        return in2out != null;
144
        return in2out != null;
145
      case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN:
145
      case MappingPackage.FUNCTION_PAIR__OUT2IN:
146
        return out2in != null;
146
        return out2in != null;
147
    }
147
    }
148
    return super.eIsSet(featureID);
148
    return super.eIsSet(featureID);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0