/**
*
*
*
* $Id$
*/
package net.opengis.wfs20.impl;
import net.opengis.wfs20.ExecutionStatusType;
import net.opengis.wfs20.Wfs20Package;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
/**
*
* An implementation of the model object 'Execution Status Type'.
*
*
* The following features are implemented:
*
* - {@link net.opengis.wfs20.impl.ExecutionStatusTypeImpl#getStatus Status}
*
*
*
* @generated
*/
public class ExecutionStatusTypeImpl extends EObjectImpl implements ExecutionStatusType {
/**
* The default value of the '{@link #getStatus() Status}' attribute.
*
*
* @see #getStatus()
* @generated
* @ordered
*/
protected static final String STATUS_EDEFAULT = "OK";
/**
* The cached value of the '{@link #getStatus() Status}' attribute.
*
*
* @see #getStatus()
* @generated
* @ordered
*/
protected String status = STATUS_EDEFAULT;
/**
* This is true if the Status attribute has been set.
*
*
* @generated
* @ordered
*/
protected boolean statusESet;
/**
*
*
* @generated
*/
protected ExecutionStatusTypeImpl() {
super();
}
/**
*
*
* @generated
*/
@Override
protected EClass eStaticClass() {
return Wfs20Package.Literals.EXECUTION_STATUS_TYPE;
}
/**
*
*
* @generated
*/
public String getStatus() {
return status;
}
/**
*
*
* @generated
*/
public void setStatus(String newStatus) {
String oldStatus = status;
status = newStatus;
boolean oldStatusESet = statusESet;
statusESet = true;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Wfs20Package.EXECUTION_STATUS_TYPE__STATUS, oldStatus, status, !oldStatusESet));
}
/**
*
*
* @generated
*/
public void unsetStatus() {
String oldStatus = status;
boolean oldStatusESet = statusESet;
status = STATUS_EDEFAULT;
statusESet = false;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.UNSET, Wfs20Package.EXECUTION_STATUS_TYPE__STATUS, oldStatus, STATUS_EDEFAULT, oldStatusESet));
}
/**
*
*
* @generated
*/
public boolean isSetStatus() {
return statusESet;
}
/**
*
*
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case Wfs20Package.EXECUTION_STATUS_TYPE__STATUS:
return getStatus();
}
return super.eGet(featureID, resolve, coreType);
}
/**
*
*
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case Wfs20Package.EXECUTION_STATUS_TYPE__STATUS:
setStatus((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
*
*
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case Wfs20Package.EXECUTION_STATUS_TYPE__STATUS:
unsetStatus();
return;
}
super.eUnset(featureID);
}
/**
*
*
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case Wfs20Package.EXECUTION_STATUS_TYPE__STATUS:
return isSetStatus();
}
return super.eIsSet(featureID);
}
/**
*
*
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (status: ");
if (statusESet) result.append(status); else result.append("");
result.append(')');
return result.toString();
}
} //ExecutionStatusTypeImpl