public interface ActionBeanPropertyBinder extends ConfigurableComponent
Interface for class(es) responsible for taking the String/String[] properties contained in the HttpServletRequest and:
Implementations may also perform validations of the fields during binding. If validation errors occur then the collection of ValidationErrors contained within the ActionBeanContext should be populated before returning.
| Modifier and Type | Method and Description |
|---|---|
ValidationErrors |
bind(ActionBean bean,
ActionBeanContext context,
boolean validate)
Populates all the properties in the request which have a matching property in the target
bean.
|
void |
bind(ActionBean bean,
java.lang.String propertyName,
java.lang.Object propertyValue)
Bind an individual property with the name specified to the bean supplied.
|
initValidationErrors bind(ActionBean bean, ActionBeanContext context, boolean validate)
bean - the ActionBean to bind properties tocontext - the ActionBeanContext containing the current requestvalidate - true indicates that validation should be run, false indicates that only
type conversion should occurvoid bind(ActionBean bean, java.lang.String propertyName, java.lang.Object propertyValue) throws java.lang.Exception
bean - the ActionBean to bind the property topropertyName - the name (including nested, indexed and mapped property names) of the
property being boundpropertyValue - the value to be bound to the property on the beanjava.lang.Exception - thrown if the property cannot be bound for any reason? Copyright 2005-2006, Stripes Development Team.