|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidatorContext
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.
Method Summary | |
---|---|
java.util.Locale |
getLocale()
Gets the current locale being used for this validation. |
ValidationService |
getValidationService()
Retrieves the validation service this context is being used with. |
java.lang.String |
getValidatorName()
Obtains the name of the validator currently being used |
void |
reportFailure(FailureMessage messageObject)
Called to report a validation failure. |
void |
reportFailure(FailureMessage messageObject,
java.lang.Object failureObject)
Called to report a validation failure. |
Method Detail |
---|
void reportFailure(FailureMessage messageObject)
messageObject
- The message failure object representing the failure.void reportFailure(FailureMessage messageObject, java.lang.Object failureObject)
messageObject
- The message failure object representing the failure.failureObject
- A Validator-specific failure object to be made
accessible to the message via the OGNL root.java.util.Locale getLocale()
ValidationService getValidationService()
java.lang.String getValidatorName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |