C# 클래스 Castle.MonoRail.Framework.Helpers.ValidationStrategy.FValidateWebValidator.FValidateGenerator

Generator for fValidate validation.
상속: IBrowserValidationGenerator
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
FValidateGenerator ( InputElementType inputType, IDictionary attributes ) : System

Initializes a new instance of the FValidateGenerator class.

SetAsNotSameAs ( string target, string comparisonFieldName, string violationMessage ) : void

Set that a field value must _not_ be the same as another field's value.

SetAsRequired ( string target, string violationMessage ) : void

Sets that a field is required.

SetAsSameAs ( string target, string comparisonFieldName, string violationMessage ) : void

Set that a field value must be the same as another field's value.

SetDate ( string target, string violationMessage ) : void

Set that a field value must be a valid date.

SetDigitsOnly ( string target, string violationMessage ) : void

Set that a field should only accept digits.

SetEmail ( string target, string violationMessage ) : void

Sets that a field value must be a valid email address.

SetExactLength ( string target, int length ) : void

Sets that field must have an exact lenght.

SetExactLength ( string target, int length, string violationMessage ) : void

Sets that field must have an exact lenght.

SetLengthRange ( string target, int minLength, int maxLength ) : void

Sets that field must be between a length range.

SetLengthRange ( string target, int minLength, int maxLength, string violationMessage ) : void

Sets that field must be between a length range.

SetMaxLength ( string target, int maxLength ) : void

Sets that field must have an maximum lenght.

SetMaxLength ( string target, int maxLength, string violationMessage ) : void

Sets that field must have an maximum lenght.

SetMinLength ( string target, int minLength ) : void

Sets that field must have an minimum lenght.

SetMinLength ( string target, int minLength, string violationMessage ) : void

Sets that field must have an minimum lenght.

SetNumberOnly ( string target, string violationMessage ) : void

Set that a field should only accept numbers.

SetRegExp ( string target, string regExp, string violationMessage ) : void

Sets that a field value must match the specified regular expression.

SetValueRange ( string target, System.DateTime minValue, System.DateTime maxValue, string violationMessage ) : void

Sets that field must be between a value range.

SetValueRange ( string target, decimal minValue, decimal maxValue, string violationMessage ) : void

Sets that field must be between a value range.

SetValueRange ( string target, int minValue, int maxValue, string violationMessage ) : void

Sets that field must be between a value range.

SetValueRange ( string target, string minValue, string maxValue, string violationMessage ) : void

Sets that field must be between a value range.

비공개 메소드들

메소드 설명
AddErrorMessage ( string violationMessage ) : void
AddValidator ( string target, string validator ) : void

Adds the validator.

메소드 상세

FValidateGenerator() 공개 메소드

Initializes a new instance of the FValidateGenerator class.
public FValidateGenerator ( InputElementType inputType, IDictionary attributes ) : System
inputType InputElementType Type of the input.
attributes IDictionary The attributes.
리턴 System

SetAsNotSameAs() 공개 메소드

Set that a field value must _not_ be the same as another field's value.
public SetAsNotSameAs ( string target, string comparisonFieldName, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
comparisonFieldName string The name of the field to compare with.
violationMessage string The violation message.
리턴 void

SetAsRequired() 공개 메소드

Sets that a field is required.
public SetAsRequired ( string target, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
violationMessage string The violation message.
리턴 void

SetAsSameAs() 공개 메소드

Set that a field value must be the same as another field's value.
public SetAsSameAs ( string target, string comparisonFieldName, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
comparisonFieldName string The name of the field to compare with.
violationMessage string The violation message.
리턴 void

SetDate() 공개 메소드

Set that a field value must be a valid date.
public SetDate ( string target, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
violationMessage string The violation message.
리턴 void

SetDigitsOnly() 공개 메소드

Set that a field should only accept digits.
public SetDigitsOnly ( string target, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
violationMessage string The violation message.
리턴 void

SetEmail() 공개 메소드

Sets that a field value must be a valid email address.
public SetEmail ( string target, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
violationMessage string The violation message.
리턴 void

SetExactLength() 공개 메소드

Sets that field must have an exact lenght.
public SetExactLength ( string target, int length ) : void
target string The target name (ie, a hint about the controller being validated)
length int The length.
리턴 void

SetExactLength() 공개 메소드

Sets that field must have an exact lenght.
public SetExactLength ( string target, int length, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
length int The length.
violationMessage string The violation message.
리턴 void

SetLengthRange() 공개 메소드

Sets that field must be between a length range.
public SetLengthRange ( string target, int minLength, int maxLength ) : void
target string The target name (ie, a hint about the controller being validated)
minLength int The minimum length.
maxLength int The maximum length.
리턴 void

SetLengthRange() 공개 메소드

Sets that field must be between a length range.
public SetLengthRange ( string target, int minLength, int maxLength, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
minLength int The minimum length.
maxLength int The maximum length.
violationMessage string The violation message.
리턴 void

SetMaxLength() 공개 메소드

Sets that field must have an maximum lenght.
public SetMaxLength ( string target, int maxLength ) : void
target string The target name (ie, a hint about the controller being validated)
maxLength int The maximum length.
리턴 void

SetMaxLength() 공개 메소드

Sets that field must have an maximum lenght.
public SetMaxLength ( string target, int maxLength, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
maxLength int The maximum length.
violationMessage string The violation message.
리턴 void

SetMinLength() 공개 메소드

Sets that field must have an minimum lenght.
public SetMinLength ( string target, int minLength ) : void
target string The target name (ie, a hint about the controller being validated)
minLength int The minimum length.
리턴 void

SetMinLength() 공개 메소드

Sets that field must have an minimum lenght.
public SetMinLength ( string target, int minLength, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
minLength int The minimum length.
violationMessage string The violation message.
리턴 void

SetNumberOnly() 공개 메소드

Set that a field should only accept numbers.
public SetNumberOnly ( string target, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
violationMessage string The violation message.
리턴 void

SetRegExp() 공개 메소드

Sets that a field value must match the specified regular expression.
public SetRegExp ( string target, string regExp, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
regExp string The reg exp.
violationMessage string The violation message.
리턴 void

SetValueRange() 공개 메소드

Sets that field must be between a value range.
public SetValueRange ( string target, System.DateTime minValue, System.DateTime maxValue, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
minValue System.DateTime Minimum value.
maxValue System.DateTime Maximum value.
violationMessage string The violation message.
리턴 void

SetValueRange() 공개 메소드

Sets that field must be between a value range.
public SetValueRange ( string target, decimal minValue, decimal maxValue, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
minValue decimal Minimum value.
maxValue decimal Maximum value.
violationMessage string The violation message.
리턴 void

SetValueRange() 공개 메소드

Sets that field must be between a value range.
public SetValueRange ( string target, int minValue, int maxValue, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
minValue int Minimum value.
maxValue int Maximum value.
violationMessage string The violation message.
리턴 void

SetValueRange() 공개 메소드

Sets that field must be between a value range.
public SetValueRange ( string target, string minValue, string maxValue, string violationMessage ) : void
target string The target name (ie, a hint about the controller being validated)
minValue string Minimum value.
maxValue string Maximum value.
violationMessage string The violation message.
리턴 void