Object value = helper.getValue(o, f); if (value != null) { EDataType d = (EDataType)f.getEType(); EPackage ePackage = d.getEPackage(); EFactory fac = ePackage.getEFactoryInstance(); String svalue = helper.convertToString(fac, d, value); if (escape != null) { svalue = escape.convert(svalue); } return svalue; } else { return null; }
return getDatatypeValue(helper.getValue(o, f), f);
  protected String getDataTypeElementSingleSimple(EObject o, EStructuralFeature f)  {    Object value = helper.getValue(o, f);    if (value != null)    {      EDataType d = (EDataType)f.getEType();      EPackage ePackage = d.getEPackage();      EFactory fac = ePackage.getEFactoryInstance();      String svalue = helper.convertToString(fac, d, value);      if (escape != null)      {        svalue = escape.convert(svalue);      }      return svalue;    }    else    {      return null;    }  }