/** */ package com.hundsun.ares.studio.jres.model.chouse.impl; import com.hundsun.ares.studio.jres.model.chouse.ChousePackage; import com.hundsun.ares.studio.jres.model.chouse.ConstraintModifyDetail; import com.hundsun.ares.studio.jres.model.chouse.RemoveConstraintModification; import java.util.Collection; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>Remove Constraint Modification</b></em>'. * <!-- end-user-doc --> * <p> * The following features are implemented: * <ul> * <li>{@link com.hundsun.ares.studio.jres.model.chouse.impl.RemoveConstraintModificationImpl#getDetails <em>Details</em>}</li> * </ul> * </p> * * @generated */ public class RemoveConstraintModificationImpl extends ModificationImpl implements RemoveConstraintModification { /** * The cached value of the '{@link #getDetails() <em>Details</em>}' containment reference list. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #getDetails() * @generated * @ordered */ protected EList<ConstraintModifyDetail> details; /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected RemoveConstraintModificationImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return ChousePackage.Literals.REMOVE_CONSTRAINT_MODIFICATION; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EList<ConstraintModifyDetail> getDetails() { if (details == null) { details = new EObjectContainmentEList<ConstraintModifyDetail>(ConstraintModifyDetail.class, this, ChousePackage.REMOVE_CONSTRAINT_MODIFICATION__DETAILS); } return details; } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case ChousePackage.REMOVE_CONSTRAINT_MODIFICATION__DETAILS: return ((InternalEList<?>)getDetails()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case ChousePackage.REMOVE_CONSTRAINT_MODIFICATION__DETAILS: return getDetails(); } return super.eGet(featureID, resolve, coreType); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case ChousePackage.REMOVE_CONSTRAINT_MODIFICATION__DETAILS: getDetails().clear(); getDetails().addAll((Collection<? extends ConstraintModifyDetail>)newValue); return; } super.eSet(featureID, newValue); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void eUnset(int featureID) { switch (featureID) { case ChousePackage.REMOVE_CONSTRAINT_MODIFICATION__DETAILS: getDetails().clear(); return; } super.eUnset(featureID); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public boolean eIsSet(int featureID) { switch (featureID) { case ChousePackage.REMOVE_CONSTRAINT_MODIFICATION__DETAILS: return details != null && !details.isEmpty(); } return super.eIsSet(featureID); } } //RemoveConstraintModificationImpl