/**
*
*
*
* $Id$
*/
package net.opengis.wps10.impl;
import javax.measure.unit.Unit;
import net.opengis.ows11.DomainMetadataType;
import net.opengis.wps10.DefaultType1;
import net.opengis.wps10.Wps10Package;
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:
*
* - {@link net.opengis.wps10.impl.DefaultType1Impl#getUOM UOM}
*
*
*
* @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 Wps10Package.Literals.DEFAULT_TYPE1;
}
/**
*
*
* @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, Wps10Package.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, Wps10Package.DEFAULT_TYPE1__UOM, oldUOM, uOM));
}
/**
*
*
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Wps10Package.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 Wps10Package.DEFAULT_TYPE1__UOM:
setUOM((Unit)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case Wps10Package.DEFAULT_TYPE1__UOM:
setUOM((Unit)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case Wps10Package.DEFAULT_TYPE1__UOM:
return uOM != null;
}
return super.eIsSet(featureID);
}
} //DefaultType1Impl