A C D E G I L S V 
All Classes All Packages

A

add(ValidationStatement) - Method in class de.mlo.dev.validation.Validator
Adds a new ValidationStatement to the list of existent statements.
add(ValidationSummarizer) - Method in class de.mlo.dev.validation.Validator
add(ValidationInfo) - Method in class de.mlo.dev.validation.ValidationResult
Adds a new ValidationInfo at the end of the list.
add(ValidationInfo, ValidationInfo...) - Method in class de.mlo.dev.validation.ValidationResult
Adds one or more ValidationInfos at the end of the list
add(ValidationResult) - Method in class de.mlo.dev.validation.ValidationResult
Merges the given ValidationResult into this result.
add(Collection<ValidationInfo>) - Method in class de.mlo.dev.validation.ValidationResult
Adds a bunch of ValidationInfos at the end of the list

C

compareTo(ValidationInfo) - Method in class de.mlo.dev.validation.ValidationInfo
 

D

de.mlo.dev.validation - module de.mlo.dev.validation
 
de.mlo.dev.validation - package de.mlo.dev.validation
 

E

execute() - Method in interface de.mlo.dev.validation.ValidationStatement
The implementation must contain any validation logic.

G

getInfos() - Method in class de.mlo.dev.validation.ValidationResult
 
getMessage() - Method in class de.mlo.dev.validation.ValidationInfo
 
getMessage() - Method in class de.mlo.dev.validation.ValidationResult
 
getMessage(String) - Method in class de.mlo.dev.validation.ValidationResult
 
getMessages() - Method in class de.mlo.dev.validation.ValidationResult
 

I

invalid(String, Object...) - Static method in class de.mlo.dev.validation.ValidationInfo
Creates a new ValidationInfo which indicates that the validation process was not successful: ValidationInfo.isValid() returns false.
In this case you should give a detailed messages what went wrong.
This function has a built-in formatter which uses String.format(String, Object...)
invalid(String) - Static method in class de.mlo.dev.validation.ValidationInfo
Creates a new ValidationInfo which indicates that the validation process was not successful: ValidationInfo.isValid() returns false.
In this case you should give a detailed messages what went wrong.
invalid(String) - Static method in class de.mlo.dev.validation.ValidationResult
Convenient function: Creates a ValidationResult with on ValidationInfo which is invalid and contains the given message.
Caution: If a process combines results the end result will be invalid.
isInvalid() - Method in class de.mlo.dev.validation.ValidationInfo
 
isInvalid() - Method in class de.mlo.dev.validation.ValidationResult
 
isValid() - Method in class de.mlo.dev.validation.ValidationInfo
 
isValid() - Method in class de.mlo.dev.validation.ValidationResult
 
iterator() - Method in class de.mlo.dev.validation.ValidationResult
 

L

LINE_SEPARATOR - Static variable in class de.mlo.dev.validation.ValidationResult
The system line separator

S

setValidateAll() - Method in class de.mlo.dev.validation.Validator
Executes all added ValidationStatements in the order they have been added.
setValidateStopOnFirstFail() - Method in class de.mlo.dev.validation.Validator
Executes the added ValidationStatements in the order they have been added until the first ValidationStatement fail.
setValidationRunner(ValidationRunner) - Method in class de.mlo.dev.validation.Validator
Sets a custom ValidationRunner.

V

valid() - Static method in class de.mlo.dev.validation.ValidationInfo
Creates a new ValidationInfo which indicates that the validation process was successful: ValidationInfo.isValid() returns true.
The message will be null in this case.
valid(String) - Static method in class de.mlo.dev.validation.ValidationInfo
Creates a new ValidationInfo which indicates that the validation process was successful: ValidationInfo.isValid() returns true.
validate() - Method in interface de.mlo.dev.validation.ValidationStatement
Wraps the result of ValidationStatement.execute() in a ValidationResult Has to execute one or more parts of the validation process.
validate() - Method in interface de.mlo.dev.validation.ValidationSummarizer
Has to execute one or more parts of the validation process.
validate() - Method in class de.mlo.dev.validation.Validator
This will start the validation process.
validate(List<ValidationSummarizer>) - Method in interface de.mlo.dev.validation.ValidationRunner
Has to execute the given instructions and 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 instructions ValidationRunners.VALIDATE_STOP_ON_FIRST_FAIL - Executes the instructions and stops if one instruction failed
VALIDATE_ALL - Static variable in class de.mlo.dev.validation.ValidationRunners
Executes all added ValidationStatements in the order they have been added.
VALIDATE_STOP_ON_FIRST_FAIL - Static variable in class de.mlo.dev.validation.ValidationRunners
Executes the given ValidationStatements in the order they have been added until the first ValidationStatement fail.
validateStopOnFirstFail() - Method in class de.mlo.dev.validation.Validator
Shortcut for
ValidationInfo - Class in de.mlo.dev.validation
The ValidationInfo contains a single result of a validation process.
ValidationInfo(boolean, String) - Constructor for class de.mlo.dev.validation.ValidationInfo
Creates a new ValidationInfo.
ValidationResult - Class in de.mlo.dev.validation
 
ValidationResult() - Constructor for class de.mlo.dev.validation.ValidationResult
 
ValidationRunner - Interface in de.mlo.dev.validation
 
ValidationRunners - Class in de.mlo.dev.validation
 
ValidationStatement - Interface in de.mlo.dev.validation
A ValidationStatement is the smallest part of a validation Process.
ValidationSummarizer - Interface in de.mlo.dev.validation
 
Validator - Class in de.mlo.dev.validation
The Validator helps to group, chain and execute ValidationStatements.
Validator() - Constructor for class de.mlo.dev.validation.Validator
 
A C D E G I L S V 
All Classes All Packages