| org.iscreen.ValidatorContext
ValidatorContext | public interface ValidatorContext (Code) | | During validation, a Validator is given a reference to the context in which
it is validating. The primary purpose of this context is to provide a means
for the Validator to report validation failures. In the future, additional
APIs will be added to support additional contextual information for use
by the Validator.
author: Shellman, Dan |
getLocale | Locale getLocale()(Code) | | Gets the current locale being used for this validation.
Returns the current locale being used. |
reportFailure | void reportFailure(FailureMessage messageObject)(Code) | | Called to report a validation failure. The Object provided is the failure
message (usually configured as a setter on the individual Validator).
Parameters: messageObject - The message failure object representing the failure. |
reportFailure | void reportFailure(FailureMessage messageObject, Object failureObject)(Code) | | Called to report a validation failure. The Object provided is the failure
message (usually configured as a setter on the individual Validator). The
additional failure object is used to help generate the actual failure
message (it becomes accessible to the message via the OGNL root).
Parameters: messageObject - The message failure object representing the failure. Parameters: failureObject - A Validator-specific failure object to be madeaccessible to the message via the OGNL root. |
reportWarning | void reportWarning(FailureMessage messageObject)(Code) | | Called to report a validation warning. The Object provided is the failure
message (usually configured as a setter on the individual Validator). A
warning is handled as a separate exception that allows the user of this
API to differentiate between validation failures and warnings.
Parameters: messageObject - The message failure object representing the warning. |
reportWarning | void reportWarning(FailureMessage messageObject, Object failureObject)(Code) | | Called to report a validation warning. The Object provided is the failure
message (usually configured as a setter on the individual Validator). The
additional failure object is used to help generate the actual failure
message (it becomes accessible to the message via the OGNL root). A
warning is handled as a separate exception that allows the user of this
API to differentiate between validation failures and warnings.
Parameters: messageObject - The message failure object representing the warning. Parameters: failureObject - A Validator-specific failure object to be madeaccessible to the message via the OGNL root. |
|
|