Built-in Validators

The following validator factories can be applied to Properties and Parameters:
  1. GreaterThan (numeric) throws ValidateGreaterThanException
  2. LessThan (numeric) throws ValidateLessThanException
  3. Maximum (numeric) throws ValidateMaximumException
  4. Minimum (numeric) throws ValidateMinimumException
  5. InRange (numeric) throws ValidateInRangeException
  6. NotInRange (numeric) throws ValidateNotInRangeException
  7. NotEqual (numeric & string) throws ValidateNotEqualException
  8. NotNull (object) throws ValidateNotNullException
  9. NotNullOrEmpty (string) throws ValidateNotNullOrEmptyException
  10. MatchesRegex (string) throws ValidateMatchesRegexException
  11. MaximumLength (string) throws ValidateMaximumLengthException
  12. MinimumLength (string) throws ValidateMinimumLengthException
  13. LengthInRange (string) throws ValidateLengthInRangeException
  14. IsEmail (string) throws ValidateIsEmailException
  15. IsDate (string) throws ValidateIsDateException
  16. ValidateObject (object) throws ValidateObjectException

If you have a need for a general validator not listed here, please raise an issue and it will be considered for a future release.

Numeric Validator Factories support the following validation target types:
double
decimal
int
long
float
short
char
byte
uint
ulong
ushort
sbyte

Last edited Jun 15, 2009 at 4:27 PM by mikesaunders, version 9

Comments

No comments yet.