Package org.ametys.runtime.parameter
Class ValidationResults
java.lang.Object
org.ametys.runtime.parameter.ValidationResults
Object for storing validation results.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addResult
(String dataPath, ValidationResult result) Add a validation result.void
addResults
(ValidationResults results) Add validation results.Retrieves the errors.Retrieves the information.Retrieves the warnings.Retrieves the results.boolean
Test if there is at least one error.boolean
hasInfos()
Test if there is at least one info.boolean
Test 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:
true
if there is at least one info,false
otherwise.
-
getAllInfos
Retrieves the information.- Returns:
- the information.
-
hasWarnings
Test if there is at least one warning.- Returns:
true
if there is at least one warning,false
otherwise.
-
getAllWarnings
Retrieves the warnings.- Returns:
- the warnings.
-
hasErrors
Test if there is at least one error.- Returns:
true
if there is at least one error,false
otherwise.
-
getAllErrors
Retrieves the errors.- Returns:
- the errors.
-
getResults
Retrieves the results.- Returns:
- the results.
-
addResult
Add a validation result.- Parameters:
dataPath
- the data path ornull
if global to the content.result
- the result to add
-
addResults
Add validation results.- Parameters:
results
- the results to add
-
toString
-