ServiceClientImpl.java
Go to the documentation of this file.
00001 
00003 package org.best.of.robotics.smachDSL.impl;
00004 
00005 import org.best.of.robotics.smachDSL.ServiceClient;
00006 import org.best.of.robotics.smachDSL.SmachDSLPackage;
00007 
00008 import org.eclipse.emf.common.notify.Notification;
00009 
00010 import org.eclipse.emf.ecore.EClass;
00011 
00012 import org.eclipse.emf.ecore.impl.ENotificationImpl;
00013 import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
00014 
00030 public class ServiceClientImpl extends MinimalEObjectImpl.Container implements ServiceClient
00031 {
00040   protected static final String NAME_EDEFAULT = null;
00041 
00050   protected String name = NAME_EDEFAULT;
00051 
00060   protected static final String SERVICENAME_EDEFAULT = null;
00061 
00070   protected String servicename = SERVICENAME_EDEFAULT;
00071 
00080   protected static final String SERVICESRV_EDEFAULT = null;
00081 
00090   protected String servicesrv = SERVICESRV_EDEFAULT;
00091 
00097   protected ServiceClientImpl()
00098   {
00099     super();
00100   }
00101 
00107   @Override
00108   protected EClass eStaticClass()
00109   {
00110     return SmachDSLPackage.Literals.SERVICE_CLIENT;
00111   }
00112 
00118   public String getName()
00119   {
00120     return name;
00121   }
00122 
00128   public void setName(String newName)
00129   {
00130     String oldName = name;
00131     name = newName;
00132     if (eNotificationRequired())
00133       eNotify(new ENotificationImpl(this, Notification.SET, SmachDSLPackage.SERVICE_CLIENT__NAME, oldName, name));
00134   }
00135 
00141   public String getServicename()
00142   {
00143     return servicename;
00144   }
00145 
00151   public void setServicename(String newServicename)
00152   {
00153     String oldServicename = servicename;
00154     servicename = newServicename;
00155     if (eNotificationRequired())
00156       eNotify(new ENotificationImpl(this, Notification.SET, SmachDSLPackage.SERVICE_CLIENT__SERVICENAME, oldServicename, servicename));
00157   }
00158 
00164   public String getServicesrv()
00165   {
00166     return servicesrv;
00167   }
00168 
00174   public void setServicesrv(String newServicesrv)
00175   {
00176     String oldServicesrv = servicesrv;
00177     servicesrv = newServicesrv;
00178     if (eNotificationRequired())
00179       eNotify(new ENotificationImpl(this, Notification.SET, SmachDSLPackage.SERVICE_CLIENT__SERVICESRV, oldServicesrv, servicesrv));
00180   }
00181 
00187   @Override
00188   public Object eGet(int featureID, boolean resolve, boolean coreType)
00189   {
00190     switch (featureID)
00191     {
00192       case SmachDSLPackage.SERVICE_CLIENT__NAME:
00193         return getName();
00194       case SmachDSLPackage.SERVICE_CLIENT__SERVICENAME:
00195         return getServicename();
00196       case SmachDSLPackage.SERVICE_CLIENT__SERVICESRV:
00197         return getServicesrv();
00198     }
00199     return super.eGet(featureID, resolve, coreType);
00200   }
00201 
00207   @Override
00208   public void eSet(int featureID, Object newValue)
00209   {
00210     switch (featureID)
00211     {
00212       case SmachDSLPackage.SERVICE_CLIENT__NAME:
00213         setName((String)newValue);
00214         return;
00215       case SmachDSLPackage.SERVICE_CLIENT__SERVICENAME:
00216         setServicename((String)newValue);
00217         return;
00218       case SmachDSLPackage.SERVICE_CLIENT__SERVICESRV:
00219         setServicesrv((String)newValue);
00220         return;
00221     }
00222     super.eSet(featureID, newValue);
00223   }
00224 
00230   @Override
00231   public void eUnset(int featureID)
00232   {
00233     switch (featureID)
00234     {
00235       case SmachDSLPackage.SERVICE_CLIENT__NAME:
00236         setName(NAME_EDEFAULT);
00237         return;
00238       case SmachDSLPackage.SERVICE_CLIENT__SERVICENAME:
00239         setServicename(SERVICENAME_EDEFAULT);
00240         return;
00241       case SmachDSLPackage.SERVICE_CLIENT__SERVICESRV:
00242         setServicesrv(SERVICESRV_EDEFAULT);
00243         return;
00244     }
00245     super.eUnset(featureID);
00246   }
00247 
00253   @Override
00254   public boolean eIsSet(int featureID)
00255   {
00256     switch (featureID)
00257     {
00258       case SmachDSLPackage.SERVICE_CLIENT__NAME:
00259         return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
00260       case SmachDSLPackage.SERVICE_CLIENT__SERVICENAME:
00261         return SERVICENAME_EDEFAULT == null ? servicename != null : !SERVICENAME_EDEFAULT.equals(servicename);
00262       case SmachDSLPackage.SERVICE_CLIENT__SERVICESRV:
00263         return SERVICESRV_EDEFAULT == null ? servicesrv != null : !SERVICESRV_EDEFAULT.equals(servicesrv);
00264     }
00265     return super.eIsSet(featureID);
00266   }
00267 
00273   @Override
00274   public String toString()
00275   {
00276     if (eIsProxy()) return super.toString();
00277 
00278     StringBuffer result = new StringBuffer(super.toString());
00279     result.append(" (name: ");
00280     result.append(name);
00281     result.append(", servicename: ");
00282     result.append(servicename);
00283     result.append(", servicesrv: ");
00284     result.append(servicesrv);
00285     result.append(')');
00286     return result.toString();
00287   }
00288 
00289 } //ServiceClientImpl
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


bride_plugin_source
Author(s): Alexander Bubeck
autogenerated on Wed Aug 14 2013 10:06:09