/**
*
*
*
* $Id$
*/
package net.opengis.wps10.impl;
import java.util.Collection;
import net.opengis.wps10.OutputDataType;
import net.opengis.wps10.ProcessOutputsType1;
import net.opengis.wps10.Wps10Package;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
/**
*
* An implementation of the model object 'Process Outputs Type1'.
*
*
* The following features are implemented:
*
* - {@link net.opengis.wps10.impl.ProcessOutputsType1Impl#getOutput Output}
*
*
*
* @generated
*/
public class ProcessOutputsType1Impl extends EObjectImpl implements ProcessOutputsType1 {
/**
* The cached value of the '{@link #getOutput() Output}' containment reference list.
*
*
* @see #getOutput()
* @generated
* @ordered
*/
protected EList output;
/**
*
*
* @generated
*/
protected ProcessOutputsType1Impl() {
super();
}
/**
*
*
* @generated
*/
protected EClass eStaticClass() {
return Wps10Package.Literals.PROCESS_OUTPUTS_TYPE1;
}
/**
*
*
* @generated
*/
public EList getOutput() {
if (output == null) {
output = new EObjectContainmentEList(OutputDataType.class, this, Wps10Package.PROCESS_OUTPUTS_TYPE1__OUTPUT);
}
return output;
}
/**
*
*
* @generated
*/
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
switch (featureID) {
case Wps10Package.PROCESS_OUTPUTS_TYPE1__OUTPUT:
return ((InternalEList)getOutput()).basicRemove(otherEnd, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
}
/**
*
*
* @generated
*/
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Wps10Package.PROCESS_OUTPUTS_TYPE1__OUTPUT:
return getOutput();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Wps10Package.PROCESS_OUTPUTS_TYPE1__OUTPUT:
getOutput().clear();
getOutput().addAll((Collection)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
public void eUnset(int featureID) {
switch (featureID) {
case Wps10Package.PROCESS_OUTPUTS_TYPE1__OUTPUT:
getOutput().clear();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
public boolean eIsSet(int featureID) {
switch (featureID) {
case Wps10Package.PROCESS_OUTPUTS_TYPE1__OUTPUT:
return output != null && !output.isEmpty();
}
return super.eIsSet(featureID);
}
} //ProcessOutputsType1Impl