C# Класс Castle.Components.Validator.SetValidator

Наследование: AbstractValidator
Показать файл Открыть проект

Открытые методы

Метод Описание
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