Spring Web Flow

org.springframework.binding.validation
Interface ValidationContext

All Known Implementing Classes:
DefaultValidationContext

public interface ValidationContext

A context for a validator to use to access user data and report validation failures.

Author:
Keith Donald, Scott Andrews

Method Summary
 MessageContext getMessageContext()
          A context for adding failure messages to display to the user directly.
 java.lang.String getUserEvent()
          The current user event that triggered validation.
 java.security.Principal getUserPrincipal()
          The current user.
 java.lang.Object getUserValue(java.lang.String property)
          Obtain the value entered by the current user in the UI field bound to the property provided.
 

Method Detail

getMessageContext

MessageContext getMessageContext()
A context for adding failure messages to display to the user directly.


getUserPrincipal

java.security.Principal getUserPrincipal()
The current user.


getUserEvent

java.lang.String getUserEvent()
The current user event that triggered validation.


getUserValue

java.lang.Object getUserValue(java.lang.String property)
Obtain the value entered by the current user in the UI field bound to the property provided.

Parameters:
property - the name of a bound property
Returns:
the value the user entered in the field bound to the property

Spring Web Flow