Class Validation

java.lang.Object
com.deltaxml.docbook.config.Validation

public class Validation extends Object
Contains parameters that control input validation and reporting.
  • Constructor Details

    • Validation

      public Validation()
      Create a new Validation instance. Contains parameters that control input validation and reporting.
    • Validation

      public Validation(boolean validateInputs)
      Create a new Validation instance, setting whether to validate input documents. Contains parameters that control input validation and reporting.
      Parameters:
      validateInputs - setting whether to validate input documents.
    • Validation

      public Validation(WarningReportMode warningReportMode)
      Create a new Validation instance, setting the mode to use for reporting recoverable errors and warnings. Contains parameters that control input validation and reporting.
      Parameters:
      warningReportMode - the mode to use for reporting recoverable errors and warnings.
  • Method Details

    • isValidateInputs

      public boolean isValidateInputs()
      Gets whether input files should be validated against the DocBook schema.
      Returns:
      whether inputs should be validated
    • setValidateInputs

      public void setValidateInputs(boolean value)

      Sets whether to validate input documents.

      If set to true and the inputs include a DOCTYPE, they will be validated against it. If they are not valid, the compare method will throw an InputLoadException.

      Default: true

      Parameters:
      value - whether to validate inputs
    • getWarningReportMode

      public WarningReportMode getWarningReportMode()
      Gets the value of the warningReportMode parameter.
      Returns:
      current value of the warning report mode parameter
    • setWarningReportMode

      public void setWarningReportMode(WarningReportMode value)

      Sets the mode to use for reporting recoverable errors and warnings.

      Default: WarningReportMode.PROCESSING_INSTRUCTIONS

      Parameters:
      value - new value to use for the warning report mode parameter
      Throws:
      IllegalArgumentException - if the value is null
      See Also: