org.springframework.webflow.engine.builder
Class BinderConfiguration.Binding

java.lang.Object
  extended by org.springframework.webflow.engine.builder.BinderConfiguration.Binding
Enclosing class:
BinderConfiguration

public static final class BinderConfiguration.Binding
extends Object

A binding that provides the information needed to connect an element of the view to a property of the model.

Author:
Keith Donald

Constructor Summary
BinderConfiguration.Binding(String property, String converter, boolean required)
          Creates a new view binding
 
Method Summary
 boolean equals(Object object)
           
 String getConverter()
          The id of the custom converter to use to convert bound property values.
 String getProperty()
          The name of the bound property.
 boolean getRequired()
          Whether a non-empty value is required for each binding attempt.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinderConfiguration.Binding

public BinderConfiguration.Binding(String property,
                                   String converter,
                                   boolean required)
Creates a new view binding

Parameters:
property - the model property to bind to
converter - the id of a custom converter to apply type conversion during binding
required - whether this binding is required
Method Detail

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getProperty

public String getProperty()
The name of the bound property.

Returns:
the property

getConverter

public String getConverter()
The id of the custom converter to use to convert bound property values.

Returns:
the converter id, or null

getRequired

public boolean getRequired()
Whether a non-empty value is required for each binding attempt.

Returns:
the required status

toString

public String toString()
Overrides:
toString in class Object