/** * * * * $Id$ */ package net.opengis.wps.impl; import java.util.Collection; import net.opengis.wps.ProcessBriefType; import net.opengis.wps.ProcessOfferingsType; 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 'Process Offerings Type'. * *

* The following features are implemented: *

*

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