/**
*
*
*
* $Id$
*/
package net.opengis.wps10.impl;
import java.math.BigInteger;
import net.opengis.wps10.SupportedComplexDataInputType;
import net.opengis.wps10.Wps10Package;
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:
*
* - {@link net.opengis.wps10.impl.SupportedComplexDataInputTypeImpl#getMaximumMegabytes Maximum Megabytes}
*
*
*
* @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 Wps10Package.Literals.SUPPORTED_COMPLEX_DATA_INPUT_TYPE;
}
/**
*
*
* @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, Wps10Package.SUPPORTED_COMPLEX_DATA_INPUT_TYPE__MAXIMUM_MEGABYTES, oldMaximumMegabytes, maximumMegabytes));
}
/**
*
*
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Wps10Package.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 Wps10Package.SUPPORTED_COMPLEX_DATA_INPUT_TYPE__MAXIMUM_MEGABYTES:
setMaximumMegabytes((BigInteger)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case Wps10Package.SUPPORTED_COMPLEX_DATA_INPUT_TYPE__MAXIMUM_MEGABYTES:
setMaximumMegabytes(MAXIMUM_MEGABYTES_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case Wps10Package.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