Class ObjectValidationResults
- java.lang.Object
-
- org.fcrepo.migration.validator.api.ObjectValidationResults
-
public class ObjectValidationResults extends Object
A data class that defines all object level validation details available to report generators.- Since:
- 2020-12-17
- Author:
- dbernstein, awoods
-
-
Constructor Summary
Constructors Constructor Description ObjectValidationResults(List<ValidationResult> results)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ValidationResult>getErrors()This method returns all results with a FAIL validation status.StringgetObjectId()This method returns the ID of the object about which the report appliesList<ValidationResult>getPassed()Return all results with an OK validation statusList<ValidationResult>getResults()booleanhasErrors()This method indicates if the result set has any errors
-
-
-
Constructor Detail
-
ObjectValidationResults
public ObjectValidationResults(List<ValidationResult> results)
Constructor- Parameters:
results- for the object which is the subject of this report
-
-
Method Detail
-
getObjectId
public String getObjectId()
This method returns the ID of the object about which the report applies- Returns:
- the object-id
-
hasErrors
public boolean hasErrors()
This method indicates if the result set has any errors- Returns:
- true if there are validation errors
-
getResults
public List<ValidationResult> getResults()
- Returns:
- all ValidationResults
-
getPassed
public List<ValidationResult> getPassed()
Return all results with an OK validation status- Returns:
- list of all passed validations
-
getErrors
public List<ValidationResult> getErrors()
This method returns all results with a FAIL validation status.- Returns:
- list of validation errors or empty list if no errors
-
-