当前页面:
在线文档首页 >
Spring Framework 2.0.5 API 文档英文版
DirectFieldBindingResult (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版
org.springframework.validation
Class DirectFieldBindingResult
java.lang.Object
org.springframework.validation.AbstractBindingResult
org.springframework.validation.AbstractPropertyBindingResult
org.springframework.validation.DirectFieldBindingResult
- All Implemented Interfaces:
- Serializable, BindingResult, Errors
public class DirectFieldBindingResult
- extends AbstractPropertyBindingResult
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.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
DataBinder.getBindingResult()
,
DataBinder.initDirectFieldAccess()
,
BeanPropertyBindingResult
,
Serialized Form
Methods inherited from class org.springframework.validation.AbstractBindingResult |
addAllErrors, addError, doSetNestedPath, equals, fixedField, getAllErrors, getErrorCount, getFieldError, getFieldError, getFieldErrorCount, getFieldErrorCount, getFieldErrors, getFieldErrors, getFieldValue, getGlobalError, getGlobalErrorCount, getGlobalErrors, getMessageCodesResolver, getModel, getNestedPath, getObjectName, getSuppressedFields, hasErrors, hasFieldErrors, hasFieldErrors, hasGlobalErrors, hashCode, isMatchingFieldError, popNestedPath, pushNestedPath, recordSuppressedField, reject, reject, reject, rejectValue, rejectValue, rejectValue, resolveMessageCodes, resolveMessageCodes, setMessageCodesResolver, setNestedPath, toString |
DirectFieldBindingResult
public DirectFieldBindingResult(Object target,
String objectName)
- Create a new DirectFieldBindingResult instance.
- Parameters:
target
- the target object to bind ontoobjectName
- the name of the target object
getTarget
public final Object getTarget()
- Description copied from class:
AbstractBindingResult
- Return the wrapped target object.
- Specified by:
getTarget
in interface BindingResult
- Specified by:
getTarget
in class AbstractBindingResult
getPropertyAccessor
public final ConfigurablePropertyAccessor getPropertyAccessor()
- Returns the DirectFieldAccessor that this instance uses.
Creates a new one if none existed before.
- Specified by:
getPropertyAccessor
in class AbstractPropertyBindingResult
- See Also:
createDirectFieldAccessor()
createDirectFieldAccessor
protected DirectFieldAccessor createDirectFieldAccessor()
- Create a new DirectFieldAccessor for the underlying target object.
- See Also:
getTarget()
Copyright © 2002-2007 The Spring Framework.