ActionClientImpl.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.ActionClient;
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 ActionClientImpl extends MinimalEObjectImpl.Container implements ActionClient
00031 {
00040   protected static final String NAME_EDEFAULT = null;
00041 
00050   protected String name = NAME_EDEFAULT;
00051 
00060   protected static final String ACTIONNAME_EDEFAULT = null;
00061 
00070   protected String actionname = ACTIONNAME_EDEFAULT;
00071 
00080   protected static final String ACTIONTYPE_EDEFAULT = null;
00081 
00090   protected String actiontype = ACTIONTYPE_EDEFAULT;
00091 
00097   protected ActionClientImpl()
00098   {
00099     super();
00100   }
00101 
00107   @Override
00108   protected EClass eStaticClass()
00109   {
00110     return SmachDSLPackage.Literals.ACTION_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.ACTION_CLIENT__NAME, oldName, name));
00134   }
00135 
00141   public String getActionname()
00142   {
00143     return actionname;
00144   }
00145 
00151   public void setActionname(String newActionname)
00152   {
00153     String oldActionname = actionname;
00154     actionname = newActionname;
00155     if (eNotificationRequired())
00156       eNotify(new ENotificationImpl(this, Notification.SET, SmachDSLPackage.ACTION_CLIENT__ACTIONNAME, oldActionname, actionname));
00157   }
00158 
00164   public String getActiontype()
00165   {
00166     return actiontype;
00167   }
00168 
00174   public void setActiontype(String newActiontype)
00175   {
00176     String oldActiontype = actiontype;
00177     actiontype = newActiontype;
00178     if (eNotificationRequired())
00179       eNotify(new ENotificationImpl(this, Notification.SET, SmachDSLPackage.ACTION_CLIENT__ACTIONTYPE, oldActiontype, actiontype));
00180   }
00181 
00187   @Override
00188   public Object eGet(int featureID, boolean resolve, boolean coreType)
00189   {
00190     switch (featureID)
00191     {
00192       case SmachDSLPackage.ACTION_CLIENT__NAME:
00193         return getName();
00194       case SmachDSLPackage.ACTION_CLIENT__ACTIONNAME:
00195         return getActionname();
00196       case SmachDSLPackage.ACTION_CLIENT__ACTIONTYPE:
00197         return getActiontype();
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.ACTION_CLIENT__NAME:
00213         setName((String)newValue);
00214         return;
00215       case SmachDSLPackage.ACTION_CLIENT__ACTIONNAME:
00216         setActionname((String)newValue);
00217         return;
00218       case SmachDSLPackage.ACTION_CLIENT__ACTIONTYPE:
00219         setActiontype((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.ACTION_CLIENT__NAME:
00236         setName(NAME_EDEFAULT);
00237         return;
00238       case SmachDSLPackage.ACTION_CLIENT__ACTIONNAME:
00239         setActionname(ACTIONNAME_EDEFAULT);
00240         return;
00241       case SmachDSLPackage.ACTION_CLIENT__ACTIONTYPE:
00242         setActiontype(ACTIONTYPE_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.ACTION_CLIENT__NAME:
00259         return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);
00260       case SmachDSLPackage.ACTION_CLIENT__ACTIONNAME:
00261         return ACTIONNAME_EDEFAULT == null ? actionname != null : !ACTIONNAME_EDEFAULT.equals(actionname);
00262       case SmachDSLPackage.ACTION_CLIENT__ACTIONTYPE:
00263         return ACTIONTYPE_EDEFAULT == null ? actiontype != null : !ACTIONTYPE_EDEFAULT.equals(actiontype);
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(", actionname: ");
00282     result.append(actionname);
00283     result.append(", actiontype: ");
00284     result.append(actiontype);
00285     result.append(')');
00286     return result.toString();
00287   }
00288 
00289 } //ActionClientImpl


bride_plugin_source
Author(s): Alexander Bubeck
autogenerated on Sun Oct 5 2014 22:38:34