Interface SchemaViolationHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void handle​(java.util.Collection<uk.gov.nationalarchives.csv.validator.api.java.FailMessage> failures, AdaptrisMessage msg)
      Handle any schema violations.
      default java.lang.String toString​(java.util.Collection<uk.gov.nationalarchives.csv.validator.api.java.FailMessage> failures)
      Return a string representation of the failures.
    • Method Detail

      • handle

        void handle​(java.util.Collection<uk.gov.nationalarchives.csv.validator.api.java.FailMessage> failures,
                    AdaptrisMessage msg)
             throws InterlokException
        Handle any schema violations.
        Parameters:
        failures - the failures representing the violations, non-null.
        msg - the adaptris message
        Throws:
        InterlokException
      • toString

        default java.lang.String toString​(java.util.Collection<uk.gov.nationalarchives.csv.validator.api.java.FailMessage> failures)
        Return a string representation of the failures.
        Parameters:
        failures - the failures representing the violations, non-null.
        Returns:
        the string representation
        Implementation Note:
        The default implementation is return a new line separated list of the failures in the form '[line][column]:message'