Class SchematronDebug


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

      • 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:
        to trigger all debug options at once
      • 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:
        to trigger all debug options at once
      • 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:
        to trigger all debug options at once
      • 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:
        to trigger all debug options at once
      • 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:
        to trigger all debug options at once