C# Класс Spring.DataBinding.AbstractBinding

Abstract base class for IBinding implementations.
Наследование: IBinding
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ALL_BINDINGERRORS_PROVIDER string

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

AbstractBinding() защищенный Метод

Initializes a new instance of the class.
protected AbstractBinding ( ) : System
Результат System

BindSourceToTarget() публичный Метод

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. ///
Результат void

BindSourceToTarget() публичный абстрактный Метод

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. ///
Результат void

BindTargetToSource() публичный Метод

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. ///
Результат void

BindTargetToSource() публичный абстрактный Метод

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. ///
Результат void

Equals() публичный Метод

Determines whether the specified is equal to the current .
public Equals ( object obj ) : bool
obj object The to compare with the current .
Результат bool

GetHashCode() публичный Метод

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
Результат int

IsValid() публичный Метод

Gets or sets a flag specifying whether this binding is valid.
public IsValid ( IValidationErrors errors ) : bool
errors IValidationErrors
Результат bool

SetErrorMessage() публичный Метод

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. ///
Результат void

SetInvalid() защищенный Метод

Marks this binding's state as invalid for this validationErrors collection. Returns false if validationErrors is null.
protected SetInvalid ( IValidationErrors validationErrors ) : bool
validationErrors IValidationErrors
Результат bool

Описание свойств

ALL_BINDINGERRORS_PROVIDER публичное статическое свойство

The name of the always filled error provider
public static string ALL_BINDINGERRORS_PROVIDER
Результат string