blob: 20d3e4083677e28e98bc11921b7c0d32f49e54b7 [file] [log] [blame]
/**
*/
package org.eclipse.upr.bpmnprof.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.upr.bpmnprof.BpmnprofPackage;
import org.eclipse.upr.bpmnprof.InputOutputSpecification;
import org.eclipse.upr.bpmnprof.Task;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Task</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>{@link org.eclipse.upr.bpmnprof.impl.TaskImpl#getIoSpecification <em>Io Specification</em>}</li>
* </ul>
* </p>
*
* @generated
*/
public class TaskImpl extends BPMNActivityImpl implements Task {
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected TaskImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return BpmnprofPackage.eINSTANCE.getTask();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public InputOutputSpecification getIoSpecification() {
InputOutputSpecification ioSpecification = basicGetIoSpecification();
return ioSpecification != null && ioSpecification.eIsProxy() ? (InputOutputSpecification)eResolveProxy((InternalEObject)ioSpecification) : ioSpecification;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public InputOutputSpecification basicGetIoSpecification() {
// TODO: implement this method to return the 'Io Specification' reference
// -> do not perform proxy resolution
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setIoSpecification(InputOutputSpecification newIoSpecification) {
// TODO: implement this method to set the 'Io Specification' reference
// Ensure that you remove @generated or mark it @generated NOT
throw new UnsupportedOperationException();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case BpmnprofPackage.TASK__IO_SPECIFICATION:
if (resolve) return getIoSpecification();
return basicGetIoSpecification();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case BpmnprofPackage.TASK__IO_SPECIFICATION:
setIoSpecification((InputOutputSpecification)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case BpmnprofPackage.TASK__IO_SPECIFICATION:
setIoSpecification((InputOutputSpecification)null);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BpmnprofPackage.TASK__IO_SPECIFICATION:
return basicGetIoSpecification() != null;
}
return super.eIsSet(featureID);
}
} //TaskImpl