Interface IValidatorContext
Unit
Declaration
type IValidatorContext = interface(IInterface)
Description
Interface that groups all validators, as well as establishes the validation order.
Attributes
- GUID['{72A67B7E-E243-447D-9AB1-D1A6883FE425}']
Hierarchy
- IInterface
- IValidatorContext
Overview
Methods
function Add(AValidator: IValidatorBase): IValidatorContext; |
|
function HandleValidation(ACommand: ICommandBuilder): TArray<string>; |
|
function Validate(ACommand: ICommandBuilder): TArray<string>; |
Description
Methods
function Add(AValidator: IValidatorBase): IValidatorContext; |
|
Successive calls to the add method are responsible for creating the validation context. This method adds an IValidatorBase and sets it as the successor if a previous IValidatorBase exists.
A valid instance of IValidatorBase responsible for processing a specific type of validation.) |
function HandleValidation(ACommand: ICommandBuilder): TArray<string>; |
|
Executes the validation of the first added IValidatorBase, being the responsibility of this object to call its successor IValidatorBase and so on. CommandBuilder instance containing the arguments, commands and options configured to be validated against the arguments passed to it. |
function Validate(ACommand: ICommandBuilder): TArray<string>; |
|
Builds the validation context by adding each class of type IValidatorBase. It then calls the first validator triggering the validator pattern.
CommandBuilder instance containing the arguments, commands and options configured to be validated against the arguments passed to it.) |
Generated by PasDoc 0.16.0.