/** * * * * $Id$ */ package net.opengis.wfs.impl; import net.opengis.wfs.GetCapabilitiesType; import net.opengis.wfs.WfsPackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.impl.ENotificationImpl; /** * * An implementation of the model object 'Get Capabilities Type'. * *

* The following features are implemented: *

*

* * @generated */ public class GetCapabilitiesTypeImpl extends net.opengis.ows10.impl.GetCapabilitiesTypeImpl implements GetCapabilitiesType { /** * The default value of the '{@link #getService() Service}' attribute. * * * @see #getService() * @generated * @ordered */ protected static final String SERVICE_EDEFAULT = "WFS"; /** * The cached value of the '{@link #getService() Service}' attribute. * * * @see #getService() * @generated * @ordered */ protected String service = SERVICE_EDEFAULT; /** * This is true if the Service attribute has been set. * * * @generated * @ordered */ protected boolean serviceESet; /** * * * @generated */ protected GetCapabilitiesTypeImpl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return WfsPackage.Literals.GET_CAPABILITIES_TYPE; } /** * * * @generated */ public String getService() { return service; } /** * * * @generated */ public void setService(String newService) { String oldService = service; service = newService; boolean oldServiceESet = serviceESet; serviceESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WfsPackage.GET_CAPABILITIES_TYPE__SERVICE, oldService, service, !oldServiceESet)); } /** * * * @generated */ public void unsetService() { String oldService = service; boolean oldServiceESet = serviceESet; service = SERVICE_EDEFAULT; serviceESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, WfsPackage.GET_CAPABILITIES_TYPE__SERVICE, oldService, SERVICE_EDEFAULT, oldServiceESet)); } /** * * * @generated */ public boolean isSetService() { return serviceESet; } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case WfsPackage.GET_CAPABILITIES_TYPE__SERVICE: return getService(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case WfsPackage.GET_CAPABILITIES_TYPE__SERVICE: setService((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case WfsPackage.GET_CAPABILITIES_TYPE__SERVICE: unsetService(); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case WfsPackage.GET_CAPABILITIES_TYPE__SERVICE: return isSetService(); } return super.eIsSet(featureID); } /** * * * @generated */ public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (service: "); if (serviceESet) result.append(service); else result.append(""); result.append(')'); return result.toString(); } } //GetCapabilitiesTypeImpl