org.springframework.binding.validation
Interface ValidationResults

All Known Subinterfaces:
ValidationResultsModel
All Known Implementing Classes:
DefaultValidationResults, DefaultValidationResultsModel, EmptyValidationResults

public interface ValidationResults

Interface to be implemented by objects that hold a list of validation results for a specific object.

Author:
Oliver Hutchison
See Also:
DefaultValidationResults

Method Summary
 boolean getHasErrors()
          Returns true of there are any validation messages of Severity.ERROR.
 boolean getHasInfo()
          Returns true of there are any validation messages of Severity.INFO.
 boolean getHasWarnings()
          Returns true of there are any validation messages of Severity.WARNING.
 int getMessageCount()
          Returns the total number of validation messages.
 int getMessageCount(Severity severity)
          Returns the total number of validation messages of the specified Severity.
 int getMessageCount(String propertyName)
          Returns the total number of validation messages that apply to the specified property name.
 Set getMessages()
          Returns a set holding all of the validation messages.
 Set getMessages(Severity severity)
          Returns a set holding all of the validation messages of the specified Severity.
 Set getMessages(String propertyName)
          Returns a set holding all of the validation messages that apply to the specified property name.
 

Method Detail

getHasErrors

boolean getHasErrors()
Returns true of there are any validation messages of Severity.ERROR.


getHasWarnings

boolean getHasWarnings()
Returns true of there are any validation messages of Severity.WARNING.


getHasInfo

boolean getHasInfo()
Returns true of there are any validation messages of Severity.INFO.


getMessageCount

int getMessageCount()
Returns the total number of validation messages.


getMessageCount

int getMessageCount(Severity severity)
Returns the total number of validation messages of the specified Severity.


getMessageCount

int getMessageCount(String propertyName)
Returns the total number of validation messages that apply to the specified property name.


getMessages

Set getMessages()
Returns a set holding all of the validation messages.


getMessages

Set getMessages(Severity severity)
Returns a set holding all of the validation messages of the specified Severity.


getMessages

Set getMessages(String propertyName)
Returns a set holding all of the validation messages that apply to the specified property name.



Copyright © 2004-2008 The Spring Framework. All Rights Reserved.