public final class ValidationErrorUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getFieldname(javax.validation.ConstraintViolation constraintViolation,
ValidationErrorConfig config,
Locale locale)
Return the field name as it will appear in the message
|
static String |
getValue1(javax.validation.ConstraintViolation constraintViolation,
ValidationErrorConfig config)
Return the attribute's value to set as the value#1 of the message
|
static String |
getValue2(javax.validation.ConstraintViolation constraintViolation,
ValidationErrorConfig config)
Return the attribute's value to set as the value#2 of the message
|
public static String getValue1(javax.validation.ConstraintViolation constraintViolation, ValidationErrorConfig config)
constraintViolation
- The Constraint violationconfig
- The configpublic static String getValue2(javax.validation.ConstraintViolation constraintViolation, ValidationErrorConfig config)
constraintViolation
- The Constraint violationconfig
- The configpublic static String getFieldname(javax.validation.ConstraintViolation constraintViolation, ValidationErrorConfig config, Locale locale)
constraintViolation
- The Constraint violationconfig
- The configlocale
- The localeCopyright © 2020 City of Paris. All rights reserved.