}
private static void validateValue(BigInteger v, SchemaType sType, ValidationContext context)
{
// total digits
XmlInt td = (XmlInt)sType.getFacet(SchemaType.FACET_TOTAL_DIGITS);
if (td != null)
{
String temp = v.toString();
int len = temp.length();
if (len > 0 && temp.charAt(0) == '-')
len -= 1;
if (len > td.getIntValue())
{
context.invalid(
"Integer total digits (" + temp + ") is greater than " +
"total digits facet (" + td.getIntValue() + ") for " + QNameHelper.readable(sType));
return;
}
}
// min ex