* testValue did not pass the validation tests.
*/
protected void doAssertValidity(String testValue)
throws ValidationException
{
NumberKey nk = null;
try
{
nk = new NumberKey(testValue);
}
catch (RuntimeException e)
{
message = invalidNumberMessage;
throw new ValidationException(invalidNumberMessage);
}
if ( minValue != null && nk.compareTo(minValue) < 0 )
{
message = minValueMessage;
throw new ValidationException(minValueMessage);
}
if ( maxValue != null && nk.compareTo(maxValue) > 0 )
{
message = maxValueMessage;
throw new ValidationException(maxValueMessage);
}
}