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

상속: IValidator
파일 보기 프로젝트 열기: 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.

GetFieldOrPropertyValue ( object instance, string fieldOrPropertyName ) : object

Obtains the value of a property or field on a specific instance.

Initialize ( IValidatorRegistry validationRegistry, PropertyInfo property ) : void

Implementors should perform any initialization logic

IsValid ( object instance ) : bool

Implementors should perform the actual validation upon the property value

IsValid ( object instance, object fieldValue ) : bool

Implementors should perform the actual validation upon the property value

보호된 메소드들

메소드 설명
BuildErrorMessage ( ) : string

Builds the error message.

GetString ( string key ) : string

Gets the string from resource

메소드 상세

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

GetFieldOrPropertyValue() 공개 메소드

Obtains the value of a property or field on a specific instance.
public GetFieldOrPropertyValue ( object instance, string fieldOrPropertyName ) : object
instance object The instance to inspect.
fieldOrPropertyName string The name of the field or property to inspect.
리턴 object

GetString() 보호된 메소드

Gets the string from resource
protected GetString ( string key ) : string
key string The key.
리턴 string

Initialize() 공개 메소드

Implementors should perform any initialization logic
public Initialize ( IValidatorRegistry validationRegistry, PropertyInfo property ) : void
validationRegistry IValidatorRegistry
property System.Reflection.PropertyInfo The target property
리턴 void

IsValid() 공개 메소드

Implementors should perform the actual validation upon the property value
public IsValid ( object instance ) : bool
instance object The target type instance
리턴 bool

IsValid() 공개 추상적인 메소드

Implementors should perform the actual validation upon the property value
public abstract IsValid ( object instance, object fieldValue ) : bool
instance object The target type instance
fieldValue object The property/field value. It can be null.
리턴 bool