Castle.Components.Binder
Defines the contract for a data binder implementation approach.
Create an instance of the specified type and binds the properties that
are available on the datasource.
The target type. Can be an array
The obligatory prefix that distinguishes it on the datasource
A hierarchycal representation of flat data
an instance of the specified target type
Create an instance of the specified type and binds the properties that
are available on the datasource respecting the white and black list
The target type. Can be an array
The obligatory prefix that distinguishes it on the datasource
A list of comma separated values specifing the properties that should be ignored
A list of comma separated values specifing the properties that should not be ignored
A hierarchycal representation of flat data
an instance of the specified target type
Binds the properties that are available on the datasource to the specified object instance.
The target instance.
The obligatory prefix that distinguishes it on the datasource
A hierarchycal representation of flat data
an instance of the specified target type
Binds the properties that
are available on the datasource respecting the white and black list
The target type.
The obligatory prefix that distinguishes it on the datasource
A list of comma separated values specifing the properties that should be ignored
A list of comma separated values specifing the properties that should not be ignored
A hierarchycal representation of flat data
an instance of the specified target type
Gets the validation error summary.
The instance.
Represents the databind errors
Exposes the implementation
if one was provided
Exposes the implementation
Gets or sets the validator runner instance.
The validator instance.
Invoked before the data binder implementation starts to
work on a class instance
Invoked after the data binder implementation starts to
work on a class instance
Collect the databind errors
Holds a sorted array of properties names that should be ignored
Holds a sorted array of properties names that are on the white list
Initializes a new instance of the class.
Gets the validation error summary.
The instance.
Sets the property value of the object we are binding.
Databinders that require different ways to access properties
can override this method.
Implementations will bound the instance itself.
Invoked during object binding to allow
subclasses to have a chance of binding the types itself.
If the implementation returns true
the binder will invoke
Type about to be bound
true if subclass wants to handle binding
Represents the databind errors
Represents an error that occurred when trying to
databind a property of an instance.
Initializes a new instance of the class.
The parent.
The property.
Initializes a new instance of the class.
The parent.
The property.
The exception.
Initializes a new instance of the class.
The parent.
The property.
The error message.
Returns a that represents the current .
A that represents the current .
Gets the key.
The key.
Gets the parent.
The parent.
Gets the property.
The property.
Gets the error message.
The error message.
Check the fields for duplicates.
I have to add this check as some stored procedures
return duplicate columns (doh!) and this isn't good
for the binder.
Depicts the contract for implementations able to convert an object
-- usually a string -- to the specified desired type.
Convert the input param into the desired type
Type of the desired
The input
if false the return value must be ignored
There are 3 possible cases when trying to convert:
1) Input data for conversion missing (input is null or an empty String)
Returns default conversion value (based on desired type) and set conversionSucceeded = false
2) Has input data but cannot convert to particular type
Throw exception and set conversionSucceeded = false
3) Has input data and can convert to particular type
Return input converted to desired type and set conversionSucceeded = true
Fix for mod_mono issue where array values are passed as a comma seperated String.
Support for types that specify a TypeConverter,
i.e.: NullableTypes
A useful representation of a set of IPropertyError instances.
Initializes a new instance of the class.
The initial contents.
Determines whether [contains] [the specified property].
The property.
true if [contains] [the specified property]; otherwise, false.
Gets the number of elements contained in the .
The number of elements contained in the .
Gets the with the specified property.
Provides a way to properties on the binder target
be bound to a different key in the data source.
Should return the key that gathers the value
to fill the property.
The type which is the target of the binder
The property name in the target type
A name of the source data that should be used to populate the property