From 9773071b9826416b35898e1736dc9299fbff4980 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Thu, 27 Jul 2017 20:14:18 +0200 Subject: [PATCH] Added more comments --- .../helger/schematron/SchematronDebug.java | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/ph-schematron/src/main/java/com/helger/schematron/SchematronDebug.java b/ph-schematron/src/main/java/com/helger/schematron/SchematronDebug.java index c45c5d840..7a62dff79 100644 --- a/ph-schematron/src/main/java/com/helger/schematron/SchematronDebug.java +++ b/ph-schematron/src/main/java/com/helger/schematron/SchematronDebug.java @@ -37,16 +37,16 @@ private SchematronDebug () * @see #setSaveIntermediateXSLTFiles(boolean) * @see #setShowCreatedXSLT(boolean) * @see #setShowCreatedSVRL(boolean) - * @see #setShowPreprocessedSchematron(boolean) * @see #setShowResolvedSourceSchematron(boolean) + * @see #setShowPreprocessedSchematron(boolean) */ public static void setDebugMode (final boolean bDebugMode) { setSaveIntermediateXSLTFiles (bDebugMode); setShowCreatedXSLT (bDebugMode); setShowCreatedSVRL (bDebugMode); - setShowPreprocessedSchematron (bDebugMode); setShowResolvedSourceSchematron (bDebugMode); + setShowPreprocessedSchematron (bDebugMode); } /** @@ -117,30 +117,38 @@ public static void setShowCreatedSVRL (final boolean bShow) } /** - * @return true to show the created SVRL. + * @return true to log the created SVRL. */ public static boolean isShowCreatedSVRL () { return s_aShowCreatedSVRL.get (); } - public static void setShowPreprocessedSchematron (final boolean bShow) + public static void setShowResolvedSourceSchematron (final boolean bShow) { - s_aShowPreprocessedSchematron.set (bShow); + s_aShowResolvedSourceSchematron.set (bShow); } - public static boolean isShowPreprocessedSchematron () + /** + * @return true to log the read, with includes resolved, + * Schematron. This is only applied in pure mode. + */ + public static boolean isShowResolvedSourceSchematron () { - return s_aShowPreprocessedSchematron.get (); + return s_aShowResolvedSourceSchematron.get (); } - public static void setShowResolvedSourceSchematron (final boolean bShow) + public static void setShowPreprocessedSchematron (final boolean bShow) { - s_aShowResolvedSourceSchematron.set (bShow); + s_aShowPreprocessedSchematron.set (bShow); } - public static boolean isShowResolvedSourceSchematron () + /** + * @return true to log the created preprocessed Schematron. This + * is only applied in pure mode. + */ + public static boolean isShowPreprocessedSchematron () { - return s_aShowResolvedSourceSchematron.get (); + return s_aShowPreprocessedSchematron.get (); } }