/**
*
*
*
* $Id$
*/
package net.opengis.wps10.impl;
import net.opengis.ows11.ExceptionReportType;
import net.opengis.wps10.ProcessFailedType;
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.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
/**
*
* An implementation of the model object 'Process Failed Type'.
*
*
* The following features are implemented:
*
* - {@link net.opengis.wps10.impl.ProcessFailedTypeImpl#getExceptionReport Exception Report}
*
*
*
* @generated
*/
public class ProcessFailedTypeImpl extends EObjectImpl implements ProcessFailedType {
/**
* The cached value of the '{@link #getExceptionReport() Exception Report}' containment reference.
*
*
* @see #getExceptionReport()
* @generated
* @ordered
*/
protected ExceptionReportType exceptionReport;
/**
*
*
* @generated
*/
protected ProcessFailedTypeImpl() {
super();
}
/**
*
*
* @generated
*/
protected EClass eStaticClass() {
return Wps10Package.Literals.PROCESS_FAILED_TYPE;
}
/**
*
*
* @generated
*/
public ExceptionReportType getExceptionReport() {
return exceptionReport;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetExceptionReport(ExceptionReportType newExceptionReport, NotificationChain msgs) {
ExceptionReportType oldExceptionReport = exceptionReport;
exceptionReport = newExceptionReport;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wps10Package.PROCESS_FAILED_TYPE__EXCEPTION_REPORT, oldExceptionReport, newExceptionReport);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setExceptionReport(ExceptionReportType newExceptionReport) {
if (newExceptionReport != exceptionReport) {
NotificationChain msgs = null;
if (exceptionReport != null)
msgs = ((InternalEObject)exceptionReport).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Wps10Package.PROCESS_FAILED_TYPE__EXCEPTION_REPORT, null, msgs);
if (newExceptionReport != null)
msgs = ((InternalEObject)newExceptionReport).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Wps10Package.PROCESS_FAILED_TYPE__EXCEPTION_REPORT, null, msgs);
msgs = basicSetExceptionReport(newExceptionReport, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Wps10Package.PROCESS_FAILED_TYPE__EXCEPTION_REPORT, newExceptionReport, newExceptionReport));
}
/**
*
*
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case Wps10Package.PROCESS_FAILED_TYPE__EXCEPTION_REPORT:
return basicSetExceptionReport(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Wps10Package.PROCESS_FAILED_TYPE__EXCEPTION_REPORT:
return getExceptionReport();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Wps10Package.PROCESS_FAILED_TYPE__EXCEPTION_REPORT:
setExceptionReport((ExceptionReportType)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case Wps10Package.PROCESS_FAILED_TYPE__EXCEPTION_REPORT:
setExceptionReport((ExceptionReportType)null);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case Wps10Package.PROCESS_FAILED_TYPE__EXCEPTION_REPORT:
return exceptionReport != null;
}
return super.eIsSet(featureID);
}
} //ProcessFailedTypeImpl