Package org.ametys.runtime.parameter
Class ValidationResults
java.lang.Object
org.ametys.runtime.parameter.ValidationResults
Object for storing validation results.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResult(String dataPath, ValidationResult result) Add a validation result.voidaddResults(ValidationResults results) Add validation results.Retrieves the errors.Retrieves the information.Retrieves the warnings.Retrieves the results.booleanTest if there is at least one error.booleanhasInfos()Test if there is at least one info.booleanTest if there is at least one warning.toString()
-
Constructor Details
-
ValidationResults
public ValidationResults()
-
-
Method Details
-
hasInfos
Test if there is at least one info.- Returns:
trueif there is at least one info,falseotherwise.
-
getAllInfos
Retrieves the information.- Returns:
- the information.
-
hasWarnings
Test if there is at least one warning.- Returns:
trueif there is at least one warning,falseotherwise.
-
getAllWarnings
Retrieves the warnings.- Returns:
- the warnings.
-
hasErrors
Test if there is at least one error.- Returns:
trueif there is at least one error,falseotherwise.
-
getAllErrors
Retrieves the errors.- Returns:
- the errors.
-
getResults
Retrieves the results.- Returns:
- the results.
-
addResult
Add a validation result.- Parameters:
dataPath- the data path ornullif global to the content.result- the result to add
-
addResults
Add validation results.- Parameters:
results- the results to add
-
toString
-