public ShortBinding() {
super("short");
}
protected AbstractDescriptor createDescriptor(String value, Element element, Parse parse) {
ShortDescriptor shortDescriptor = new ShortDescriptor();
Short shortValue;
try {
shortValue = new Short(value);
} catch (NumberFormatException e) {
parse.addProblem(createValueExceptionMessage("'"+value+"' cannot be parsed to a short", element), element);
return null;
}
shortDescriptor.setValue(shortValue);
return shortDescriptor;
}