C# Class Spring.DataBinding.BaseBindingContainer

Base implementation of the IBindingContainer.
Inheritance: IBindingContainer
显示文件 Open project: spring-projects/spring-net

Public Methods

Method Description
AddBinding ( IBinding binding ) : IBinding

Adds the binding.

AddBinding ( string sourceExpression, string targetExpression ) : IBinding

Adds the SimpleExpressionBinding binding with a default binding direction of BindingDirection.Bidirectional.

AddBinding ( string sourceExpression, string targetExpression, BindingDirection direction ) : IBinding

Adds the SimpleExpressionBinding binding.

AddBinding ( string sourceExpression, string targetExpression, BindingDirection direction, IFormatter formatter ) : IBinding

Adds the SimpleExpressionBinding binding.

AddBinding ( string sourceExpression, string targetExpression, IFormatter formatter ) : IBinding

Adds the SimpleExpressionBinding binding with a default binding direction of BindingDirection.Bidirectional.

BaseBindingContainer ( ) : System.Collections.Generic

Creates a new instance of BaseBindingContainer.

BindSourceToTarget ( object source, object target, IValidationErrors validationErrors ) : void

Binds source object to target object.

BindSourceToTarget ( object source, object target, IValidationErrors validationErrors, object>.IDictionary variables ) : void

Binds source object to target object.

BindTargetToSource ( object source, object target, IValidationErrors validationErrors ) : void

Binds target object to source object.

BindTargetToSource ( object source, object target, IValidationErrors validationErrors, object>.IDictionary variables ) : void

Binds target object to source object.

SetErrorMessage ( string messageId ) : void

Implemented as a NOOP for containers. of a non-fatal binding error.

Method Details

AddBinding() public method

Adds the binding.
public AddBinding ( IBinding binding ) : IBinding
binding IBinding /// Binding definition to add. ///
return IBinding

AddBinding() public method

Adds the SimpleExpressionBinding binding with a default binding direction of BindingDirection.Bidirectional.
public AddBinding ( string sourceExpression, string targetExpression ) : IBinding
sourceExpression string /// The source expression. ///
targetExpression string /// The target expression. ///
return IBinding

AddBinding() public method

Adds the SimpleExpressionBinding binding.
public AddBinding ( string sourceExpression, string targetExpression, BindingDirection direction ) : IBinding
sourceExpression string /// The source expression. ///
targetExpression string /// The target expression. ///
direction BindingDirection /// Binding direction. ///
return IBinding

AddBinding() public method

Adds the SimpleExpressionBinding binding.
public AddBinding ( string sourceExpression, string targetExpression, BindingDirection direction, IFormatter formatter ) : IBinding
sourceExpression string /// The source expression. ///
targetExpression string /// The target expression. ///
direction BindingDirection /// Binding direction. ///
formatter IFormatter /// to use for value formatting and parsing. ///
return IBinding

AddBinding() public method

Adds the SimpleExpressionBinding binding with a default binding direction of BindingDirection.Bidirectional.
public AddBinding ( string sourceExpression, string targetExpression, IFormatter formatter ) : IBinding
sourceExpression string /// The source expression. ///
targetExpression string /// The target expression. ///
formatter IFormatter /// to use for value formatting and parsing. ///
return IBinding

BaseBindingContainer() public method

Creates a new instance of BaseBindingContainer.
public BaseBindingContainer ( ) : System.Collections.Generic
return System.Collections.Generic

BindSourceToTarget() public method

Binds source object to target object.
public BindSourceToTarget ( object source, object target, IValidationErrors validationErrors ) : void
source object /// The source object. ///
target object /// The target object. ///
validationErrors IValidationErrors /// Validation errors collection that type conversion errors should be added to. ///
return void

BindSourceToTarget() public method

Binds source object to target object.
public BindSourceToTarget ( object source, object target, IValidationErrors validationErrors, object>.IDictionary variables ) : void
source object /// The source object. ///
target object /// The target object. ///
validationErrors IValidationErrors /// Validation errors collection that type conversion errors should be added to. ///
variables object>.IDictionary /// Variables that should be used during expression evaluation. ///
return void

BindTargetToSource() public method

Binds target object to source object.
public BindTargetToSource ( object source, object target, IValidationErrors validationErrors ) : void
source object /// The source object. ///
target object /// The target object. ///
validationErrors IValidationErrors /// Validation errors collection that type conversion errors should be added to. ///
return void

BindTargetToSource() public method

Binds target object to source object.
public BindTargetToSource ( object source, object target, IValidationErrors validationErrors, object>.IDictionary variables ) : void
source object /// The source object. ///
target object /// The target object. ///
validationErrors IValidationErrors /// Validation errors collection that type conversion errors should be added to. ///
variables object>.IDictionary /// Variables that should be used during expression evaluation. ///
return void

SetErrorMessage() public method

Implemented as a NOOP for containers. of a non-fatal binding error.
public SetErrorMessage ( string messageId ) : void
messageId string /// Resource ID of the error message. ///
return void