@Override public void test(String t) throws ParameterException {
  for (  String constraint : testStrings) {
    if (t.equalsIgnoreCase(constraint)) {
      return;
    }
  }
  throw new WrongParameterValueException("Parameter Constraint Error.\n" + "Parameter value must be one of the following values: " + constraintStrings());
}

@ Override public void test ( String t ) throws ParameterException { for ( String constraint : testStrings ) { if ( t . equalsIgnoreCase ( constraint ) ) { return ; } } throw new WrongParameterValueException ( "Parameter Constraint Error.\n" + "Parameter value must be one of the following values: " + constraintStrings ( ) ) ; }
checks if the given string value of the string parameter is equal to one of the constraint strings . if not , a parameter exception is thrown .
