/** * * * * $Id$ */ package net.opengis.wps.impl; import java.util.Collection; import net.opengis.wps.ProcessBriefType; import net.opengis.wps.WSDLType; import net.opengis.wps.WpsPackage; import org.eclipse.emf.common.notify.Notification; 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.ENotificationImpl; import org.eclipse.emf.ecore.util.EDataTypeEList; /** * * An implementation of the model object 'Process Brief Type'. * *

* The following features are implemented: *

*

* * @generated */ public class ProcessBriefTypeImpl extends DescriptionTypeImpl implements ProcessBriefType { /** * The default value of the '{@link #getProfile() Profile}' attribute. * * * @see #getProfile() * @generated * @ordered */ protected static final String PROFILE_EDEFAULT = null; /** * The cached value of the '{@link #getProfile() Profile}' attribute. * * * @see #getProfile() * @generated * @ordered */ protected String profile = PROFILE_EDEFAULT; /** * The cached value of the '{@link #getWSDL() WSDL}' containment reference. * * * @see #getWSDL() * @generated * @ordered */ protected WSDLType wSDL; /** * The default value of the '{@link #getProcessVersion() Process Version}' attribute. * * * @see #getProcessVersion() * @generated * @ordered */ protected static final String PROCESS_VERSION_EDEFAULT = null; /** * The cached value of the '{@link #getProcessVersion() Process Version}' attribute. * * * @see #getProcessVersion() * @generated * @ordered */ protected String processVersion = PROCESS_VERSION_EDEFAULT; /** * * * @generated */ protected ProcessBriefTypeImpl() { super(); } /** * * * @generated */ protected EClass eStaticClass() { return WpsPackage.eINSTANCE.getProcessBriefType(); } /** * * * @generated */ public String getProfile() { return profile; } /** * * * @generated */ public void setProfile(String newProfile) { String oldProfile = profile; profile = newProfile; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WpsPackage.PROCESS_BRIEF_TYPE__PROFILE, oldProfile, profile)); } /** * * * @generated */ public WSDLType getWSDL() { return wSDL; } /** * * * @generated */ public NotificationChain basicSetWSDL(WSDLType newWSDL, NotificationChain msgs) { WSDLType oldWSDL = wSDL; wSDL = newWSDL; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WpsPackage.PROCESS_BRIEF_TYPE__WSDL, oldWSDL, newWSDL); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; } /** * * * @generated */ public void setWSDL(WSDLType newWSDL) { if (newWSDL != wSDL) { NotificationChain msgs = null; if (wSDL != null) msgs = ((InternalEObject)wSDL).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - WpsPackage.PROCESS_BRIEF_TYPE__WSDL, null, msgs); if (newWSDL != null) msgs = ((InternalEObject)newWSDL).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - WpsPackage.PROCESS_BRIEF_TYPE__WSDL, null, msgs); msgs = basicSetWSDL(newWSDL, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WpsPackage.PROCESS_BRIEF_TYPE__WSDL, newWSDL, newWSDL)); } /** * * * @generated */ public String getProcessVersion() { return processVersion; } /** * * * @generated */ public void setProcessVersion(String newProcessVersion) { String oldProcessVersion = processVersion; processVersion = newProcessVersion; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WpsPackage.PROCESS_BRIEF_TYPE__PROCESS_VERSION, oldProcessVersion, processVersion)); } /** * * * @generated */ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case WpsPackage.PROCESS_BRIEF_TYPE__WSDL: return basicSetWSDL(null, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } /** * * * @generated */ public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case WpsPackage.PROCESS_BRIEF_TYPE__PROFILE: return getProfile(); case WpsPackage.PROCESS_BRIEF_TYPE__WSDL: return getWSDL(); case WpsPackage.PROCESS_BRIEF_TYPE__PROCESS_VERSION: return getProcessVersion(); } return super.eGet(featureID, resolve, coreType); } /** * * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case WpsPackage.PROCESS_BRIEF_TYPE__PROFILE: setProfile((String)newValue); return; case WpsPackage.PROCESS_BRIEF_TYPE__WSDL: setWSDL((WSDLType)newValue); return; case WpsPackage.PROCESS_BRIEF_TYPE__PROCESS_VERSION: setProcessVersion((String)newValue); return; } super.eSet(featureID, newValue); } /** * * * @generated */ public void eUnset(int featureID) { switch (featureID) { case WpsPackage.PROCESS_BRIEF_TYPE__PROFILE: setProfile(PROFILE_EDEFAULT); return; case WpsPackage.PROCESS_BRIEF_TYPE__WSDL: setWSDL((WSDLType)null); return; case WpsPackage.PROCESS_BRIEF_TYPE__PROCESS_VERSION: setProcessVersion(PROCESS_VERSION_EDEFAULT); return; } super.eUnset(featureID); } /** * * * @generated */ public boolean eIsSet(int featureID) { switch (featureID) { case WpsPackage.PROCESS_BRIEF_TYPE__PROFILE: return PROFILE_EDEFAULT == null ? profile != null : !PROFILE_EDEFAULT.equals(profile); case WpsPackage.PROCESS_BRIEF_TYPE__WSDL: return wSDL != null; case WpsPackage.PROCESS_BRIEF_TYPE__PROCESS_VERSION: return PROCESS_VERSION_EDEFAULT == null ? processVersion != null : !PROCESS_VERSION_EDEFAULT.equals(processVersion); } return super.eIsSet(featureID); } /** * * * @generated */ public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (profile: "); result.append(profile); result.append(", processVersion: "); result.append(processVersion); result.append(')'); return result.toString(); } } //ProcessBriefTypeImpl