public DoubleBinding() {
super("double");
}
protected AbstractDescriptor createDescriptor(String value, Element element, Parse parse) {
DoubleDescriptor doubleDescriptor = new DoubleDescriptor();
Double doubleValue;
try {
doubleValue = new Double(value);
} catch (NumberFormatException e) {
parse.addProblem(createValueExceptionMessage("'"+value+"' cannot be parsed to a double", element), element);
return null;
}
doubleDescriptor.setValue(doubleValue);
return doubleDescriptor;
}