public static void checkFieldValueFromEnum(final String value,final String fieldName,Class<? extends Enum> enumType){
  if (value != null) {
    checkFieldValueFromEnum(value,fieldName,EnumSet.allOf(enumType));
  }
}

public static void checkFieldValueFromEnum ( final String value , final String fieldName , Class < ? extends Enum > enumType ) { if ( value != null ) { checkFieldValueFromEnum ( value , fieldName , EnumSet . allOf ( enumType ) ) ; } }
validates that the value supplied matches one of the expected values ' names
