Class ConstraintViolationBean
java.lang.Object
jp.ecuacion.lib.core.util.ReflectionUtil
jp.ecuacion.lib.core.jakartavalidation.bean.ConstraintViolationBean
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStores field-unit parameters. -
Constructor Summary
ConstructorsConstructorDescriptionConstraintViolationBean(jakarta.validation.ConstraintViolation<?> cv) Constructs a new instance withConstraintViolation.ConstraintViolationBean(Object rootBean, String message, String validatorClass, String rootRecordNameForForm, String itemPropertyPath) Constructs a new instance with parameters, not a ConstraintViolation. -
Method Summary
Modifier and TypeMethodDescriptionGets message created by jakarta validation.Methods inherited from class ReflectionUtil
getValue, searchAnnotationPlacedAtClass
-
Constructor Details
-
ConstraintViolationBean
-
ConstraintViolationBean
public ConstraintViolationBean(jakarta.validation.ConstraintViolation<?> cv) Constructs a new instance withConstraintViolation.- Parameters:
cv- ConstraintViolation
-
-
Method Details
-
getRootBean
-
getLeafBean
-
getOriginalMessage
Gets message created by jakarta validation.DO NOT USE for user interface. Use the message obtained by ExceptionUtil instead.
- Returns:
- original message
-
getValidatorClass
-
getInvalidValue
-
getMessageId
-
getRootRecordNameForForm
-
getFieldInfoBeanList
-
getFieldInfoBeans
-
getParamMap
-