Class 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 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
      • 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