C# 클래스 Spring.Validation.BaseSimpleValidator

Base class that defines common properties for all single validators.

Custom single validators should always extend this class instead of simply implementing IValidator interface, in order to inherit common validator functionality.

상속: Spring.Validation.BaseValidator
파일 보기 프로젝트 열기: spring-projects/spring-net

공개 메소드들

메소드 설명
BaseSimpleValidator ( ) : System.Collections.Generic

Creates a new instance of the validator without any Test and BaseValidator.When criteria

BaseSimpleValidator ( IExpression test, IExpression when ) : System.Collections.Generic

Creates a new instance of the BaseValidator class.

BaseSimpleValidator ( string test, string when ) : System.Collections.Generic

Creates a new instance of the BaseValidator class.

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

Validates the specified object.

보호된 메소드들

메소드 설명
EvaluateTest ( object rootContext, object>.IDictionary contextParams ) : object

Evaluates test expression.

Validate ( object objectToValidate ) : bool

Validates test object.

메소드 상세

BaseSimpleValidator() 공개 메소드

Creates a new instance of the validator without any Test and BaseValidator.When criteria
public BaseSimpleValidator ( ) : System.Collections.Generic
리턴 System.Collections.Generic

BaseSimpleValidator() 공개 메소드

Creates a new instance of the BaseValidator class.
public BaseSimpleValidator ( IExpression test, IExpression when ) : System.Collections.Generic
test IExpression The expression to validate.
when IExpression The expression that determines if this validator should be evaluated.
리턴 System.Collections.Generic

BaseSimpleValidator() 공개 메소드

Creates a new instance of the BaseValidator class.
public BaseSimpleValidator ( string test, string when ) : System.Collections.Generic
test string The expression to validate.
when string The expression that determines if this validator should be evaluated.
리턴 System.Collections.Generic

EvaluateTest() 보호된 메소드

Evaluates test expression.
protected EvaluateTest ( object rootContext, object>.IDictionary contextParams ) : object
rootContext object Root context to use for expression evaluation.
contextParams object>.IDictionary Additional context parameters.
리턴 object

Validate() 보호된 추상적인 메소드

Validates test object.
protected abstract Validate ( object objectToValidate ) : bool
objectToValidate object Object to validate.
리턴 bool

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