Пример #1
0
 public ValueAccessValidator(ValueAccess valueAccess, Validator valueValidator)
     : base(null, null)
 {
     if (valueAccess == null)
     {
         throw new ArgumentNullException("valueAccess");
     }
     if (valueValidator == null)
     {
         throw new ArgumentNullException("valueValidator");
     }
     this.valueAccess = valueAccess;
     this.valueValidator = valueValidator;
 }
Пример #2
0
 public ObjectCollectionValidator(Type targetType, string targetRuleset)
     : base(null, null)
 {
     if (targetType == null)
     {
         throw new ArgumentNullException("targetType");
     }
     if (targetRuleset == null)
     {
         throw new ArgumentNullException("targetRuleset");
     }
     this.targetType = targetType;
     this.targetRuleset = targetRuleset;
     this.targetTypeValidator = ValidationFactory.CreateValidator(this.targetType, this.targetRuleset);
 }
Пример #3
0
 internal void AddValueValidator(Validator valueValidator)
 {
     this.valueValidators.Add(valueValidator);
 }
Пример #4
0
 public ValidatorWrapper(Validator wrappedValidator)
     : base(null, null)
 {
     this.wrappedValidator = wrappedValidator;
 }
Пример #5
0
 public Validator GetValidator()
 {
     this.builtValidator = this.DoGetValidator();
     return this.builtValidator;
 }