C# 클래스 Castle.Components.Validator.SetValidator

상속: AbstractValidator
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
ApplyBrowserValidation ( BrowserValidationConfiguration config, InputElementType inputType, IBrowserValidationGenerator generator, IDictionary attributes, string target ) : void

Applies the browser validation by setting up one or more input rules on IBrowserValidationGenerator.

IsValid ( object instance, object fieldValue ) : bool

Validate that the property value matches the set requirements.

SetValidator ( ) : System

Initializes a set-based validator with an empty set.

SetValidator ( Type type ) : System

Initializes a set-based validator.

보호된 메소드들

메소드 설명
BuildErrorMessage ( ) : string

Builds the error message.

메소드 상세

ApplyBrowserValidation() 공개 메소드

Applies the browser validation by setting up one or more input rules on IBrowserValidationGenerator.
public ApplyBrowserValidation ( BrowserValidationConfiguration config, InputElementType inputType, IBrowserValidationGenerator generator, IDictionary attributes, string target ) : void
config BrowserValidationConfiguration The config.
inputType InputElementType Type of the input.
generator IBrowserValidationGenerator The generator.
attributes IDictionary The attributes.
target string The target.
리턴 void

BuildErrorMessage() 보호된 메소드

Builds the error message.
protected BuildErrorMessage ( ) : string
리턴 string

IsValid() 공개 메소드

Validate that the property value matches the set requirements.
public IsValid ( object instance, object fieldValue ) : bool
instance object The target type instance
fieldValue object The property/field value. It can be null.
리턴 bool

SetValidator() 공개 메소드

Initializes a set-based validator with an empty set.
public SetValidator ( ) : System
리턴 System

SetValidator() 공개 메소드

Initializes a set-based validator.
public SetValidator ( Type type ) : System
type System.Type The of an enum class. /// The enum names will be added to the contents of the set.
리턴 System