Class DefaultValidationContext
java.lang.Object
org.springframework.webflow.validation.DefaultValidationContext
- All Implemented Interfaces:
ValidationContext
-
Constructor Summary
ConstructorDescriptionDefaultValidationContext
(RequestContext requestContext, String eventId, MappingResults mappingResults) -
Method Summary
Modifier and TypeMethodDescriptionA context for adding failure messages to display to the user directly.The current user event that triggered validation.The current user.getUserValue
(String property) Obtain the value entered by the current user in the UI field bound to the property provided.
-
Constructor Details
-
DefaultValidationContext
public DefaultValidationContext(RequestContext requestContext, String eventId, MappingResults mappingResults)
-
-
Method Details
-
getMessageContext
Description copied from interface:ValidationContext
A context for adding failure messages to display to the user directly.- Specified by:
getMessageContext
in interfaceValidationContext
-
getUserEvent
Description copied from interface:ValidationContext
The current user event that triggered validation.- Specified by:
getUserEvent
in interfaceValidationContext
-
getUserPrincipal
Description copied from interface:ValidationContext
The current user.- Specified by:
getUserPrincipal
in interfaceValidationContext
-
getUserValue
Description copied from interface:ValidationContext
Obtain the value entered by the current user in the UI field bound to the property provided.- Specified by:
getUserValue
in interfaceValidationContext
- Parameters:
property
- the name of a bound property- Returns:
- the value the user entered in the field bound to the property
-