Class ConstraintViolationBean

java.lang.Object
jp.ecuacion.lib.core.util.ReflectionUtil
jp.ecuacion.lib.core.jakartavalidation.bean.ConstraintViolationBean

public class ConstraintViolationBean extends ReflectionUtil
Stores ConstraintViolation info.

The reason of the existence of the class is that the violations which are not created by Jakarata Validation can also be treated just like the one created by Jakarata Validation.

  • Constructor Details

    • ConstraintViolationBean

      public ConstraintViolationBean(Object rootBean, String message, String validatorClass, String rootRecordNameForForm, String itemPropertyPath)
      Constructs a new instance with parameters, not a ConstraintViolation.

      This is used for NotEmpty validation logic.

    • ConstraintViolationBean

      public ConstraintViolationBean(jakarta.validation.ConstraintViolation<?> cv)
      Constructs a new instance with ConstraintViolation.
      Parameters:
      cv - ConstraintViolation
  • Method Details