- java.lang.Object
-
- de.mlo.dev.validation.ValidationRunners
-
public class ValidationRunners extends Object
- Author:
- mlo
-
-
Field Summary
Fields Modifier and Type Field Description static ValidationRunnerVALIDATE_ALLExecutes all addedValidationStatements in the order they have been added.static ValidationRunnerVALIDATE_STOP_ON_FIRST_FAILExecutes the givenValidationStatements in the order they have been added until the firstValidationStatementfail.
-
-
-
Field Detail
-
VALIDATE_ALL
public static final ValidationRunner VALIDATE_ALL
Executes all addedValidationStatements in the order they have been added. If a single instruction fails, theValidationResult.isValid()function will returnfalse. Only if all instruction passes the test the result will be valid (ValidationResult.isValid()will betrue).
The validation result also contains the result of every single instructions and can aggregate all failure messages:ValidationResult.getMessage().
-
VALIDATE_STOP_ON_FIRST_FAIL
public static final ValidationRunner VALIDATE_STOP_ON_FIRST_FAIL
Executes the givenValidationStatements in the order they have been added until the firstValidationStatementfail. If a single instruction fails, theValidationResult.isValid()function will returnfalse. Only if all instruction passes the test the result will be valid (ValidationResult.isValid()will betrue).
The validation result also contains the result of every single instructions and can aggregate all failure messages:ValidationResult.getMessage().
-
-