Java org.springframework.web.bind WebDataBinder fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.bind WebDataBinder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.bind WebDataBinder.

The text is from its open source code.

Subclass

org.springframework.web.bind.WebDataBinder has subclasses.
Click this link to see all its subclasses.

Field

StringDEFAULT_FIELD_MARKER_PREFIX
Default prefix that field marker parameters start with, followed by the field name: e.g.

Constructor

WebDataBinder(@Nullable Object target)
Create a new WebDataBinder instance, with default object name.

Method

voidaddValidators(Validator... validators)
Add Validators to apply after each binding step.
voidbind(PropertyValues pvs)
Bind the given property values to this binder's target.
TconvertIfNecessary(@Nullable Object value, @Nullable Class requiredType)
TconvertIfNecessary(@Nullable Object value, @Nullable Class requiredType, @Nullable MethodParameter methodParam)
PropertyEditorfindCustomEditor(@Nullable Class requiredType, @Nullable String propertyPath)
intgetAutoGrowCollectionLimit()
Return the current limit for array and collection auto-growing.
BindingErrorProcessorgetBindingErrorProcessor()
Return the strategy for processing binding errors.
BindingResultgetBindingResult()
Return the BindingResult instance created by this DataBinder.
ClassgetClass()
Returns the runtime class of this Object .
ConversionServicegetConversionService()
Return the associated ConversionService, if any.
ObjectgetEmptyValue(Class fieldType)
Determine an empty value for the specified field.
StringgetFieldDefaultPrefix()
Return the prefix for parameters that mark default fields.
StringgetFieldMarkerPrefix()
Return the prefix for parameters that mark potentially empty fields.
StringgetObjectName()
Return the name of the bound object.
ObjectgetTarget()
Return the wrapped target object.
ValidatorgetValidator()
Return the primary Validator to apply after each binding step, if any.
voidinitDirectFieldAccess()
Initialize direct field access for this DataBinder, as alternative to the default bean property access.
voidregisterCustomEditor(Class requiredType, PropertyEditor propertyEditor)
voidregisterCustomEditor(@Nullable Class requiredType, @Nullable String field, PropertyEditor propertyEditor)
voidsetAllowedFields(@Nullable String... allowedFields)
Register fields that should be allowed for binding.
voidsetAutoGrowCollectionLimit(int autoGrowCollectionLimit)
Specify the limit for array and collection auto-growing.
voidsetAutoGrowNestedPaths(boolean autoGrowNestedPaths)
Set whether this binder should attempt to "auto-grow" a nested path that contains a null value.
voidsetBindEmptyMultipartFiles(boolean bindEmptyMultipartFiles)
Set whether to bind empty MultipartFile parameters.
voidsetBindingErrorProcessor(BindingErrorProcessor bindingErrorProcessor)
Set the strategy to use for processing binding errors, that is, required field errors and PropertyAccessException s.
voidsetConversionService(@Nullable ConversionService conversionService)
Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors.
voidsetDisallowedFields(@Nullable String... disallowedFields)
Register fields that should not be allowed for binding.
voidsetFieldDefaultPrefix(@Nullable String fieldDefaultPrefix)
Specify a prefix that can be used for parameters that indicate default value fields, having "prefix + field" as name.
voidsetFieldMarkerPrefix(@Nullable String fieldMarkerPrefix)
Specify a prefix that can be used for parameters that mark potentially empty fields, having "prefix + field" as name.
voidsetIgnoreInvalidFields(boolean ignoreInvalidFields)
Set whether to ignore invalid fields, that is, whether to ignore bind parameters that have corresponding fields in the target object which are not accessible (for example because of null values in the nested path).
voidsetMessageCodesResolver(@Nullable MessageCodesResolver messageCodesResolver)
Set the strategy to use for resolving errors into message codes.
voidsetRequiredFields(@Nullable String... requiredFields)
Register fields that are required for each binding process.
voidsetValidator(@Nullable Validator validator)
Set the Validator to apply after each binding step.
voidvalidate()
Invoke the specified Validators, if any.
voidvalidate(Object... validationHints)
Invoke the specified Validators, if any, with the given validation hints.