public abstract class AbstractValidator extends java.lang.Object implements Validator
ValidationMessages
Constructor and Description |
---|
AbstractValidator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addInvalidMessage(ValidationContext ctx,
java.lang.String message)
add a message to validation context, when you call this method, it also set context invalid.
|
protected void |
addInvalidMessage(ValidationContext ctx,
java.lang.String key,
java.lang.String message)
add a message to validation context, when you call this method, it also sets context invalid.
|
protected void |
addInvalidMessage(ValidationContext ctx,
java.lang.String key,
java.lang.String message,
java.lang.Object value)
add a message to validation context, when you call this method, it also sets context invalid.
|
protected void |
addInvalidMessages(ValidationContext ctx,
java.lang.String[] messages)
add multiple messages to validation context, when you call this method, it also sets the context invalid.
|
protected void |
addInvalidMessages(ValidationContext ctx,
java.lang.String key,
java.lang.String[] messages)
add multiple messages to validation context, when you call this method, it also sets the context invalid.
|
protected void |
addInvalidMessages(ValidationContext ctx,
java.lang.String key,
java.lang.String[] messages,
java.lang.Object value)
add multiple messages to validation context, when you call this method, it also sets the context invalid.
|
protected void addInvalidMessage(ValidationContext ctx, java.lang.String message)
ctx
- the validation contextmessage
- the message of validationprotected void addInvalidMessage(ValidationContext ctx, java.lang.String key, java.lang.String message)
ctx
- the validation contextkey
- the custom key of messagemessage
- the message of validationprotected void addInvalidMessage(ValidationContext ctx, java.lang.String key, java.lang.String message, java.lang.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, java.lang.String[] messages)
ctx
- the validation contextmessages
- messages of validationprotected void addInvalidMessages(ValidationContext ctx, java.lang.String key, java.lang.String[] messages)
ctx
- the validation contextkey
- the custom key of messagemessages
- messages of validationprotected void addInvalidMessages(ValidationContext ctx, java.lang.String key, java.lang.String[] messages, java.lang.Object value)
ctx
- the validation contextkey
- the custom key of messagemessages
- messages of validationvalue
- the value of the rejected fieldCopyright © 2005-2018 Potix Corporation. All Rights Reserved.