public LongBinding() {
super("long");
}
protected AbstractDescriptor createDescriptor(String value, Element element, Parse parse) {
LongDescriptor longDescriptor = new LongDescriptor();
Long longValue;
try {
longValue = new Long(value);
} catch (NumberFormatException e) {
parse.addProblem(createValueExceptionMessage("'"+value+"' cannot be parsed to a long", element), element);
return null;
}
longDescriptor.setValue(longValue);
return longDescriptor;
}