C# Class Spring.Validation.ValidatorReference

Represents a reference to an externally defined validator object

This class allows validation groups to reference validators that are defined outside of the group itself.

It also allows users to narrow the context for the referenced validator by specifying value for the Context property.

Inheritance: IValidator, IObjectFactoryAware
Show file Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
Validate ( object validationContext, object>.IDictionary contextParams, IValidationErrors errors ) : bool

Validates the specified object.

Validate ( object validationContext, IValidationErrors errors ) : bool

Validates the specified object.

ValidatorReference ( ) : System.Collections.Generic

Creates a new instance of the ValidatorReference class.

ValidatorReference ( IExpression when ) : System.Collections.Generic

Creates a new instance of the ValidatorReference class.

ValidatorReference ( string when ) : System.Collections.Generic

Creates a new instance of the ValidatorReference class.

Method Details

Validate() public method

Validates the specified object.
public Validate ( object validationContext, object>.IDictionary contextParams, IValidationErrors errors ) : bool
validationContext object The object to validate.
contextParams object>.IDictionary Additional context parameters.
errors IValidationErrors instance to add error messages to.
return bool

Validate() public method

Validates the specified object.
public Validate ( object validationContext, IValidationErrors errors ) : bool
validationContext object The object to validate.
errors IValidationErrors instance to add error messages to.
return bool

ValidatorReference() public method

Creates a new instance of the ValidatorReference class.
public ValidatorReference ( ) : System.Collections.Generic
return System.Collections.Generic

ValidatorReference() public method

Creates a new instance of the ValidatorReference class.
public ValidatorReference ( IExpression when ) : System.Collections.Generic
when IExpression /// The expression that determines if this validator should be evaluated. ///
return System.Collections.Generic

ValidatorReference() public method

Creates a new instance of the ValidatorReference class.
public ValidatorReference ( string when ) : System.Collections.Generic
when string /// The expression that determines if this validator should be evaluated. ///
return System.Collections.Generic