public class ValidatorConstraint extends AbstractConstraint
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_INVALID_OBJECT_VALIDATOR_MESSAGE |
static String |
DEFAULT_INVALID_OBJECT_VALIDATOR_MESSAGE_CODE |
static String |
DEFAULT_INVALID_PROPERTY_VALIDATOR_MESSAGE |
static String |
DEFAULT_INVALID_PROPERTY_VALIDATOR_MESSAGE_CODE |
static String |
VALIDATION_DSL_NAME |
classShortName, constraintOwningClass, constraintParameter, constraintPropertyName, messageSourceEXCEEDED_SUFFIX, INVALID_SUFFIX, NOT_PREFIX, NOTMET_SUFFIX, TOOBIG_SUFFIX, TOOLONG_SUFFIX, TOOSHORT_SUFFIX, TOOSMALL_SUFFIX| Constructor and Description |
|---|
ValidatorConstraint() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
ObjectValidator<?,?> |
getObjectValidator() |
PropertyValidator<?> |
getPropertyValidator() |
protected void |
processValidate(Object target,
Object propertyValue,
Errors errors) |
void |
setParameter(Object constraintParameter)
The parameter which the constraint is validated against.
|
protected boolean |
skipBlankValues() |
protected boolean |
skipNullValues() |
boolean |
supports(Class<?> type)
Returns whether the constraint supports being applied against the specified type;
|
checkState, getDefaultMessage, getParameter, getPropertyName, isValid, rejectValue, rejectValue, rejectValue, rejectValue, rejectValue, rejectValueWithDefaultMessage, setMessageSource, setOwningClass, setPropertyName, toString, validatepublic static final String VALIDATION_DSL_NAME
public static final String DEFAULT_INVALID_PROPERTY_VALIDATOR_MESSAGE_CODE
public static final String DEFAULT_INVALID_PROPERTY_VALIDATOR_MESSAGE
public static final String DEFAULT_INVALID_OBJECT_VALIDATOR_MESSAGE_CODE
public static final String DEFAULT_INVALID_OBJECT_VALIDATOR_MESSAGE
public PropertyValidator<?> getPropertyValidator()
public ObjectValidator<?,?> getObjectValidator()
public boolean supports(@Nonnull Class<?> type)
Constrainttype - The type to supportprotected boolean skipNullValues()
skipNullValues in class AbstractConstraintprotected boolean skipBlankValues()
skipBlankValues in class AbstractConstraintpublic void setParameter(@Nonnull Object constraintParameter)
ConstraintsetParameter in interface ConstraintsetParameter in class AbstractConstraintconstraintParameter - The constraintParameter to set.protected void processValidate(@Nonnull Object target, Object propertyValue, @Nonnull Errors errors)
processValidate in class AbstractConstraint