mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 21:39:05 +00:00
added validation result
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1468 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+23
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user