Example usage for Java org.springframework.web.bind WebDataBinder fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DEFAULT_FIELD_MARKER_PREFIX Default prefix that field marker parameters start with, followed by the field name: e.g. |
WebDataBinder(@Nullable Object target) Create a new WebDataBinder instance, with default object name. |
void | addValidators(Validator... validators) Add Validators to apply after each binding step. |
void | bind(PropertyValues pvs) Bind the given property values to this binder's target. |
T | convertIfNecessary(@Nullable Object value, @Nullable Class |
T | convertIfNecessary(@Nullable Object value, @Nullable Class |
PropertyEditor | findCustomEditor(@Nullable Class> requiredType, @Nullable String propertyPath) |
int | getAutoGrowCollectionLimit() Return the current limit for array and collection auto-growing. |
BindingErrorProcessor | getBindingErrorProcessor() Return the strategy for processing binding errors. |
BindingResult | getBindingResult() Return the BindingResult instance created by this DataBinder. |
Class> | getClass() Returns the runtime class of this Object . |
ConversionService | getConversionService() Return the associated ConversionService, if any. |
Object | getEmptyValue(Class> fieldType) Determine an empty value for the specified field. |
String | getFieldDefaultPrefix() Return the prefix for parameters that mark default fields. |
String | getFieldMarkerPrefix() Return the prefix for parameters that mark potentially empty fields. |
String | getObjectName() Return the name of the bound object. |
Object | getTarget() Return the wrapped target object. |
Validator | getValidator() Return the primary Validator to apply after each binding step, if any. |
void | initDirectFieldAccess() Initialize direct field access for this DataBinder, as alternative to the default bean property access. |
void | registerCustomEditor(Class> requiredType, PropertyEditor propertyEditor) |
void | registerCustomEditor(@Nullable Class> requiredType, @Nullable String field, PropertyEditor propertyEditor) |
void | setAllowedFields(@Nullable String... allowedFields) Register fields that should be allowed for binding. |
void | setAutoGrowCollectionLimit(int autoGrowCollectionLimit) Specify the limit for array and collection auto-growing. |
void | setAutoGrowNestedPaths(boolean autoGrowNestedPaths) Set whether this binder should attempt to "auto-grow" a nested path that contains a null value. |
void | setBindEmptyMultipartFiles(boolean bindEmptyMultipartFiles) Set whether to bind empty MultipartFile parameters. |
void | setBindingErrorProcessor(BindingErrorProcessor bindingErrorProcessor) Set the strategy to use for processing binding errors, that is, required field errors and PropertyAccessException s. |
void | setConversionService(@Nullable ConversionService conversionService) Specify a Spring 3.0 ConversionService to use for converting property values, as an alternative to JavaBeans PropertyEditors. |
void | setDisallowedFields(@Nullable String... disallowedFields) Register fields that should not be allowed for binding. |
void | setFieldDefaultPrefix(@Nullable String fieldDefaultPrefix) Specify a prefix that can be used for parameters that indicate default value fields, having "prefix + field" as name. |
void | setFieldMarkerPrefix(@Nullable String fieldMarkerPrefix) Specify a prefix that can be used for parameters that mark potentially empty fields, having "prefix + field" as name. |
void | setIgnoreInvalidFields(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). |
void | setMessageCodesResolver(@Nullable MessageCodesResolver messageCodesResolver) Set the strategy to use for resolving errors into message codes. |
void | setRequiredFields(@Nullable String... requiredFields) Register fields that are required for each binding process. |
void | setValidator(@Nullable Validator validator) Set the Validator to apply after each binding step. |
void | validate() Invoke the specified Validators, if any. |
void | validate(Object... validationHints) Invoke the specified Validators, if any, with the given validation hints. |