BindingResult implementations that work with
Spring's org.springframework.beans.PropertyAccessor mechanism.
Pre-implements field access through delegation to the corresponding
PropertyAccessor methods.
getPropertyAccessor(), org.springframework.beans.PropertyAccessor , org.springframework.beans.ConfigurablePropertyAccessor
| Modifier and Type | Field and Description |
|---|---|
| private transient ConversionService |
| Access | Constructor and Description |
|---|---|
| protected | AbstractPropertyBindingResult(String
the name of the target object objectName)Create a new AbstractPropertyBindingResult instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | canonicalFieldName(String
the original field name field)Overrides org. |
| public PropertyEditor | findEditor(String
the path of the property (name or nested path), or
field, Class<?> null if looking for an editor for all properties of the given typethe type of the property (can be valueType)null if a property
is given but should be specified in any case for consistency checking)Overrides org. Implements org. |
| protected Object | formatFieldValue(String
the field to check field, Object the value of the field (either a rejected value
other than from a binding error, or an actual field value) value)Overrides org. |
| protected Object | getActualFieldValue(String
the field to check field)Implements abstract org. |
| protected PropertyEditor | Returns: the custom PropertyEditor, ornullthe fully qualified field name fixedField)Retrieve the custom PropertyEditor for the given field, if any. |
| public Class | getFieldType(String
the field name field)Overrides org. Overrides default org. |
| public abstract ConfigurablePropertyAccessor | getPropertyAccessor()
Provide the PropertyAccessor to work with, according to the concrete strategy of access. |
| public PropertyEditorRegistry | getPropertyEditorRegistry()
Overrides org. Implements org. |
| public void |
| conversionService | back to summary |
|---|---|
| private transient ConversionService conversionService
| |
| AbstractPropertyBindingResult | back to summary |
|---|---|
| protected AbstractPropertyBindingResult(String objectName) Create a new AbstractPropertyBindingResult instance.
| |
| canonicalFieldName | back to summary |
|---|---|
| protected String canonicalFieldName(String field) Overrides org. Returns the canonical property name.
| |
| findEditor | back to summary |
|---|---|
| public PropertyEditor findEditor(String field, Class<?> valueType) Overrides org. Implements org. This implementation exposes a PropertyEditor adapter for a Formatter, if applicable.
| |
| formatFieldValue | back to summary |
|---|---|
| protected Object formatFieldValue(String field, Object value) Overrides org. Formats the field value based on registered PropertyEditors.
| |
| getActualFieldValue | back to summary |
|---|---|
| protected Object getActualFieldValue(String field) Implements abstract org. Fetches the field value from the PropertyAccessor.
| |
| getCustomEditor | back to summary |
|---|---|
| protected PropertyEditor getCustomEditor(String fixedField) Retrieve the custom PropertyEditor for the given field, if any.
| |
| getFieldType | back to summary |
|---|---|
| public Class Overrides org. Overrides default org. Determines the field type from the property type.
| |
| getPropertyAccessor | back to summary |
|---|---|
| public abstract ConfigurablePropertyAccessor getPropertyAccessor() 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. | |
| getPropertyEditorRegistry | back to summary |
|---|---|
| public PropertyEditorRegistry getPropertyEditorRegistry() Overrides org. Implements org. Returns the underlying PropertyAccessor.
| |
| initConversion | back to summary |
|---|---|
| public void initConversion(ConversionService conversionService) | |