case STRING:
try {
return NumberFormat.getInstance(Locale.getDefault()).parse(
fieldNode.textValue());
} catch (final ParseException e) {
throw new DNSAPIClientJsonMappingException(
DNSAPIClientJsonMappingExceptionCode.invalidFieldValue, e,
fieldName, getTextualBeanType(), e.getMessage());
}
default:
throw new DNSAPIClientJsonMappingException(
DNSAPIClientJsonMappingExceptionCode.invalidFieldValue,
fieldName, getTextualBeanType(), "Field cannot be read as a number");
}
}