Class DefaultValidationContext
java.lang.Object
org.springframework.webflow.validation.DefaultValidationContext
- All Implemented Interfaces:
ValidationContext
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultValidationContext(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:ValidationContextA context for adding failure messages to display to the user directly.- Specified by:
getMessageContextin interfaceValidationContext
-
getUserEvent
Description copied from interface:ValidationContextThe current user event that triggered validation.- Specified by:
getUserEventin interfaceValidationContext
-
getUserPrincipal
Description copied from interface:ValidationContextThe current user.- Specified by:
getUserPrincipalin interfaceValidationContext
-
getUserValue
Description copied from interface:ValidationContextObtain the value entered by the current user in the UI field bound to the property provided.- Specified by:
getUserValuein interfaceValidationContext- Parameters:
property- the name of a bound property- Returns:
- the value the user entered in the field bound to the property
-