public class

DirectFieldBindingResult

extends AbstractPropertyBindingResult
java.lang.Object
   ↳ org.springframework.validation.AbstractErrors
     ↳ org.springframework.validation.AbstractBindingResult
       ↳ org.springframework.validation.AbstractPropertyBindingResult
         ↳ org.springframework.validation.DirectFieldBindingResult

Class Overview

Special implementation of the Errors and BindingResult interfaces, supporting registration and evaluation of binding errors on value objects. Performs direct field access instead of going through JavaBean getters.

This implementation just supports fields in the actual target object. It is not able to traverse nested fields.

Summary

[Expand]
Inherited Constants
From interface org.springframework.validation.Errors
[Expand]
Inherited Fields
From interface org.springframework.validation.BindingResult
Public Constructors
DirectFieldBindingResult(Object target, String objectName)
Create a new DirectFieldBindingResult instance.
Public Methods
final ConfigurablePropertyAccessor getPropertyAccessor()
Returns the DirectFieldAccessor that this instance uses.
final Object getTarget()
Return the wrapped target object.
Protected Methods
ConfigurablePropertyAccessor createDirectFieldAccessor()
Create a new DirectFieldAccessor for the underlying target object.
[Expand]
Inherited Methods
From class org.springframework.validation.AbstractPropertyBindingResult
From class org.springframework.validation.AbstractBindingResult
From class org.springframework.validation.AbstractErrors
From class java.lang.Object
From interface org.springframework.validation.BindingResult
From interface org.springframework.validation.Errors

Public Constructors

public DirectFieldBindingResult (Object target, String objectName)

Create a new DirectFieldBindingResult instance.

Parameters
target the target object to bind onto
objectName the name of the target object

Public Methods

public final ConfigurablePropertyAccessor getPropertyAccessor ()

Returns the DirectFieldAccessor that this instance uses. Creates a new one if none existed before.

public final Object getTarget ()

Return the wrapped target object.

Protected Methods

protected ConfigurablePropertyAccessor createDirectFieldAccessor ()

Create a new DirectFieldAccessor for the underlying target object.

See Also