Module jp.ecuacion.lib.core
Class ConstraintViolationBean
java.lang.Object
jp.ecuacion.lib.core.util.internal.ReflectionUtil
jp.ecuacion.lib.core.jakartavalidation.bean.ConstraintViolationBean
public class ConstraintViolationBean
extends jp.ecuacion.lib.core.util.internal.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 Summary
ConstructorsConstructorDescriptionConstraintViolationBean(jakarta.validation.ConstraintViolation<?> cv) Constructs a new instance withConstraintViolation.ConstraintViolationBean(String message, String validatorClass, String rootClassName, String itemNameKey) Constructs a new instance withmessage,propertyPathandvalidatorClass. -
Method Summary
Methods inherited from class jp.ecuacion.lib.core.util.internal.ReflectionUtil
getField, getFieldValue, searchAnnotationPlacedAtClass
-
Constructor Details
-
ConstraintViolationBean
public ConstraintViolationBean(jakarta.validation.ConstraintViolation<?> cv) Constructs a new instance withConstraintViolation.- Parameters:
cv- ConstraintViolation
-
ConstraintViolationBean
public ConstraintViolationBean(String message, String validatorClass, String rootClassName, String itemNameKey) Constructs a new instance withmessage,propertyPathandvalidatorClass.This is used for
NotEmptyvalidation logic.- Parameters:
message- messagevalidatorClass- 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
-
getItemNameKeys
-
getParamMap
-
getFieldPropertyPaths
-