// String byte, short, int, long, and their respective wrapper types
// null elements are considered valid
Digits digits = (Digits) annotation;
if (digits.fraction() == 0) {
sb.append("digits: true, \n");
sb.append("maxlength: ").append(digits.integer());
} else {
// Something like /^\d{1,5}(\.\d{1,2})?$/
sb.append("pattern: /^\\d{1,").append(digits.integer()).append("}(\\.\\d{1,").append(digits.fraction()).append("})?$/ ");
}
} else if (annotation instanceof Digits.List) {