-
Notifications
You must be signed in to change notification settings - Fork 1
N_Ifp_Validation
Martin Strecker edited this page Mar 9, 2019
·
6 revisions
The ifp.Validation namespace contains all the classes for the Ifp.Validation library
Class | Description | |
---|---|---|
CollectionValidator(T) | Takes one or more validation rules for T and validates IEnumerable(T) against that rules. | |
RuleBasedValidator(T) | A validator that takes a set of objects that implement the IValidationRule(T) interface. Use the ValidationRule(T) class or the ValidationRuleDelegate(T) class as base for the implementation of rules. | |
SubCollectionValidator(T, U) | Validates an object of type T by applying IValidationRule(T)s to a collection that is accessible from T. The rules that get applied are of the underlying type of the collection accessed. | |
ValidationOutcome | Abstract base class for Validation outcomes returned by ValidateObject(T). | |
ValidationOutcomeWithMessage | A base class for ValidationOutcome types with an error message. | |
ValidationRule(T) | The base class for implementing the validation logic. ValidateObject(T) must be implemented with the validation logic. | |
ValidationRuleDelegate(T) | A class that takes a ValidationFunction(T) delegate to perform the validation. This allows to define a validation rule without the need to implement a class that derives from ValidationRule(T). | |
ValidationSeverity |
ValidationSeverity is the base class for the description of the Severity of a ValidationOutcome. The severity describes how fatal the result of a validation is. There are four predefined severity levels, but you can also create your own by inheriting from this class. The predefined severity levels are
|
|
ValidationSeverity.ErrorSeverity | A default severity. The ValidationSeverity.ErrorSeverity indicates that an object violates a validation rule and the process should be canceled. | |
ValidationSeverity.InformationSeverity | A default severity. The ValidationSeverity.InformationSeverity indicates that an object conforms to a validation rule, but the user should be informed about something. | |
ValidationSeverity.SuccessSeverity | A default severity. The ValidationSeverity.SuccessSeverity indicates that an object conforms to a validation rule. | |
ValidationSeverity.WarningSeverity | A default severity. The ValidationSeverity.WarningSeverity indicates that an object violates a validation rule, but the user should # decide whether the process should be continued or canceled. | |
ValidationSummary | A container for one or more ValidationOutcome objects. The ValidationSummary is usually produced by a RuleBasedValidator(T). | |
ValidationSummaryBuilder | A helper class that allows to build a validation summary step by step. The ValidationSummary can not be changed after construction. The ValidationSummaryBuilder can be used to collect several ValidationOutcome or ValidationSummary objects and append them to a new ValidationSummary. | |
ValidationSummaryBuilderExtensions | Extension methods for the Ifp.Validation library | |
Validator(T) | Base class for validators. Those validators usually don't perform validations on there own but delegate the validation to one or more IValidationRule(T) objects. These IValidationRule(T) objects perform a single isolated validation and the Validator(T) collects the single ValidationOutcome and wrap them in a ValidationSummary. | |
ValidatorCombiner(T) | An IValidator(T) which combines the ValidationSummary of other IValidator(T)s. |
Interface | Description | |||
---|---|---|---|---|
IValidationRule(T) | Classes that validate other objects should implement this interface. Classes that implement this interface can be combined to rules sets by the RuleBasedValidator(T). | |||
IValidationSummaryPresentationService |
Interface for services that can show a ValidationSummary as a dialog to the user. This library does not include an implementation of such a service. A WPF specific implementation can be found in the Ifp.Validation.WPF package.
|
|||
IValidator(T) | A validator takes an object of type T and performs a validation. The result of the validation is represented by a collection of ValidationOutcome wrapped in a ValidationSummary. |
Delegate | Description | |
---|---|---|
ValidationFunction(T) | The ValidationFunction(T) delegate defines a function that can validate another object. The signature is the same as in ValidateObject(T). |
Enumeration | Description | |
---|---|---|
FailureSeverity | An enumeration of predefined failure severities. |
A Sandcastle Documented Class Library
Send comments on this topic to [](mailto:?Subject=A Sandcastle Documented Class Library)
-
Ifp.Validation Namespace
- CollectionValidator(T) Class
- FailureSeverity Enumeration
- IValidationRule(T) Interface
-
IValidationSummaryPresentationService Interface
-
IValidationSummaryPresentationService Methods
-
IValidationSummaryPresentationService.ShowValidationSummary Method
- IValidationSummaryPresentationService.ShowValidationSummary Method (ValidationSummary)
- IValidationSummaryPresentationService.ShowValidationSummary Method (ValidationSummary, Boolean)
- IValidationSummaryPresentationService.ShowValidationSummary Method (ValidationSummary, Boolean, String)
- IValidationSummaryPresentationService.ShowValidationSummary Method (ValidationSummary, Boolean, String, String)
-
IValidationSummaryPresentationService.ShowValidationSummary Method
-
IValidationSummaryPresentationService Methods
- IValidator(T) Interface
- RuleBasedValidator(T) Class
- SubCollectionValidator(T, U) Class
- ValidationFunction(T) Delegate
- ValidationOutcome Class
- ValidationOutcomeWithMessage Class
- ValidationRule(T) Class
- ValidationRuleDelegate(T) Class
-
ValidationSeverity Class
- ValidationSeverity Constructor
-
ValidationSeverity Properties
- ValidationSeverity.AllowsCancel Property
- ValidationSeverity.CausesCancel Property
- ValidationSeverity.Error Property
- ValidationSeverity.Information Property
- ValidationSeverity.IsAnError Property
- ValidationSeverity.SeverityAsNumber Property
- ValidationSeverity.Success Property
- ValidationSeverity.Warning Property
- ValidationSeverity Methods
- ValidationSeverity.ErrorSeverity Class
- ValidationSeverity.InformationSeverity Class
- ValidationSeverity.SuccessSeverity Class
- ValidationSeverity.WarningSeverity Class
- ValidationSummary Class
- ValidationSummaryBuilder Class
- ValidationSummaryBuilderExtensions Class
- Validator(T) Class
- ValidatorCombiner(T) Class