/** * * * * $Id$ */ package net.opengis.wps.impl; import net.opengis.wps.DefaultType; import net.opengis.wps.WpsPackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; import org.eclipse.emf.ecore.impl.EObjectImpl; /** * * An implementation of the model object 'Default Type'. * *

* The following features are implemented: *

*

* * @generated */ public class DefaultTypeImpl extends EObjectImpl implements DefaultType { /** * The default value of the '{@link #getCRS() CRS}' attribute. * * * @see #getCRS() * @generated * @ordered */ protected static final String CRS_EDEFAULT = null; /** * The cached value of the '{@link #getCRS() CRS}' attribute. * * * @see #getCRS() * @generated * @ordered */ protected String cRS = CRS_EDEFAULT; /** * * * @generated */ protected DefaultTypeImpl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return WpsPackage.eINSTANCE.getDefaultType(); } /** * * * @generated */ public String getCRS() { return cRS; } /** * * * @generated */ public void setCRS(String newCRS) { String oldCRS = cRS; cRS = newCRS; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WpsPackage.DEFAULT_TYPE__CRS, oldCRS, cRS)); } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case WpsPackage.DEFAULT_TYPE__CRS: return getCRS(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case WpsPackage.DEFAULT_TYPE__CRS: setCRS((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case WpsPackage.DEFAULT_TYPE__CRS: setCRS(CRS_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case WpsPackage.DEFAULT_TYPE__CRS: return CRS_EDEFAULT == null ? cRS != null : !CRS_EDEFAULT.equals(cRS); } return super.eIsSet(featureID); } /** * * * @generated */ public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (cRS: "); result.append(cRS); result.append(')'); return result.toString(); } } //DefaultTypeImpl