TestImpl.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.SmachDSLPackage;
00006 import org.best.of.robotics.smachDSL.Test;
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 
00028 public class TestImpl extends MinimalEObjectImpl.Container implements Test
00029 {
00038   protected static final String ROS_EDEFAULT = null;
00039 
00048   protected String ros = ROS_EDEFAULT;
00049 
00055   protected TestImpl()
00056   {
00057     super();
00058   }
00059 
00065   @Override
00066   protected EClass eStaticClass()
00067   {
00068     return SmachDSLPackage.Literals.TEST;
00069   }
00070 
00076   public String getRos()
00077   {
00078     return ros;
00079   }
00080 
00086   public void setRos(String newRos)
00087   {
00088     String oldRos = ros;
00089     ros = newRos;
00090     if (eNotificationRequired())
00091       eNotify(new ENotificationImpl(this, Notification.SET, SmachDSLPackage.TEST__ROS, oldRos, ros));
00092   }
00093 
00099   @Override
00100   public Object eGet(int featureID, boolean resolve, boolean coreType)
00101   {
00102     switch (featureID)
00103     {
00104       case SmachDSLPackage.TEST__ROS:
00105         return getRos();
00106     }
00107     return super.eGet(featureID, resolve, coreType);
00108   }
00109 
00115   @Override
00116   public void eSet(int featureID, Object newValue)
00117   {
00118     switch (featureID)
00119     {
00120       case SmachDSLPackage.TEST__ROS:
00121         setRos((String)newValue);
00122         return;
00123     }
00124     super.eSet(featureID, newValue);
00125   }
00126 
00132   @Override
00133   public void eUnset(int featureID)
00134   {
00135     switch (featureID)
00136     {
00137       case SmachDSLPackage.TEST__ROS:
00138         setRos(ROS_EDEFAULT);
00139         return;
00140     }
00141     super.eUnset(featureID);
00142   }
00143 
00149   @Override
00150   public boolean eIsSet(int featureID)
00151   {
00152     switch (featureID)
00153     {
00154       case SmachDSLPackage.TEST__ROS:
00155         return ROS_EDEFAULT == null ? ros != null : !ROS_EDEFAULT.equals(ros);
00156     }
00157     return super.eIsSet(featureID);
00158   }
00159 
00165   @Override
00166   public String toString()
00167   {
00168     if (eIsProxy()) return super.toString();
00169 
00170     StringBuffer result = new StringBuffer(super.toString());
00171     result.append(" (ros: ");
00172     result.append(ros);
00173     result.append(')');
00174     return result.toString();
00175   }
00176 
00177 } //TestImpl
 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