@NonNull protected static List<RaveError> checkStringDef(boolean isNullable,@NonNull ValidationContext validationContext,@Nullable String[] values,String... acceptableValues){
  List<RaveError> errors=checkNullable(values,isNullable,validationContext);
  if (values == null) {
    return errors;
  }
  for (  String s : values) {
    errors=mergeErrors(errors,checkStringDef(false,validationContext,s,acceptableValues));
  }
  return errors == null ? Collections.<RaveError>emptyList() : errors;
}

@ NonNull protected static List < RaveError > checkStringDef ( boolean isNullable , @ NonNull ValidationContext validationContext , @ Nullable String [ ] values , String ... acceptableValues ) { List < RaveError > errors = checkNullable ( values , isNullable , validationContext ) ; if ( values == null ) { return errors ; } for ( String s : values ) { errors = mergeErrors ( errors , checkStringDef ( false , validationContext , s , acceptableValues ) ) ; } return errors == null ? Collections . < RaveError > emptyList ( ) : errors ; }
utility to check if the strings in a array of strings match acceptable values . if the input array is null then nothing is done .
