C# Class Spring.DataBinding.AbstractBinding

Abstract base class for IBinding implementations.
Inheritance: IBinding
Afficher le fichier Open project: spring-projects/spring-net Class Usage Examples

Méthodes publiques

Свойство Type Description
ALL_BINDINGERRORS_PROVIDER string

Méthodes publiques

Méthode Description
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.

Equals ( object obj ) : bool

Determines whether the specified is equal to the current .

GetHashCode ( ) : int

Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table.

IsValid ( IValidationErrors errors ) : bool

Gets or sets a flag specifying whether this binding is valid.

SetErrorMessage ( string messageId ) : void

Sets error message that should be displayed in the case of a non-fatal binding error.

Méthodes protégées

Méthode Description
AbstractBinding ( ) : System

Initializes a new instance of the class.

SetInvalid ( IValidationErrors validationErrors ) : bool

Marks this binding's state as invalid for this validationErrors collection. Returns false if validationErrors is null.

Method Details

AbstractBinding() protected méthode

Initializes a new instance of the class.
protected AbstractBinding ( ) : System
Résultat System

BindSourceToTarget() public méthode

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. ///
Résultat void

BindSourceToTarget() public abstract méthode

Binds source object to target object.
public abstract 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. ///
Résultat void

BindTargetToSource() public méthode

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. ///
Résultat void

BindTargetToSource() public abstract méthode

Binds target object to source object.
public abstract 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. ///
Résultat void

Equals() public méthode

Determines whether the specified is equal to the current .
public Equals ( object obj ) : bool
obj object The to compare with the current .
Résultat bool

GetHashCode() public méthode

Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table.
public GetHashCode ( ) : int
Résultat int

IsValid() public méthode

Gets or sets a flag specifying whether this binding is valid.
public IsValid ( IValidationErrors errors ) : bool
errors IValidationErrors
Résultat bool

SetErrorMessage() public méthode

Sets error message that should be displayed in the case of a non-fatal binding error.
public SetErrorMessage ( string messageId ) : void
messageId string /// Resource ID of the error message. ///
Résultat void

SetInvalid() protected méthode

Marks this binding's state as invalid for this validationErrors collection. Returns false if validationErrors is null.
protected SetInvalid ( IValidationErrors validationErrors ) : bool
validationErrors IValidationErrors
Résultat bool

Property Details

ALL_BINDINGERRORS_PROVIDER public_oe static_oe property

The name of the always filled error provider
public static string ALL_BINDINGERRORS_PROVIDER
Résultat string