[Missing namespace summary documentation for N:Castle.Components.Validator]
Syntax
| C# |
|---|
namespace Castle.Components.Validator |
Classes
| Class | Description | |
|---|---|---|
| AbstractValidationAttribute |
The base class for all the validation attributes.
This class define a Castle.Components.Validator property that is used to retrieve the validtor that is used to
validate the value of the property.
| |
| AbstractValidator |
Abstract IValidator implementation
| |
| BrowserValidationConfiguration |
Represents the base of a browser configuration.
| |
| CachedValidationRegistry | IValidatorRegistry implementation that
caches the reflection and custom attributes calls for better performance.
| |
| CollectionNotEmptyValidator |
Validates that the content is a collection that is not empty
| |
| CreditCardValidator |
This validator validate that the is a valid credit card number in:
Amex DinersClub Discover Discover enRoute JCB MasterCard VISA
It is possible to specify more than a single card type.
You can also specify exceptions for test cards.
| |
| DateTimeValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| DateValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| DecimalValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| DoubleValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| EmailValidator |
Validate that this is a valid (formatted) email using regex
| |
| ErrorSummary |
Represents a validation report for an object instance
which is a snapshot since the last validation check.
| |
| GroupNotEmptyValidator |
Ensures that at least one property in the group was filled with some value
| |
| IntegerValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| LengthValidator |
Ensures that a property's string representation
is within the desired length limitations.
| |
| NonEmptyValidator |
Ensures that a property was
filled with some value
| |
| NotSameAsValidator |
Validates that the content has a different
value from the value of the property informed.
| |
| NotSameValueValidator |
Validates that the content is not set to the specified value
| |
| NullableDateTimeValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| NullableDateValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| NullableDecimalValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| NullableDoubleValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| NullableIntegerValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| NullableSingleValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| RangeValidator |
Ensures that a property's string representation
is within the desired value limitations.
| |
| RegularExpressionValidator |
Validate a property using regular expression
| |
| SameAsValidator |
Validates that the content has the same
value as the property informed.
| |
| SetValidator |
Ensures that a property's string representation
is within a given set of values.
| |
| SingleValidator |
This is a meta validator.
It is only useful to test a source content before setting it on the
target instance.
| |
| ValidateCollectionNotEmptyAttribute |
Validates that the collection is not empty
| |
| ValidateCreditCardAttribute |
Properties decorated with this attribute will be validated to ensure that they represent a valid
credit card number.
for more details.
| |
| ValidateDateAttribute |
Validate that this date is a valid one.
| |
| ValidateDateTimeAttribute |
Validate that this date is a valid one.
| |
| ValidateDecimalAttribute |
Validate that this date is a valid one.
| |
| ValidateDoubleAttribute |
Validate that this date is a valid one.
| |
| ValidateEmailAttribute |
Validate that this email address is a valid one.
| |
| ValidateGroupNotEmptyAttribute |
Validate that at least one of the properties in the group is not null or empty (for strings)
| |
| ValidateIntegerAttribute |
Validate that this date is a valid one.
| |
| ValidateLengthAttribute |
Validate that this property has the required length (either exact or in a range)
| |
| ValidateNonEmptyAttribute |
Validate that the property is not null or empty (for strings)
| |
| ValidateNotSameAsAttribute |
Validates that the content has a different
value from the property informed.
| |
| ValidateNotSameValueAttribute |
Validates that the content has not been set to the specified value
| |
| ValidateRangeAttribute |
Validate that this property has the required length (either exact or in a range)
| |
| ValidateRegExpAttribute |
Validate that the property match the given regular expression
| |
| ValidateSameAsAttribute |
Validates that the content has the same
value as the property informed.
| |
| ValidateSetAttribute |
Validate that the field has a value in a set of values.
| |
| ValidateSingleAttribute |
Validate that this date is a valid one.
| |
| ValidationException |
This exception is raised when a validation error occurs
| |
| ValidationInternalError |
Exception used when something goes wrong on
validation internal inner workings.
| |
| ValidatorRunner |
Coordinates the gathering and execution of validators.
Castle.Components.Validator..::IValidatorRegistry |
Interfaces
| Interface | Description | |
|---|---|---|
| IBrowserValidationGenerator |
Abstracts a JS validation library implementation.
Each implementation should map the calls to their
own approach to enforce validation.
| |
| IValidator |
Defines the basic contract for validators.
To create a new validation you should use AbstractValidator as it implements most of the common methods and properties. The validation should happen at IsValid, and if the validator can configure a client-side validation script, it should use the SupportsBrowserValidation to indicate that it does support client-side validation and also implement the ApplyBrowserValidation(BrowserValidationConfiguration, InputElementType, IBrowserValidationGenerator, IDictionary, String) to configure it. | |
| IValidatorBuilder |
Constructs an IValidator implementation.
| |
| IValidatorRegistry |
Abstracts a validation registry per Type.
|
Enumerations
| Enumeration | Description | |
|---|---|---|
| CreditCardValidator..::CardType |
Define the known card types
| |
| InputElementType |
Defines a html element type
| |
| RangeValidationType |
Specifies the data type the RangeValidator
is dealing with.
| |
| RunWhen |
Represents "phases" in which you can group
different validations and run then accordingly
|