constraintFor

public Constraint constraintFor(MessageType messageType)

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