* @author Guillaume Porcher (documentation)
*/
public class ByteBinding extends BasicTypeBinding {
protected AbstractDescriptor createDescriptor(String value) {
ByteDescriptor byteDescriptor = new ByteDescriptor();
Byte byteValue;
try {
byteValue = new Byte(value);
} catch (NumberFormatException e) {
throw new NumberFormatException("'"+value+"' cannot be parsed to a byte");
}
byteDescriptor.setValue(byteValue);
return byteDescriptor;
}