public FloatBinding() {
super("float");
}
protected AbstractDescriptor createDescriptor(String value, Element element, Parse parse) {
FloatDescriptor floatDescriptor = new FloatDescriptor();
Float floatValue;
try {
floatValue = new Float(value);
} catch (NumberFormatException e) {
parse.addProblem(createValueExceptionMessage("'"+value+"' cannot be parsed to a float", element), element);
return null;
}
floatDescriptor.setValue(floatValue);
return floatDescriptor;
}