constraintFor

public Constraint constraintFor(FieldContext context)

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