public IntBinding() {
super("int");
}
protected AbstractDescriptor createDescriptor(String value, Element element, Parse parse) {
IntegerDescriptor integerDescriptor = new IntegerDescriptor();
Integer integerValue;
try {
integerValue = new Integer(value);
} catch (NumberFormatException e) {
parse.addProblem(createValueExceptionMessage("'"+value+"' cannot be parsed to an int", element), element);
return null;
}
integerDescriptor.setValue(integerValue);
return integerDescriptor;
}