C# Class Spring.DataBinding.SimpleExpressionBinding

Simple, expression-based implementation of IBinding that binds source to target one-to-one.
Inheritance: Spring.DataBinding.AbstractSimpleBinding
Datei anzeigen Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
SimpleExpressionBinding ( string sourceExpression, string targetExpression ) : System.Collections.Generic

Initializes a new instance of the SimpleExpressionBinding class.

SimpleExpressionBinding ( string sourceExpression, string targetExpression, IFormatter formatter ) : System.Collections.Generic

Initializes a new instance of the SimpleExpressionBinding class.

Protected Methods

Method Description
GetSourceValue ( object source, object>.IDictionary variables ) : object

Gets the source value for the binding.

GetTargetValue ( object target, object>.IDictionary variables ) : object

Gets the target value for the binding.

SetSourceValue ( object source, object value, object>.IDictionary variables ) : void

Sets the source value for the binding.

SetTargetValue ( object target, object value, object>.IDictionary variables ) : void

Sets the target value for the binding.

Method Details

GetSourceValue() protected method

Gets the source value for the binding.
protected GetSourceValue ( object source, object>.IDictionary variables ) : object
source object /// Source object to extract value from. ///
variables object>.IDictionary /// Variables for expression evaluation. ///
return object

GetTargetValue() protected method

Gets the target value for the binding.
protected GetTargetValue ( object target, object>.IDictionary variables ) : object
target object /// Source object to extract value from. ///
variables object>.IDictionary /// Variables for expression evaluation. ///
return object

SetSourceValue() protected method

Sets the source value for the binding.
protected SetSourceValue ( object source, object value, object>.IDictionary variables ) : void
source object /// The source object to set the value on. ///
value object /// The value to set. ///
variables object>.IDictionary /// Variables for expression evaluation. ///
return void

SetTargetValue() protected method

Sets the target value for the binding.
protected SetTargetValue ( object target, object value, object>.IDictionary variables ) : void
target object /// The target object to set the value on. ///
value object /// The value to set. ///
variables object>.IDictionary /// Variables for expression evaluation. ///
return void

SimpleExpressionBinding() public method

Initializes a new instance of the SimpleExpressionBinding class.
public SimpleExpressionBinding ( string sourceExpression, string targetExpression ) : System.Collections.Generic
sourceExpression string /// The source expression. ///
targetExpression string /// The target expression. ///
return System.Collections.Generic

SimpleExpressionBinding() public method

Initializes a new instance of the SimpleExpressionBinding class.
public SimpleExpressionBinding ( string sourceExpression, string targetExpression, IFormatter formatter ) : System.Collections.Generic
sourceExpression string /// The source expression. ///
targetExpression string /// The target expression. ///
formatter IFormatter /// The formatter to use. ///
return System.Collections.Generic