/** * Called to handle the copying of an attribute; * this adds a list of values or sets a single value as appropriate for the multiplicity. * @param eAttribute the attribute to copy. * @param eObject the object from which to copy. * @param copyEObject the object to copy to. */ protected void copyAttribute(EAttribute eAttribute, EObject eObject, EObject copyEObject) { if (eObject.eIsSet(eAttribute)) { if (FeatureMapUtil.isFeatureMap(eAttribute)) { FeatureMap featureMap = (FeatureMap)eObject.eGet(eAttribute); copyFeatureMap(featureMap); } else { EStructuralFeature.Setting setting = getTarget(eAttribute, eObject, copyEObject); if (setting != null) { copyAttributeValue(eAttribute, eObject, eObject.eGet(eAttribute), setting); } } } }
/** * Called to handle the copying of an attribute; * this adds a list of values or sets a single value as appropriate for the multiplicity. * @param eAttribute the attribute to copy. * @param eObject the object from which to copy. * @param copyEObject the object to copy to. */ protected void copyAttribute(EAttribute eAttribute, EObject eObject, EObject copyEObject) { if (eObject.eIsSet(eAttribute)) { if (FeatureMapUtil.isFeatureMap(eAttribute)) { FeatureMap featureMap = (FeatureMap)eObject.eGet(eAttribute); copyFeatureMap(featureMap); } else { EStructuralFeature.Setting setting = getTarget(eAttribute, eObject, copyEObject); if (setting != null) { copyAttributeValue(eAttribute, eObject, eObject.eGet(eAttribute), setting); } } } }