C# 클래스 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.

상속: IValidator, IObjectFactoryAware
파일 보기 프로젝트 열기: spring-projects/spring-net 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Validate() 공개 메소드

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.
리턴 bool

Validate() 공개 메소드

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.
리턴 bool

ValidatorReference() 공개 메소드

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

ValidatorReference() 공개 메소드

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. ///
리턴 System.Collections.Generic

ValidatorReference() 공개 메소드

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. ///
리턴 System.Collections.Generic