private static boolean validateEnumeration ( Collection < String > allowedValues , String value ) { return ( allowedValues != null && allowedValues . contains ( value ) ) ; }
Validate the given value against a collection of allowed values .