Package com.helger.schematron
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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static File
getIntermediateFinalXSLTFolder()
static File
getIntermediateMinifiedSCHFolder()
static boolean
isSaveIntermediateXSLTFiles()
static boolean
isShowCreatedSVRL()
static boolean
isShowCreatedXSLT()
static boolean
isShowPreprocessedSchematron()
static boolean
isShowResolvedSourceSchematron()
static void
setDebugMode(boolean bDebugMode)
Globally enable/disable debug modestatic void
setIntermediateFinalXSLTFolder(File aIntermediateFinalXSLTFolder)
Set the folder to which the intermediate minified SCH files should be save to.static void
setIntermediateMinifiedSCHFolder(File aIntermediateMinifiedSCHFolder)
Set the folder to which the intermediate minified SCH files should be save tostatic void
setSaveIntermediateXSLTFiles(boolean bSaveIntermediateFiles)
Enable/disable the saving of intermediate XSLT filesstatic void
setShowCreatedSVRL(boolean bShow)
Log the created SVRL results or notstatic void
setShowCreatedXSLT(boolean bShow)
Log the created XSLT files or notstatic void
setShowPreprocessedSchematron(boolean bShow)
Log the complete created preprocessed Schematronstatic void
setShowResolvedSourceSchematron(boolean bShow)
Log the created Schematron with the includes resolved
-
-
-
Method Detail
-
setDebugMode
public static void setDebugMode(boolean bDebugMode)
Globally enable/disable debug mode- Parameters:
bDebugMode
-true
to enable debug mode,false
otherwise.- See Also:
setSaveIntermediateXSLTFiles(boolean)
,setShowCreatedXSLT(boolean)
,setShowCreatedSVRL(boolean)
,setShowResolvedSourceSchematron(boolean)
,setShowPreprocessedSchematron(boolean)
-
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 ifisSaveIntermediateXSLTFiles()
istrue
.
-
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 benull
.
-
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 ifisSaveIntermediateXSLTFiles()
istrue
.
-
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 benull
.
-
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
-
-