addTemplateViolation method

void addTemplateViolation(
  1. String message
)

Add a default violation that will be completed with the default value and field name

Implementation

void addTemplateViolation(String message) {
  templateViolations.add(message);
}