/** * * * * $Id$ */ package net.opengis.wps.impl; import javax.measure.unit.Unit; import net.opengis.ows11.DomainMetadataType; import net.opengis.wps.DefaultType1; import net.opengis.wps.WpsPackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.NotificationChain; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.EObjectImpl; /** * * An implementation of the model object 'Default Type1'. * *

* The following features are implemented: *

*

* * @generated */ public class DefaultType1Impl extends EObjectImpl implements DefaultType1 { /** * The cached value of the '{@link #getUOM() UOM}' reference. * * * @see #getUOM() * @generated * @ordered */ protected Unit uOM; /** * * * @generated */ protected DefaultType1Impl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return WpsPackage.eINSTANCE.getDefaultType1(); } /** * * * @generated */ public Unit getUOM() { if (uOM != null && ((EObject)uOM).eIsProxy()) { InternalEObject oldUOM = (InternalEObject)uOM; uOM = (Unit)eResolveProxy(oldUOM); if (uOM != oldUOM) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, WpsPackage.DEFAULT_TYPE1__UOM, oldUOM, uOM)); } } return uOM; } /** * * * @generated */ public Unit basicGetUOM() { return uOM; } /** * * * @generated */ public void setUOM(Unit newUOM) { Unit oldUOM = uOM; uOM = newUOM; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WpsPackage.DEFAULT_TYPE1__UOM, oldUOM, uOM)); } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case WpsPackage.DEFAULT_TYPE1__UOM: if (resolve) return getUOM(); return basicGetUOM(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case WpsPackage.DEFAULT_TYPE1__UOM: setUOM((Unit)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case WpsPackage.DEFAULT_TYPE1__UOM: setUOM((Unit)null); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case WpsPackage.DEFAULT_TYPE1__UOM: return uOM != null; } return super.eIsSet(featureID); } } //DefaultType1Impl