java.lang.Object | |||
↳ | org.springframework.validation.AbstractErrors | ||
↳ | org.springframework.validation.AbstractBindingResult | ||
↳ | org.springframework.validation.AbstractPropertyBindingResult |
Known Direct Subclasses |
Abstract base class for BindingResult
implementations that work with
Spring's PropertyAccessor
mechanism.
Pre-implements field access through delegation to the corresponding
PropertyAccessor methods.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.validation.Errors
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.validation.BindingResult
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new AbstractPropertyBindingResult instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This implementation exposes a PropertyEditor adapter for a Formatter,
if applicable.
| |||||||||||
Determines the field type from the property type.
| |||||||||||
Provide the PropertyAccessor to work with, according to the
concrete strategy of access.
| |||||||||||
Returns the underlying PropertyAccessor.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the canonical property name.
| |||||||||||
Formats the field value based on registered PropertyEditors.
| |||||||||||
Fetches the field value from the PropertyAccessor.
| |||||||||||
Retrieve the custom PropertyEditor for the given field, if any.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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
|
Create a new AbstractPropertyBindingResult instance.
objectName | the name of the target object |
---|
This implementation exposes a PropertyEditor adapter for a Formatter, if applicable.
field | the path of the property (name or nested path), or
null if looking for an editor for all properties of the given type |
---|---|
valueType | the type of the property (can be null if a property
is given but should be specified in any case for consistency checking) |
null
if none
Determines the field type from the property type.
field | the field name |
---|
null
if not determinable
Provide the PropertyAccessor to work with, according to the concrete strategy of access.
Note that a PropertyAccessor used by a BindingResult should always have its "extractOldValueForEditor" flag set to "true" by default, since this is typically possible without side effects for model objects that serve as data binding target.
Returns the underlying PropertyAccessor.
null
if none
available for this BindingResult
Returns the canonical property name.
field | the original field name |
---|
Formats the field value based on registered PropertyEditors.
field | the field to check |
---|---|
value | the value of the field (either a rejected value other than from a binding error, or an actual field value) |
Fetches the field value from the PropertyAccessor.
field | the field to check |
---|
Retrieve the custom PropertyEditor for the given field, if any.
fixedField | the fully qualified field name |
---|
null