added validation result

This commit is contained in:
Keith Donald 2009-07-03 15:14:23 +00:00
parent 2bc76bcd68
commit dc935dcd6d
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package org.springframework.ui.validation;
import org.springframework.ui.alert.Alert;
public interface ValidationResult {
/**
* The name of the model property associated with this validation result.
*/
String getProperty();
/**
* Indicates if the validation failed.
*/
boolean isFailure();
/**
* Gets the alert for this validation result, appropriate for rendering the result to the user.
* An alert describing a successful validation will have info severity.
* An alert describing a failed validation will have either warning or error severity.
*/
Alert getAlert();
}