Class SchematronDebug

java.lang.Object
com.helger.schematron.SchematronDebug

@ThreadSafe public final class SchematronDebug extends Object
Global Schematron debug settings etc.
Since:
4.3.4
Author:
Philip Helger
  • Field Details

  • Method Details

    • setDebugMode

      public static void setDebugMode(boolean bDebugMode)
      Globally enable/disable debug mode
      Parameters:
      bDebugMode - true to enable debug mode, false otherwise.
      See Also:
    • inDebugMode

      public static void inDebugMode(@Nonnull Runnable aRun)
    • isSaveIntermediateXSLTFiles

      public static boolean isSaveIntermediateXSLTFiles()
      Returns:
      true if the intermediate files during XSLT creation. Applied only in XSTL based modes.
    • setSaveIntermediateXSLTFiles

      public static void setSaveIntermediateXSLTFiles(boolean bSaveIntermediateFiles)
      Enable/disable the saving of intermediate XSLT files
      Parameters:
      bSaveIntermediateFiles - true to save them, false to disable it.
      See Also:
    • getIntermediateMinifiedSCHFolder

      @Nonnull public static File getIntermediateMinifiedSCHFolder()
      Returns:
      The folder to which the minified SCH should be stored. Never null. Only used in XSLT based modes if isSaveIntermediateXSLTFiles() is true.
    • setIntermediateMinifiedSCHFolder

      public static void setIntermediateMinifiedSCHFolder(@Nonnull File aIntermediateMinifiedSCHFolder)
      Set the folder to which the intermediate minified SCH files should be save to
      Parameters:
      aIntermediateMinifiedSCHFolder - The folder to save to. May not be null.
    • getIntermediateFinalXSLTFolder

      @Nonnull public static File getIntermediateFinalXSLTFolder()
      Returns:
      The folder to which the final XSLT should be stored. Never null. Only used in XSLT based modes if isSaveIntermediateXSLTFiles() is true.
    • setIntermediateFinalXSLTFolder

      public static void setIntermediateFinalXSLTFolder(@Nonnull File aIntermediateFinalXSLTFolder)
      Set the folder to which the intermediate minified SCH files should be save to.
      Parameters:
      aIntermediateFinalXSLTFolder - The folder to save to. May not be null.
    • isShowCreatedXSLT

      public static boolean isShowCreatedXSLT()
      Returns:
      true if the created XSLT should be logged. Only applied in XSLT based mode.
    • setShowCreatedXSLT

      public static void setShowCreatedXSLT(boolean bShow)
      Log the created XSLT files or not
      Parameters:
      bShow - true to enable logging, false to disable it.
      See Also:
    • isShowCreatedSVRL

      public static boolean isShowCreatedSVRL()
      Returns:
      true to log the created SVRL.
    • setShowCreatedSVRL

      public static void setShowCreatedSVRL(boolean bShow)
      Log the created SVRL results or not
      Parameters:
      bShow - true to enable logging, false to disable it.
      See Also:
    • isShowResolvedSourceSchematron

      public static boolean isShowResolvedSourceSchematron()
      Returns:
      true to log the read, with includes resolved, Schematron. This is only applied in pure mode.
    • setShowResolvedSourceSchematron

      public static void setShowResolvedSourceSchematron(boolean bShow)
      Log the created Schematron with the includes resolved
      Parameters:
      bShow - true to enable logging, false to disable it.
      See Also:
    • isShowPreprocessedSchematron

      public static boolean isShowPreprocessedSchematron()
      Returns:
      true to log the created preprocessed Schematron. This is only applied in pure mode.
    • setShowPreprocessedSchematron

      public static void setShowPreprocessedSchematron(boolean bShow)
      Log the complete created preprocessed Schematron
      Parameters:
      bShow - true to enable logging, false to disable it.
      See Also:
    • isDebugLog

      public static boolean isDebugLog()
      Returns:
      true if debug logging is enabled.
      Since:
      v8
      See Also:
    • setDebugLog

      public static void setDebugLog(boolean b)
      Enable or disable debug logging.
      Parameters:
      b - true to enable it, false to disable it.
      Since:
      v8
      See Also:
    • getDebugLogger

      @Nonnull public static com.helger.commons.log.IConditionalLogger getDebugLogger()
      Returns:
      The debug aware logger to use. Never null.
      Since:
      v8
      See Also: