Class BeanValidationErrorInfoBean

java.lang.Object
jp.ecuacion.lib.core.beanvalidation.bean.BeanValidationErrorInfoBean

public class BeanValidationErrorInfoBean extends Object
Stores ConstraintViolation info.
  • Constructor Details

    • BeanValidationErrorInfoBean

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

      public BeanValidationErrorInfoBean(String message, String propertyPath, String validatorClass, String rootClassName)
      Constructs a new instance with message, propertyPath and validatorClass.

      This is used for NotEmpty validation logic.

      Parameters:
      message - message
      propertyPath - propertyPath
      validatorClass - validatorClass
  • Method Details

    • getMessage

      public String getMessage()
      Gets message.
      Returns:
      message
    • getPropertyPath

      public String getPropertyPath()
      Gets propertyPath.
      Returns:
      propertyPath
    • getValidatorClass

      public String getValidatorClass()
      Gets validatorClass.
      Returns:
      validatorClass
    • getAnnotationDescriptionString

      public String getAnnotationDescriptionString()
      Gets annotationDescriptionString.
      Returns:
      annotationDescriptionString
    • getAnnotation

      public String getAnnotation()
      Gets annotation.
      Returns:
      annotation
    • getAnnotationAttributes

      public Map<String,Object> getAnnotationAttributes()
      Gets annotationAttributes.
      Returns:
      annotationAttributes
    • getMessageTemplate

      public String getMessageTemplate()
      Gets messageTemplate.
      Returns:
      messageTemplate
    • getRootClassName

      public String getRootClassName()
      Gets rootClassName.
      Returns:
      rootClassName
    • getLeafClassName

      public String getLeafClassName()
      Gets leafClassName.
      Returns:
      leafClassName
    • getInvalidValue

      public String getInvalidValue()
      Gets invalidValue.
      Returns:
      invalidValue
    • getMessageId

      @Nonnull public String getMessageId()
      Gets messageId.
      Returns:
      annotation
    • getInstance

      public Object getInstance()
      Gets instance.
      Returns:
      instance
    • getParamMap

      @Nonnull public Map<String,Object> getParamMap()