/** * * * * $Id$ */ package net.opengis.wfs.impl; import java.util.Collection; import net.opengis.wfs.OperationType; import net.opengis.wfs.OperationsType; import net.opengis.wfs.WfsPackage; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.EObjectImpl; import org.eclipse.emf.ecore.util.EDataTypeEList; /** * * An implementation of the model object 'Operations Type'. * *

* The following features are implemented: *

*

* * @generated */ public class OperationsTypeImpl extends EObjectImpl implements OperationsType { /** * The cached value of the '{@link #getOperation() Operation}' attribute list. * * * @see #getOperation() * @generated * @ordered */ protected EList operation; /** * * * @generated */ protected OperationsTypeImpl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return WfsPackage.Literals.OPERATIONS_TYPE; } /** * * * @generated */ public EList getOperation() { if (operation == null) { operation = new EDataTypeEList(OperationType.class, this, WfsPackage.OPERATIONS_TYPE__OPERATION); } return operation; } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case WfsPackage.OPERATIONS_TYPE__OPERATION: return getOperation(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case WfsPackage.OPERATIONS_TYPE__OPERATION: getOperation().clear(); getOperation().addAll((Collection)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case WfsPackage.OPERATIONS_TYPE__OPERATION: getOperation().clear(); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case WfsPackage.OPERATIONS_TYPE__OPERATION: return operation != null && !operation.isEmpty(); } return super.eIsSet(featureID); } /** * * * @generated */ public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (operation: "); result.append(operation); result.append(')'); return result.toString(); } } //OperationsTypeImpl