@Override public void test(String t) throws ParameterException {
  if (t.length() < minlength) {
    throw new WrongParameterValueException("Parameter Constraint Error.\n" + "Parameter value length must be at least " + minlength + ".");
  }
  if (maxlength > 0 && t.length() > maxlength) {
    throw new WrongParameterValueException("Parameter Constraint Error.\n" + "Parameter value length must be at most " + maxlength + ".");
  }
}

@ Override public void test ( String t ) throws ParameterException { if ( t . length ( ) < minlength ) { throw new WrongParameterValueException ( "Parameter Constraint Error.\n" + "Parameter value length must be at least " + minlength + "." ) ; } if ( maxlength > 0 && t . length ( ) > maxlength ) { throw new WrongParameterValueException ( "Parameter Constraint Error.\n" + "Parameter value length must be at most " + maxlength + "." ) ; } }
checks if the given string value of the string parameter is within the length restrictions . if not , a parameter exception is thrown .
