C# Class Spring.Validation.ValidatorGroup

IValidator implementation that supports grouping of validators.

This validator will be valid only when all of the validators in the Validators collection are valid.

ValidationErrors property will return a union of all validation error messages for the contained validators.

Inheritance: Spring.Validation.BaseValidatorGroup
Mostrar archivo Open project: spring-projects/spring-net Class Usage Examples

Public Methods

Method Description
ValidatorGroup ( ) : System.Collections.Generic

Initializes a new instance

ValidatorGroup ( IExpression when ) : System.Collections.Generic

Initializes a new instance

ValidatorGroup ( string when ) : System.Collections.Generic

Initializes a new instance

Protected Methods

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

Actual implementation how to validate the specified object.

Method Details

ValidateGroup() protected method

Actual implementation how to validate the specified object.
protected ValidateGroup ( object>.IDictionary contextParams, IValidationErrors errors, object validationContext ) : bool
contextParams object>.IDictionary Additional context parameters.
errors IValidationErrors instance to add error messages to.
validationContext object The object to validate.
return bool

ValidatorGroup() public method

Initializes a new instance
public ValidatorGroup ( ) : System.Collections.Generic
return System.Collections.Generic

ValidatorGroup() public method

Initializes a new instance
public ValidatorGroup ( IExpression when ) : System.Collections.Generic
when IExpression The expression that determines if this validator should be evaluated.
return System.Collections.Generic

ValidatorGroup() public method

Initializes a new instance
public ValidatorGroup ( string when ) : System.Collections.Generic
when string The expression that determines if this validator should be evaluated.
return System.Collections.Generic