/** * * * * $Id$ */ package net.opengis.wps.impl; import java.math.BigInteger; import net.opengis.wps.SupportedComplexDataInputType; 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; /** * * An implementation of the model object 'Supported Complex Data Input Type'. * *

* The following features are implemented: *

*

* * @generated */ public class SupportedComplexDataInputTypeImpl extends SupportedComplexDataTypeImpl implements SupportedComplexDataInputType { /** * The default value of the '{@link #getMaximumMegabytes() Maximum Megabytes}' attribute. * * * @see #getMaximumMegabytes() * @generated * @ordered */ protected static final BigInteger MAXIMUM_MEGABYTES_EDEFAULT = null; /** * The cached value of the '{@link #getMaximumMegabytes() Maximum Megabytes}' attribute. * * * @see #getMaximumMegabytes() * @generated * @ordered */ protected BigInteger maximumMegabytes = MAXIMUM_MEGABYTES_EDEFAULT; /** * * * @generated */ protected SupportedComplexDataInputTypeImpl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return WpsPackage.eINSTANCE.getSupportedComplexDataInputType(); } /** * * * @generated */ public BigInteger getMaximumMegabytes() { return maximumMegabytes; } /** * * * @generated */ public void setMaximumMegabytes(BigInteger newMaximumMegabytes) { BigInteger oldMaximumMegabytes = maximumMegabytes; maximumMegabytes = newMaximumMegabytes; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WpsPackage.SUPPORTED_COMPLEX_DATA_INPUT_TYPE__MAXIMUM_MEGABYTES, oldMaximumMegabytes, maximumMegabytes)); } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case WpsPackage.SUPPORTED_COMPLEX_DATA_INPUT_TYPE__MAXIMUM_MEGABYTES: return getMaximumMegabytes(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case WpsPackage.SUPPORTED_COMPLEX_DATA_INPUT_TYPE__MAXIMUM_MEGABYTES: setMaximumMegabytes((BigInteger)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case WpsPackage.SUPPORTED_COMPLEX_DATA_INPUT_TYPE__MAXIMUM_MEGABYTES: setMaximumMegabytes(MAXIMUM_MEGABYTES_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case WpsPackage.SUPPORTED_COMPLEX_DATA_INPUT_TYPE__MAXIMUM_MEGABYTES: return MAXIMUM_MEGABYTES_EDEFAULT == null ? maximumMegabytes != null : !MAXIMUM_MEGABYTES_EDEFAULT.equals(maximumMegabytes); } return super.eIsSet(featureID); } /** * * * @generated */ public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (maximumMegabytes: "); result.append(maximumMegabytes); result.append(')'); return result.toString(); } } //SupportedComplexDataInputTypeImpl