Uses of Class
de.mlo.dev.validation.ValidationResult
-
-
Uses of ValidationResult in de.mlo.dev.validation
Methods in de.mlo.dev.validation that return ValidationResult Modifier and Type Method Description ValidationResultValidationResult. add(ValidationInfo validationInfo)Adds a newValidationInfoat the end of the list.ValidationResultValidationResult. add(ValidationInfo first, ValidationInfo... more)Adds one or moreValidationInfos at the end of the listValidationResultValidationResult. add(ValidationResult validationResult)Merges the givenValidationResultinto this result.ValidationResultValidationResult. add(Collection<ValidationInfo> validationInfos)Adds a bunch ofValidationInfos at the end of the liststatic ValidationResultValidationResult. invalid(String message)Convenient function: Creates aValidationResultwith onValidationInfowhich is invalid and contains the given message.
Caution: If a process combinesresultsthe end result will be invalid.@NotNull ValidationResultValidationRunner. validate(List<ValidationSummarizer> validators)Has to execute the giveninstructionsand has to aggregate the all results to one.
It is up to the runner, how to execute the instructions and when the process stops.
Predefined runners:ValidationRunners.VALIDATE_ALL- Executes all instructionsValidationRunners.VALIDATE_STOP_ON_FIRST_FAIL- Executes the instructions and stops if one instruction faileddefault @NotNull ValidationResultValidationStatement. validate()Wraps the result ofValidationStatement.execute()in aValidationResultHas to execute one or more parts of the validation process.@NotNull ValidationResultValidationSummarizer. validate()Has to execute one or more parts of the validation process.@NotNull ValidationResultValidator. validate()This will start the validation process.@NotNull ValidationResultValidator. validateStopOnFirstFail()Shortcut forMethods in de.mlo.dev.validation with parameters of type ValidationResult Modifier and Type Method Description ValidationResultValidationResult. add(ValidationResult validationResult)Merges the givenValidationResultinto this result.
-