CloneSet21


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
157230.964class_body_declarations[10]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115791
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/impl/ComplexTypeConverterImpl.java
215791
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/impl/FunctionPairImpl.java
Next
Last
Clone Instance
1
Line Count
157
Source Line
91
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/impl/ComplexTypeConverterImpl.java

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
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);
}


First
Previous
Clone Instance
2
Line Count
157
Source Line
91
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/mapping/impl/FunctionPairImpl.java

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
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 AbstractionParameter Count: 3Parameter Bindings

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public [[#variable14677920]] getIn2out() {
  if (in2out != null && in2out.eIsProxy()) {
    InternalEObject oldIn2out = (InternalEObject) in2out;
    in2out = ( [[#variable14677920]]) eResolveProxy(oldIn2out);
    if (in2out != oldIn2out) {
      if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage. [[#variable146b9540]], oldIn2out, in2out));
    }
  }
  return in2out;
}

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public [[#variable14677920]] basicGetIn2out() {
  return in2out;
}

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setIn2out( [[#variable14677920]] newIn2out) {
   [[#variable14677920]] oldIn2out = in2out;
  in2out = newIn2out;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage. [[#variable146b9540]], oldIn2out, in2out));
}

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public [[#variable14677920]] getOut2in() {
  if (out2in != null && out2in.eIsProxy()) {
    InternalEObject oldOut2in = (InternalEObject) out2in;
    out2in = ( [[#variable14677920]]) eResolveProxy(oldOut2in);
    if (out2in != oldOut2in) {
      if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.RESOLVE, MappingPackage. [[#variable14975140]], oldOut2in, out2in));
    }
  }
  return out2in;
}

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public [[#variable14677920]] basicGetOut2in() {
  return out2in;
}

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public void setOut2in( [[#variable14677920]] newOut2in) {
   [[#variable14677920]] oldOut2in = out2in;
  out2in = newOut2in;
  if (eNotificationRequired())
    eNotify(new ENotificationImpl(this, Notification.SET, MappingPackage. [[#variable14975140]], oldOut2in, out2in));
}

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) {
  switch (featureID) {
    case MappingPackage. [[#variable146b9540]]:
      if (resolve)
        return getIn2out();
      return basicGetIn2out();
    case MappingPackage. [[#variable14975140]]:
      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. [[#variable146b9540]]:
      setIn2out(( [[#variable14677920]]) newValue);
      return;
    case MappingPackage. [[#variable14975140]]:
      setOut2in(( [[#variable14677920]]) newValue);
      return;
  }
  super.eSet(featureID, newValue);
}

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
@Override public void eUnset(int featureID) {
  switch (featureID) {
    case MappingPackage. [[#variable146b9540]]:
      setIn2out(( [[#variable14677920]]) null);
      return;
    case MappingPackage. [[#variable14975140]]:
      setOut2in(( [[#variable14677920]]) null);
      return;
  }
  super.eUnset(featureID);
}

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
@Override public boolean eIsSet(int featureID) {
  switch (featureID) {
    case MappingPackage. [[#variable146b9540]]:
      return in2out != null;
    case MappingPackage. [[#variable14975140]]:
      return out2in != null;
  }
  return super.eIsSet(featureID);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#14677920]]
Mapping 
12[[#14677920]]
EOperation 
21[[#146b9540]]
COMPLEX_TYPE_CONVERTER__IN2OUT 
22[[#146b9540]]
FUNCTION_PAIR__IN2OUT 
31[[#14975140]]
COMPLEX_TYPE_CONVERTER__OUT2IN 
32[[#14975140]]
FUNCTION_PAIR__OUT2IN