C# 클래스 Spring.Validation.ExclusiveValidatorGroup

IValidator implementation that supports grouping of validators.

This validator will be valid when one and only one of the validators in the Validators collection are valid

ValidationErrors property will return a union of all validation error messages for the contained validators, but only if this validator is not valid (meaning, when none of the contained validators are valid).

By default, this validator group uses BaseValidatorGroup.FastValidate == true semantics.

상속: Spring.Validation.BaseValidatorGroup
파일 보기 프로젝트 열기: spring-projects/spring-net 1 사용 예제들

공개 메소드들

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

Initializes a new instance of the ExclusiveValidatorGroup class.

ExclusiveValidatorGroup ( IExpression when ) : System.Collections.Generic

Initializes a new instance of the ExclusiveValidatorGroup class.

ExclusiveValidatorGroup ( string when ) : System.Collections.Generic

Initializes a new instance of the ExclusiveValidatorGroup class.

보호된 메소드들

메소드 설명
ValidateGroup ( object>.IDictionary contextParams, IValidationErrors errors, object validationContext ) : bool

Actual implementation how to validate the specified object.

메소드 상세

ExclusiveValidatorGroup() 공개 메소드

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

ExclusiveValidatorGroup() 공개 메소드

Initializes a new instance of the ExclusiveValidatorGroup class.
public ExclusiveValidatorGroup ( IExpression when ) : System.Collections.Generic
when IExpression The expression that determines if this validator should be evaluated.
리턴 System.Collections.Generic

ExclusiveValidatorGroup() 공개 메소드

Initializes a new instance of the ExclusiveValidatorGroup class.
public ExclusiveValidatorGroup ( string when ) : System.Collections.Generic
when string The expression that determines if this validator should be evaluated.
리턴 System.Collections.Generic

ValidateGroup() 보호된 메소드

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