* Binds user-entered values to properties of a model object.
* @author Keith Donald
* @since 3.0
* @see #configureBinding(BindingConfiguration)
* @see #bind(UserValues)
* @see #bind(Map)
*/
publicinterfaceBinder{
...
...
@@ -35,41 +31,6 @@ public interface Binder {
*/
ObjectgetModel();
/**
* Configures if this binder is <i>strict</i>; a strict binder requires all bindings to be registered explicitly using {@link #configureBinding(BindingConfiguration)}.
* An <i>optimistic</i> binder will implicitly create bindings as required to support {@link #bind(UserValues)} operations.
* Default is optimistic.
* @param strict strict binder status
*/
voidsetStrict(booleanstrict);
/**
* Adds a new binding.
* @param configuration the binding configuration
* @return the new binding created from the configuration provided
@@ -55,52 +54,6 @@ public class WebBindAndValidateLifecycleTests {
assertEquals("Failed to bind to property 'integer'; user value 'bogus' could not be converted to property type [java.lang.Integer]",alertContext.getAlerts("integer").get(0).getMessage());
assertEquals("Failed to bind to property 'integer'; the user value 'bogus' has an invalid format and could no be parsed",alertContext.getAlerts("integer").get(0).getMessage());