C# Class Castle.MonoRail.Framework.DataBindAttribute

Inheritance: System.Attribute, IParameterBinder
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode Description
Bind ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : object

Implementation of IParameterBinder.Bind and it is used to read the data available and construct the parameter type accordingly.

CalculateParamPoints ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : int

Implementation of IParameterBinder.CalculateParamPoints and it is used to give the method a weight when overloads are available.

DataBindAttribute ( string prefix ) : System

Creates a DataBindAttribute with an associated prefix. The prefix must be present in the form data and is used to avoid name clashes.

Méthodes protégées

Méthode Description
BindInstanceErrors ( SmartDispatcherController controller, IDataBinder binder, object instance ) : void

Binds the instance errors.

ConfigureValidator ( SmartDispatcherController controller, IDataBinder binder ) : void

Configures the validator.

CreateBinder ( ) : IDataBinder

Creates the binder.

PopulateValidatorErrorSummary ( SmartDispatcherController controller, IDataBinder binder, object instance ) : void

Populates the validator error summary.

Method Details

Bind() public méthode

Implementation of IParameterBinder.Bind and it is used to read the data available and construct the parameter type accordingly.
public Bind ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : object
controller SmartDispatcherController The controller instance
parameterInfo System.Reflection.ParameterInfo The parameter info
Résultat object

BindInstanceErrors() protected méthode

Binds the instance errors.
protected BindInstanceErrors ( SmartDispatcherController controller, IDataBinder binder, object instance ) : void
controller SmartDispatcherController The controller.
binder IDataBinder The binder.
instance object The instance.
Résultat void

CalculateParamPoints() public méthode

Implementation of IParameterBinder.CalculateParamPoints and it is used to give the method a weight when overloads are available.
public CalculateParamPoints ( SmartDispatcherController controller, ParameterInfo parameterInfo ) : int
controller SmartDispatcherController The controller instance
parameterInfo System.Reflection.ParameterInfo The parameter info
Résultat int

ConfigureValidator() protected méthode

Configures the validator.
protected ConfigureValidator ( SmartDispatcherController controller, IDataBinder binder ) : void
controller SmartDispatcherController The controller.
binder IDataBinder The binder.
Résultat void

CreateBinder() protected méthode

Creates the binder.
protected CreateBinder ( ) : IDataBinder
Résultat IDataBinder

DataBindAttribute() public méthode

Creates a DataBindAttribute with an associated prefix. The prefix must be present in the form data and is used to avoid name clashes.
public DataBindAttribute ( string prefix ) : System
prefix string
Résultat System

PopulateValidatorErrorSummary() protected méthode

Populates the validator error summary.
protected PopulateValidatorErrorSummary ( SmartDispatcherController controller, IDataBinder binder, object instance ) : void
controller SmartDispatcherController The controller.
binder IDataBinder The binder.
instance object The instance.
Résultat void