constraintFor

public Constraint constraintFor(FieldContext fieldValue)

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