com.tzavellas.validation
Interface MessageResolver

All Known Implementing Classes:
MessageSourceResolver

public interface MessageResolver

Resolve an error message for a ValidationError.

Author:
Spiros Tzavellas
See Also:
ValidationResult, ValidationError

Method Summary
 String getMessage(ValidationError error, Locale locale)
          Resolve the error message for the specified ValidationError.
 

Method Detail

getMessage

String getMessage(ValidationError error,
                  Locale locale)
Resolve the error message for the specified ValidationError.

Parameters:
error - the ValidationError
locale - the locale to use. If null then the implementation is responsible to determine which locale to use
Returns:
an appropriate message for the specified Locale, else the default message.


Copyright © 2007-2009 spiros.blog(). All Rights Reserved.