C# Class ServiceStack.FluentValidation.Validators.PropertyValidator

Inheritance: IPropertyValidator
Exibir arquivo Open project: ServiceStack/ServiceStack

Public Methods

Method Description
Validate ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : IEnumerable

Protected Methods

Method Description
CreateValidationError ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : ValidationFailure

Creates an error validation result for this validator.

IsValid ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : bool
PropertyValidator ( Expression errorMessageResourceSelector, string errorCode ) : System
PropertyValidator ( string errorMessageResourceName, Type errorMessageResourceType, string errorCode ) : System
PropertyValidator ( string errorMessage, string errorCode ) : System

Method Details

CreateValidationError() protected method

Creates an error validation result for this validator.
protected CreateValidationError ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : ValidationFailure
context ServiceStack.FluentValidation.Validators.PropertyValidatorContext The validator context
return ValidationFailure

IsValid() protected abstract method

protected abstract IsValid ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : bool
context ServiceStack.FluentValidation.Validators.PropertyValidatorContext
return bool

PropertyValidator() protected method

protected PropertyValidator ( Expression errorMessageResourceSelector, string errorCode ) : System
errorMessageResourceSelector Expression
errorCode string
return System

PropertyValidator() protected method

protected PropertyValidator ( string errorMessageResourceName, Type errorMessageResourceType, string errorCode ) : System
errorMessageResourceName string
errorMessageResourceType System.Type
errorCode string
return System

PropertyValidator() protected method

protected PropertyValidator ( string errorMessage, string errorCode ) : System
errorMessage string
errorCode string
return System

Validate() public method

public Validate ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : IEnumerable
context ServiceStack.FluentValidation.Validators.PropertyValidatorContext
return IEnumerable