Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IValidator Interface

An object that can validate application-specific objects.

For a list of all members of this type, see IValidator Members .

[Visual Basic]
Public Interface IValidator
[C#]
public interface IValidator

Types that implement IValidator

Type Description
AnyValidatorGroup IValidator implementation that supports grouping of validators.
BaseSimpleValidator Base class that defines common properties for all single validators.
BaseValidator Base class that defines common properties for all validators.
BaseValidatorGroup Base class for composite validators
CollectionValidator IValidator implementation that supports validating collections.
ConditionValidator Evaluates validator test using condition evaluator.
ExclusiveValidatorGroup IValidator implementation that supports grouping of validators.
RegularExpressionValidator Validates that object matches specified regular expression.
RequiredValidator Validates that required value is not empty.
ValidatorGroup IValidator implementation that supports grouping of validators.
ValidatorReference Represents a reference to an externally defined validator object
CreditCardValidator Perform credit card validations.
EmailValidator Perform email validations.
ISBNValidator Validates that the object is valid ISBN-10 or ISBN-13 value.
UrlValidator Validates that the value is valid URL.

Remarks

The primary motivation for this interface is to enable validation to be decoupled from the (user) interface and placed in business objects.

Application developers writing their own custom IValidator implementations will typically not implement this interface directly. In most cases, custom validators woud be better served deriving from the BaseValidator class, with the custom validation ligic being implemented in an override of the Validate template method.

Requirements

Namespace: Spring.Validation

Assembly: Spring.Core (in Spring.Core.dll)

See Also

IValidator Members | Spring.Validation Namespace | BaseValidator