Class SchematronResourceXSLTCache

java.lang.Object
com.helger.schematron.xslt.SchematronResourceXSLTCache

@ThreadSafe public final class SchematronResourceXSLTCache extends Object
Factory for creating SchematronProviderXSLTPrebuild objects.
Author:
Philip Helger
  • Method Details

    • createSchematronXSLTProvider

      @Nullable public static SchematronProviderXSLTPrebuild createSchematronXSLTProvider(@Nonnull com.helger.commons.io.resource.IReadableResource aXSLTResource, @Nullable ErrorListener aCustomErrorListener, @Nullable URIResolver aCustomURIResolver)
    • getSchematronXSLTProvider

      @Nullable public static SchematronProviderXSLTPrebuild getSchematronXSLTProvider(@Nonnull com.helger.commons.io.resource.IReadableResource aXSLTResource, @Nullable ErrorListener aCustomErrorListener, @Nullable URIResolver aCustomURIResolver)
      Return an existing or create a new Schematron XSLT provider for the passed resource.
      Parameters:
      aXSLTResource - The resource of the Schematron rules. May not be null.
      aCustomErrorListener - The custom error listener to be used. May be null.
      aCustomURIResolver - The custom URI resolver to be used. May be null.
      Returns:
      null if the passed Schematron XSLT resource does not exist.
    • clearCache

      public static void clearCache()
      Clear the internal cache.
      Since:
      5.6.5