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 |
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 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 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 validationCopyright © 2005-2011 Potix Corporation. All Rights Reserved.