/** * * * * $Id$ */ package net.opengis.wps10.impl; import java.util.Collection; import net.opengis.wps10.ComplexDataCombinationsType; import net.opengis.wps10.ComplexDataDescriptionType; import net.opengis.wps10.Wps10Package; 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 'Complex Data Combinations Type'. * *

* The following features are implemented: *

*

* * @generated */ public class ComplexDataCombinationsTypeImpl extends EObjectImpl implements ComplexDataCombinationsType { /** * The cached value of the '{@link #getFormat() Format}' containment reference list. * * * @see #getFormat() * @generated * @ordered */ protected EList format; /** * * * @generated */ protected ComplexDataCombinationsTypeImpl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return Wps10Package.Literals.COMPLEX_DATA_COMBINATIONS_TYPE; } /** * * * @generated */ public EList getFormat() { if (format == null) { format = new EObjectContainmentEList(ComplexDataDescriptionType.class, this, Wps10Package.COMPLEX_DATA_COMBINATIONS_TYPE__FORMAT); } return format; } /** * * * @generated */ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case Wps10Package.COMPLEX_DATA_COMBINATIONS_TYPE__FORMAT: return ((InternalEList)getFormat()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case Wps10Package.COMPLEX_DATA_COMBINATIONS_TYPE__FORMAT: return getFormat(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case Wps10Package.COMPLEX_DATA_COMBINATIONS_TYPE__FORMAT: getFormat().clear(); getFormat().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case Wps10Package.COMPLEX_DATA_COMBINATIONS_TYPE__FORMAT: getFormat().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case Wps10Package.COMPLEX_DATA_COMBINATIONS_TYPE__FORMAT: return format != null && !format.isEmpty(); } return super.eIsSet(featureID); } } //ComplexDataCombinationsTypeImpl