Module jp.ecuacion.lib.core
Class BeanValidationErrorInfoBean
java.lang.Object
jp.ecuacion.lib.core.beanvalidation.bean.BeanValidationErrorInfoBean
Stores
ConstraintViolation info.-
Constructor Summary
ConstructorsConstructorDescriptionBeanValidationErrorInfoBean(jakarta.validation.ConstraintViolation<?> cv) Constructs a new instance withConstraintViolation.BeanValidationErrorInfoBean(String message, String propertyPath, String validatorClass, String rootClassName) Constructs a new instance withmessage,propertyPathandvalidatorClass. -
Method Summary
Modifier and TypeMethodDescriptionGets annotation.Gets annotationAttributes.Gets annotationDescriptionString.Gets instance.Gets invalidValue.Gets leafClassName.Gets message.Gets messageId.Gets messageTemplate.Gets propertyPath.Gets rootClassName.Gets validatorClass.
-
Constructor Details
-
BeanValidationErrorInfoBean
public BeanValidationErrorInfoBean(jakarta.validation.ConstraintViolation<?> cv) Constructs a new instance withConstraintViolation.- Parameters:
cv- ConstraintViolation
-
BeanValidationErrorInfoBean
public BeanValidationErrorInfoBean(String message, String propertyPath, String validatorClass, String rootClassName) Constructs a new instance withmessage,propertyPathandvalidatorClass.This is used for
NotEmptyvalidation logic.- Parameters:
message- messagepropertyPath- propertyPathvalidatorClass- validatorClass
-
-
Method Details
-
getMessage
Gets message.- Returns:
- message
-
getPropertyPath
Gets propertyPath.- Returns:
- propertyPath
-
getValidatorClass
Gets validatorClass.- Returns:
- validatorClass
-
getAnnotationDescriptionString
Gets annotationDescriptionString.- Returns:
- annotationDescriptionString
-
getAnnotation
Gets annotation.- Returns:
- annotation
-
getAnnotationAttributes
Gets annotationAttributes.- Returns:
- annotationAttributes
-
getMessageTemplate
Gets messageTemplate.- Returns:
- messageTemplate
-
getRootClassName
Gets rootClassName.- Returns:
- rootClassName
-
getLeafClassName
Gets leafClassName.- Returns:
- leafClassName
-
getInvalidValue
Gets invalidValue.- Returns:
- invalidValue
-
getMessageId
Gets messageId.- Returns:
- annotation
-
getInstance
Gets instance.- Returns:
- instance
-
getParamMap
-