Class ValidateCsv

    • Constructor Detail

      • ValidateCsv

        public ValidateCsv()
    • Method Detail

      • withSchema

        public ValidateCsv withSchema​(java.lang.String s)
      • getSchemaFile

        public java.lang.String getSchemaFile()
        The schema.
      • setSchemaFile

        public void setSchemaFile​(java.lang.String schemaFile)
        The schema.
      • getViolationHandler

        public SchemaViolationHandler getViolationHandler()
        What to do when the CSV file is considered invalid.
      • setViolationHandler

        public void setViolationHandler​(SchemaViolationHandler violationHandler)
        What to do when the CSV file is considered invalid.
      • getFailFast

        public java.lang.Boolean getFailFast()
        Whether or not we fail immediately on the first error or report on all errors.

        Using failFast implies that you will fail on the first ErrorMessage, warnings will still be emitted but only up until the first error.

      • setFailFast

        public void setFailFast​(java.lang.Boolean failFast)
        Whether or not we fail immediately on the first error or report on all errors.

        Using failFast implies that you will fail on the first ErrorMessage, warnings will still be emitted but only up until the first error.

      • getCaseSensitive

        public java.lang.Boolean getCaseSensitive()
        Enable case sensitivity when performing external expression resolution.

        Useful if you are accessing external resources as part of your schema.

      • setCaseSensitive

        public void setCaseSensitive​(java.lang.Boolean caseSensitive)
        Enable case sensitivity when performing external expression resolution.

        Useful if you are accessing external resources as part of your schema.

      • getSubstitutions

        public KeyValuePairSet getSubstitutions()
        The Path substitutions to apply.

        Useful if you are accessing external resources as part of your schema. This ultimately resolves to a list of Substitution objects which is passed into the CsvValidator#validate() method. The 'key' is the from, with the 'value' being the to.

      • setSubstitutions

        public void setSubstitutions​(KeyValuePairSet substitutions)
        The Path substitutions to apply.

        Useful if you are accessing external resources as part of your schema. This ultimately resolves to a list of Substitution objects which is passed into the CsvValidator#validate() method. The 'key' is the from, with the 'value' being the to.