DevForce provides a collection of predefined, stock verifiers that can either be used as is, or subclassed to add additional behaviours.
All of the verifiers listed below, with the exception of the DelegateVerifier<T>, are subclasses of the abstract base class PropertyValueVerifier.
Verifier | Description |
---|---|
RequiredValueVerifier | A verifier that checks that a null value has not been returned. |
StringLengthVerifier | A verifier that checks that a string value's length is within a range. |
RegexVerifier | A verifier that checks that a string value matches a specified regular expression. |
RangeVerifier<T> | The abstract base class for all other RangeVerifiers. This class and all of its subclasses provide validation that a value is within a specified range. If one of the provided subclasses does not match the type of value that you need for a range validation then subclass this type. |
Int32RangeVerifier | A RangeVerifier for Int32 values. |
Int64RangeVerifier | A RangeVerifier for Int64 values. |
DoubleRangeVerifier | A RangeVerifier for Double values. |
DecimalRangeVerifier | A RangeVerifier for Decimal values. |
DateTimeRangeVerifier | A RangeVerifier for DateTime values. |
ListVerifier | A verifier that checks if a value is among those in a specified list. |
PropertyValueVerifier<T> | An abstract PropertyValueVerifier that is strongly typed as to the type of parent object being validated. (Not the type of the value being validated). May be used to create strongly classed subclasses of the PropertyValueVerifier. |
DelegateVerifier<T> | The abstract base class for all custom validations that cannot be written by subclassing one of the other verifiers provided above. |