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