* @see WireParser
*/
public class FloatBinding extends BasicTypeBinding {
protected AbstractDescriptor createDescriptor(String value) {
FloatDescriptor floatDescriptor = new FloatDescriptor();
Float floatValue;
try {
floatValue = new Float(value);
} catch (NumberFormatException e) {
throw new NumberFormatException("'"+value+"' cannot be parsed to a float");
}
floatDescriptor.setValue(floatValue);
return floatDescriptor;
}