constraintFor

public Constraint constraintFor(FieldContext field)

Creates a Constraint for the given field based on the value of the option.