/** * * * * $Id$ */ package net.opengis.wps.impl; import java.util.Collection; import net.opengis.wps.DataInputsType1; import net.opengis.wps.InputType; import net.opengis.wps.WpsPackage; 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.impl.EObjectImpl; import org.eclipse.emf.ecore.util.EObjectContainmentEList; import org.eclipse.emf.ecore.util.InternalEList; /** * * An implementation of the model object 'Data Inputs Type1'. * *

* The following features are implemented: *

*

* * @generated */ public class DataInputsType1Impl extends EObjectImpl implements DataInputsType1 { /** * The cached value of the '{@link #getInput() Input}' containment reference list. * * * @see #getInput() * @generated * @ordered */ protected EList input; /** * * * @generated */ protected DataInputsType1Impl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return WpsPackage.eINSTANCE.getDataInputsType1(); } /** * * * @generated */ public EList getInput() { if (input == null) { input = new EObjectContainmentEList(InputType.class, this, WpsPackage.DATA_INPUTS_TYPE1__INPUT); } return input; } /** * * * @generated */ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case WpsPackage.DATA_INPUTS_TYPE1__INPUT: return ((InternalEList)getInput()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case WpsPackage.DATA_INPUTS_TYPE1__INPUT: return getInput(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case WpsPackage.DATA_INPUTS_TYPE1__INPUT: getInput().clear(); getInput().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case WpsPackage.DATA_INPUTS_TYPE1__INPUT: getInput().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case WpsPackage.DATA_INPUTS_TYPE1__INPUT: return input != null && !input.isEmpty(); } return super.eIsSet(featureID); } } //DataInputsType1Impl