/**
*
*
*
* $Id$
*/
package net.opengis.wps10.impl;
import net.opengis.wps10.DataInputsType1;
import net.opengis.wps10.ExecuteResponseType;
import net.opengis.wps10.OutputDefinitionsType;
import net.opengis.wps10.ProcessBriefType;
import net.opengis.wps10.ProcessOutputsType1;
import net.opengis.wps10.StatusType;
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;
/**
*
* An implementation of the model object 'Execute Response Type'.
*
*
* The following features are implemented:
*
* - {@link net.opengis.wps10.impl.ExecuteResponseTypeImpl#getProcess Process}
* - {@link net.opengis.wps10.impl.ExecuteResponseTypeImpl#getStatus Status}
* - {@link net.opengis.wps10.impl.ExecuteResponseTypeImpl#getDataInputs Data Inputs}
* - {@link net.opengis.wps10.impl.ExecuteResponseTypeImpl#getOutputDefinitions Output Definitions}
* - {@link net.opengis.wps10.impl.ExecuteResponseTypeImpl#getProcessOutputs Process Outputs}
* - {@link net.opengis.wps10.impl.ExecuteResponseTypeImpl#getServiceInstance Service Instance}
* - {@link net.opengis.wps10.impl.ExecuteResponseTypeImpl#getStatusLocation Status Location}
*
*
*
* @generated
*/
public class ExecuteResponseTypeImpl extends ResponseBaseTypeImpl implements ExecuteResponseType {
/**
* The cached value of the '{@link #getProcess() Process}' containment reference.
*
*
* @see #getProcess()
* @generated
* @ordered
*/
protected ProcessBriefType process;
/**
* The cached value of the '{@link #getStatus() Status}' containment reference.
*
*
* @see #getStatus()
* @generated
* @ordered
*/
protected StatusType status;
/**
* The cached value of the '{@link #getDataInputs() Data Inputs}' containment reference.
*
*
* @see #getDataInputs()
* @generated
* @ordered
*/
protected DataInputsType1 dataInputs;
/**
* The cached value of the '{@link #getOutputDefinitions() Output Definitions}' containment reference.
*
*
* @see #getOutputDefinitions()
* @generated
* @ordered
*/
protected OutputDefinitionsType outputDefinitions;
/**
* The cached value of the '{@link #getProcessOutputs() Process Outputs}' containment reference.
*
*
* @see #getProcessOutputs()
* @generated
* @ordered
*/
protected ProcessOutputsType1 processOutputs;
/**
* The default value of the '{@link #getServiceInstance() Service Instance}' attribute.
*
*
* @see #getServiceInstance()
* @generated
* @ordered
*/
protected static final String SERVICE_INSTANCE_EDEFAULT = null;
/**
* The cached value of the '{@link #getServiceInstance() Service Instance}' attribute.
*
*
* @see #getServiceInstance()
* @generated
* @ordered
*/
protected String serviceInstance = SERVICE_INSTANCE_EDEFAULT;
/**
* The default value of the '{@link #getStatusLocation() Status Location}' attribute.
*
*
* @see #getStatusLocation()
* @generated
* @ordered
*/
protected static final String STATUS_LOCATION_EDEFAULT = null;
/**
* The cached value of the '{@link #getStatusLocation() Status Location}' attribute.
*
*
* @see #getStatusLocation()
* @generated
* @ordered
*/
protected String statusLocation = STATUS_LOCATION_EDEFAULT;
/**
*
*
* @generated
*/
protected ExecuteResponseTypeImpl() {
super();
}
/**
*
*
* @generated
*/
protected EClass eStaticClass() {
return Wps10Package.Literals.EXECUTE_RESPONSE_TYPE;
}
/**
*
*
* @generated
*/
public ProcessBriefType getProcess() {
return process;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetProcess(ProcessBriefType newProcess, NotificationChain msgs) {
ProcessBriefType oldProcess = process;
process = newProcess;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS, oldProcess, newProcess);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setProcess(ProcessBriefType newProcess) {
if (newProcess != process) {
NotificationChain msgs = null;
if (process != null)
msgs = ((InternalEObject)process).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS, null, msgs);
if (newProcess != null)
msgs = ((InternalEObject)newProcess).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS, null, msgs);
msgs = basicSetProcess(newProcess, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS, newProcess, newProcess));
}
/**
*
*
* @generated
*/
public StatusType getStatus() {
return status;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetStatus(StatusType newStatus, NotificationChain msgs) {
StatusType oldStatus = status;
status = newStatus;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS, oldStatus, newStatus);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setStatus(StatusType newStatus) {
if (newStatus != status) {
NotificationChain msgs = null;
if (status != null)
msgs = ((InternalEObject)status).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS, null, msgs);
if (newStatus != null)
msgs = ((InternalEObject)newStatus).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS, null, msgs);
msgs = basicSetStatus(newStatus, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS, newStatus, newStatus));
}
/**
*
*
* @generated
*/
public DataInputsType1 getDataInputs() {
return dataInputs;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetDataInputs(DataInputsType1 newDataInputs, NotificationChain msgs) {
DataInputsType1 oldDataInputs = dataInputs;
dataInputs = newDataInputs;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__DATA_INPUTS, oldDataInputs, newDataInputs);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setDataInputs(DataInputsType1 newDataInputs) {
if (newDataInputs != dataInputs) {
NotificationChain msgs = null;
if (dataInputs != null)
msgs = ((InternalEObject)dataInputs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Wps10Package.EXECUTE_RESPONSE_TYPE__DATA_INPUTS, null, msgs);
if (newDataInputs != null)
msgs = ((InternalEObject)newDataInputs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Wps10Package.EXECUTE_RESPONSE_TYPE__DATA_INPUTS, null, msgs);
msgs = basicSetDataInputs(newDataInputs, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__DATA_INPUTS, newDataInputs, newDataInputs));
}
/**
*
*
* @generated
*/
public OutputDefinitionsType getOutputDefinitions() {
return outputDefinitions;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetOutputDefinitions(OutputDefinitionsType newOutputDefinitions, NotificationChain msgs) {
OutputDefinitionsType oldOutputDefinitions = outputDefinitions;
outputDefinitions = newOutputDefinitions;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__OUTPUT_DEFINITIONS, oldOutputDefinitions, newOutputDefinitions);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setOutputDefinitions(OutputDefinitionsType newOutputDefinitions) {
if (newOutputDefinitions != outputDefinitions) {
NotificationChain msgs = null;
if (outputDefinitions != null)
msgs = ((InternalEObject)outputDefinitions).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Wps10Package.EXECUTE_RESPONSE_TYPE__OUTPUT_DEFINITIONS, null, msgs);
if (newOutputDefinitions != null)
msgs = ((InternalEObject)newOutputDefinitions).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Wps10Package.EXECUTE_RESPONSE_TYPE__OUTPUT_DEFINITIONS, null, msgs);
msgs = basicSetOutputDefinitions(newOutputDefinitions, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__OUTPUT_DEFINITIONS, newOutputDefinitions, newOutputDefinitions));
}
/**
*
*
* @generated
*/
public ProcessOutputsType1 getProcessOutputs() {
return processOutputs;
}
/**
*
*
* @generated
*/
public NotificationChain basicSetProcessOutputs(ProcessOutputsType1 newProcessOutputs, NotificationChain msgs) {
ProcessOutputsType1 oldProcessOutputs = processOutputs;
processOutputs = newProcessOutputs;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS_OUTPUTS, oldProcessOutputs, newProcessOutputs);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
/**
*
*
* @generated
*/
public void setProcessOutputs(ProcessOutputsType1 newProcessOutputs) {
if (newProcessOutputs != processOutputs) {
NotificationChain msgs = null;
if (processOutputs != null)
msgs = ((InternalEObject)processOutputs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS_OUTPUTS, null, msgs);
if (newProcessOutputs != null)
msgs = ((InternalEObject)newProcessOutputs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS_OUTPUTS, null, msgs);
msgs = basicSetProcessOutputs(newProcessOutputs, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS_OUTPUTS, newProcessOutputs, newProcessOutputs));
}
/**
*
*
* @generated
*/
public String getServiceInstance() {
return serviceInstance;
}
/**
*
*
* @generated
*/
public void setServiceInstance(String newServiceInstance) {
String oldServiceInstance = serviceInstance;
serviceInstance = newServiceInstance;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__SERVICE_INSTANCE, oldServiceInstance, serviceInstance));
}
/**
*
*
* @generated
*/
public String getStatusLocation() {
return statusLocation;
}
/**
*
*
* @generated
*/
public void setStatusLocation(String newStatusLocation) {
String oldStatusLocation = statusLocation;
statusLocation = newStatusLocation;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS_LOCATION, oldStatusLocation, statusLocation));
}
/**
*
*
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS:
return basicSetProcess(null, msgs);
case Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS:
return basicSetStatus(null, msgs);
case Wps10Package.EXECUTE_RESPONSE_TYPE__DATA_INPUTS:
return basicSetDataInputs(null, msgs);
case Wps10Package.EXECUTE_RESPONSE_TYPE__OUTPUT_DEFINITIONS:
return basicSetOutputDefinitions(null, msgs);
case Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS_OUTPUTS:
return basicSetProcessOutputs(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS:
return getProcess();
case Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS:
return getStatus();
case Wps10Package.EXECUTE_RESPONSE_TYPE__DATA_INPUTS:
return getDataInputs();
case Wps10Package.EXECUTE_RESPONSE_TYPE__OUTPUT_DEFINITIONS:
return getOutputDefinitions();
case Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS_OUTPUTS:
return getProcessOutputs();
case Wps10Package.EXECUTE_RESPONSE_TYPE__SERVICE_INSTANCE:
return getServiceInstance();
case Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS_LOCATION:
return getStatusLocation();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS:
setProcess((ProcessBriefType)newValue);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS:
setStatus((StatusType)newValue);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__DATA_INPUTS:
setDataInputs((DataInputsType1)newValue);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__OUTPUT_DEFINITIONS:
setOutputDefinitions((OutputDefinitionsType)newValue);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS_OUTPUTS:
setProcessOutputs((ProcessOutputsType1)newValue);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__SERVICE_INSTANCE:
setServiceInstance((String)newValue);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS_LOCATION:
setStatusLocation((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS:
setProcess((ProcessBriefType)null);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS:
setStatus((StatusType)null);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__DATA_INPUTS:
setDataInputs((DataInputsType1)null);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__OUTPUT_DEFINITIONS:
setOutputDefinitions((OutputDefinitionsType)null);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS_OUTPUTS:
setProcessOutputs((ProcessOutputsType1)null);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__SERVICE_INSTANCE:
setServiceInstance(SERVICE_INSTANCE_EDEFAULT);
return;
case Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS_LOCATION:
setStatusLocation(STATUS_LOCATION_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS:
return process != null;
case Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS:
return status != null;
case Wps10Package.EXECUTE_RESPONSE_TYPE__DATA_INPUTS:
return dataInputs != null;
case Wps10Package.EXECUTE_RESPONSE_TYPE__OUTPUT_DEFINITIONS:
return outputDefinitions != null;
case Wps10Package.EXECUTE_RESPONSE_TYPE__PROCESS_OUTPUTS:
return processOutputs != null;
case Wps10Package.EXECUTE_RESPONSE_TYPE__SERVICE_INSTANCE:
return SERVICE_INSTANCE_EDEFAULT == null ? serviceInstance != null : !SERVICE_INSTANCE_EDEFAULT.equals(serviceInstance);
case Wps10Package.EXECUTE_RESPONSE_TYPE__STATUS_LOCATION:
return STATUS_LOCATION_EDEFAULT == null ? statusLocation != null : !STATUS_LOCATION_EDEFAULT.equals(statusLocation);
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (serviceInstance: ");
result.append(serviceInstance);
result.append(", statusLocation: ");
result.append(statusLocation);
result.append(')');
return result.toString();
}
} //ExecuteResponseTypeImpl