Beruflich Dokumente
Kultur Dokumente
can modify the validation rules without affecting applications that are in
production mode.
The data validation routines must be independent of the surrounding process.
This means that the same validation routines should work identically in all
applications, regardless of the way input is supplied to the routines.
As shown in the figure, these are the steps of the validation process:
1. Create or modify a wrapper class around validation rules.
2. Define the validation rules for a targeted data set. (In xml)
3. accept user input data as a Java Bean.
4. Create an instance of Validator.
5. Pass in the rules and user data to this instance.
6. Call the validate method of the Validator instance, and accept results in
the ValidatorResults class instance.
7. Process the results.