|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActionBeanPropertyBinder
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.
| Method Summary | |
|---|---|
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,
String propertyName,
Object propertyValue)
Bind an individual property with the name specified to the bean supplied. |
| Methods inherited from interface net.sourceforge.stripes.config.ConfigurableComponent |
|---|
init |
| Method Detail |
|---|
ValidationErrors 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 occur
void bind(ActionBean bean,
String propertyName,
Object propertyValue)
throws 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 bean
Exception - thrown if the property cannot be bound for any reason
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||