Class DefaultViolationTranslator

  • All Implemented Interfaces:

    public class DefaultViolationTranslator
    extends Object
    implements IViolationTranslator
    A default implementation of IViolationTranslator. The validation error is created with the constraint violation's default error message. Further, the violation is checked for a message key and if is found it is also added as a message key to the validation error. The keys are only used if they are in the bean validation's default format of '{key}'.