/** * * * * $Id$ */ package net.opengis.wps.impl; import net.opengis.wps.CRSsType; import net.opengis.wps.DefaultType; import net.opengis.wps.SupportedCRSsType; 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.InternalEObject; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.EObjectImpl; /** * * An implementation of the model object 'Supported CR Ss Type'. * *

* The following features are implemented: *

*

* * @generated */ public class SupportedCRSsTypeImpl extends EObjectImpl implements SupportedCRSsType { /** * The cached value of the '{@link #getDefault() Default}' containment reference. * * * @see #getDefault() * @generated * @ordered */ protected DefaultType default_; /** * The cached value of the '{@link #getSupported() Supported}' containment reference. * * * @see #getSupported() * @generated * @ordered */ protected CRSsType supported; /** * * * @generated */ protected SupportedCRSsTypeImpl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return WpsPackage.eINSTANCE.getSupportedCRSsType(); } /** * * * @generated */ public DefaultType getDefault() { return default_; } /** * * * @generated */ public NotificationChain basicSetDefault(DefaultType newDefault, NotificationChain msgs) { DefaultType oldDefault = default_; default_ = newDefault; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WpsPackage.SUPPORTED_CR_SS_TYPE__DEFAULT, oldDefault, newDefault); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setDefault(DefaultType newDefault) { if (newDefault != default_) { NotificationChain msgs = null; if (default_ != null) msgs = ((InternalEObject)default_).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WpsPackage.SUPPORTED_CR_SS_TYPE__DEFAULT, null, msgs); if (newDefault != null) msgs = ((InternalEObject)newDefault).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WpsPackage.SUPPORTED_CR_SS_TYPE__DEFAULT, null, msgs); msgs = basicSetDefault(newDefault, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WpsPackage.SUPPORTED_CR_SS_TYPE__DEFAULT, newDefault, newDefault)); } /** * * * @generated */ public CRSsType getSupported() { return supported; } /** * * * @generated */ public NotificationChain basicSetSupported(CRSsType newSupported, NotificationChain msgs) { CRSsType oldSupported = supported; supported = newSupported; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WpsPackage.SUPPORTED_CR_SS_TYPE__SUPPORTED, oldSupported, newSupported); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setSupported(CRSsType newSupported) { if (newSupported != supported) { NotificationChain msgs = null; if (supported != null) msgs = ((InternalEObject)supported).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WpsPackage.SUPPORTED_CR_SS_TYPE__SUPPORTED, null, msgs); if (newSupported != null) msgs = ((InternalEObject)newSupported).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WpsPackage.SUPPORTED_CR_SS_TYPE__SUPPORTED, null, msgs); msgs = basicSetSupported(newSupported, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WpsPackage.SUPPORTED_CR_SS_TYPE__SUPPORTED, newSupported, newSupported)); } /** * * * @generated */ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case WpsPackage.SUPPORTED_CR_SS_TYPE__DEFAULT: return basicSetDefault(null, msgs); case WpsPackage.SUPPORTED_CR_SS_TYPE__SUPPORTED: return basicSetSupported(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case WpsPackage.SUPPORTED_CR_SS_TYPE__DEFAULT: return getDefault(); case WpsPackage.SUPPORTED_CR_SS_TYPE__SUPPORTED: return getSupported(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case WpsPackage.SUPPORTED_CR_SS_TYPE__DEFAULT: setDefault((DefaultType)newValue); return; case WpsPackage.SUPPORTED_CR_SS_TYPE__SUPPORTED: setSupported((CRSsType)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case WpsPackage.SUPPORTED_CR_SS_TYPE__DEFAULT: setDefault((DefaultType)null); return; case WpsPackage.SUPPORTED_CR_SS_TYPE__SUPPORTED: setSupported((CRSsType)null); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case WpsPackage.SUPPORTED_CR_SS_TYPE__DEFAULT: return default_ != null; case WpsPackage.SUPPORTED_CR_SS_TYPE__SUPPORTED: return supported != null; } return super.eIsSet(featureID); } } //SupportedCRSsTypeImpl