public abstract class AbstractValidator extends Object implements Validator
ValidationMessages| Constructor and Description |
|---|
AbstractValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInvalidMessage(ValidationContext ctx,
String message)
add a message to validation context, when you call this method, it also set context invalid.
|
protected void |
addInvalidMessage(ValidationContext ctx,
String key,
String message)
add a message to validation context, when you call this method, it also sets context invalid.
|
protected void |
addInvalidMessage(ValidationContext ctx,
String key,
String message,
Object value)
add a message to validation context, when you call this method, it also sets context invalid.
|
protected void |
addInvalidMessages(ValidationContext ctx,
String[] messages)
add multiple messages to validation context, when you call this method, it also sets the context invalid.
|
protected void |
addInvalidMessages(ValidationContext ctx,
String key,
String[] messages)
add multiple messages to validation context, when you call this method, it also sets the context invalid.
|
protected void |
addInvalidMessages(ValidationContext ctx,
String key,
String[] messages,
Object value)
add multiple messages to validation context, when you call this method, it also sets the context invalid.
|
protected void addInvalidMessage(ValidationContext ctx, String message)
ctx - the validation contextmessage - the message of validationprotected void addInvalidMessage(ValidationContext ctx, String key, String message)
ctx - the validation contextkey - the custom key of messagemessage - the message of validationprotected void addInvalidMessage(ValidationContext ctx, String key, String message, Object value)
ctx - the validation contextkey - the custom key of messagemessage - the message of validationvalue - the value of the rejected fieldprotected void addInvalidMessages(ValidationContext ctx, String[] messages)
ctx - the validation contextmessages - messages of validationprotected void addInvalidMessages(ValidationContext ctx, String key, String[] messages)
ctx - the validation contextkey - the custom key of messagemessages - messages of validationprotected void addInvalidMessages(ValidationContext ctx, String key, String[] messages, Object value)
ctx - the validation contextkey - the custom key of messagemessages - messages of validationvalue - the value of the rejected fieldCopyright © 2020. All rights reserved.