Package com.helger.schematron
Class SchematronDebug
java.lang.Object
com.helger.schematron.SchematronDebug
Global Schematron debug settings etc.
- Since:
- 4.3.4
- Author:
- Philip Helger
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic com.helger.commons.log.IConditionalLoggerstatic Filestatic Filestatic voidinDebugMode(Runnable aRun) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic voidsetDebugLog(boolean b) Enable or disable debug logging.static voidsetDebugMode(boolean bDebugMode) Globally enable/disable debug modestatic voidsetIntermediateFinalXSLTFolder(File aIntermediateFinalXSLTFolder) Set the folder to which the intermediate minified SCH files should be save to.static voidsetIntermediateMinifiedSCHFolder(File aIntermediateMinifiedSCHFolder) Set the folder to which the intermediate minified SCH files should be save tostatic voidsetSaveIntermediateXSLTFiles(boolean bSaveIntermediateFiles) Enable/disable the saving of intermediate XSLT filesstatic voidsetShowCreatedSVRL(boolean bShow) Log the created SVRL results or notstatic voidsetShowCreatedXSLT(boolean bShow) Log the created XSLT files or notstatic voidsetShowPreprocessedSchematron(boolean bShow) Log the complete created preprocessed Schematronstatic voidsetShowResolvedSourceSchematron(boolean bShow) Log the created Schematron with the includes resolved
-
Field Details
-
DEFAULT_DEBUG
public static final boolean DEFAULT_DEBUG- See Also:
-
-
Method Details
-
setDebugMode
public static void setDebugMode(boolean bDebugMode) Globally enable/disable debug mode- Parameters:
bDebugMode-trueto enable debug mode,falseotherwise.- See Also:
-
inDebugMode
-
isSaveIntermediateXSLTFiles
public static boolean isSaveIntermediateXSLTFiles()- Returns:
trueif 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-trueto save them,falseto disable it.- See Also:
-
getIntermediateMinifiedSCHFolder
- Returns:
- The folder to which the minified SCH should be stored. Never
null. Only used in XSLT based modes ifisSaveIntermediateXSLTFiles()istrue.
-
setIntermediateMinifiedSCHFolder
Set the folder to which the intermediate minified SCH files should be save to- Parameters:
aIntermediateMinifiedSCHFolder- The folder to save to. May not benull.
-
getIntermediateFinalXSLTFolder
- Returns:
- The folder to which the final XSLT should be stored. Never
null. Only used in XSLT based modes ifisSaveIntermediateXSLTFiles()istrue.
-
setIntermediateFinalXSLTFolder
Set the folder to which the intermediate minified SCH files should be save to.- Parameters:
aIntermediateFinalXSLTFolder- The folder to save to. May not benull.
-
isShowCreatedXSLT
public static boolean isShowCreatedXSLT()- Returns:
trueif 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-trueto enable logging,falseto disable it.- See Also:
-
isShowCreatedSVRL
public static boolean isShowCreatedSVRL()- Returns:
trueto log the created SVRL.
-
setShowCreatedSVRL
public static void setShowCreatedSVRL(boolean bShow) Log the created SVRL results or not- Parameters:
bShow-trueto enable logging,falseto disable it.- See Also:
-
isShowResolvedSourceSchematron
public static boolean isShowResolvedSourceSchematron()- Returns:
trueto 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-trueto enable logging,falseto disable it.- See Also:
-
isShowPreprocessedSchematron
public static boolean isShowPreprocessedSchematron()- Returns:
trueto 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-trueto enable logging,falseto disable it.- See Also:
-
isDebugLog
public static boolean isDebugLog()- Returns:
trueif debug logging is enabled.- Since:
- v8
- See Also:
-
setDebugLog
public static void setDebugLog(boolean b) Enable or disable debug logging.- Parameters:
b-trueto enable it,falseto disable it.- Since:
- v8
- See Also:
-
getDebugLogger
- Returns:
- The debug aware logger to use. Never
null. - Since:
- v8
- See Also:
-