@ThreadSafe public final class SchematronResourceSCHCache extends Object
ISchematronXSLTProvider objects.| Modifier and Type | Method and Description |
|---|---|
static com.helger.schematron.xslt.SchematronProviderXSLTFromSCH |
createSchematronXSLTProvider(com.helger.commons.io.IReadableResource aSchematronResource,
ErrorListener aCustomErrorListener,
URIResolver aCustomURIResolver,
String sPhase,
String sLanguageCode)
Create a new Schematron validator for the passed resource.
|
static com.helger.schematron.xslt.SchematronProviderXSLTFromSCH |
getSchematronXSLTProvider(com.helger.commons.io.IReadableResource aSchematronResource,
ErrorListener aCustomErrorListener,
URIResolver aCustomURIResolver,
String sPhase,
String sLanguageCode)
Get the Schematron validator for the passed resource using a cache.
|
@Nullable public static com.helger.schematron.xslt.SchematronProviderXSLTFromSCH createSchematronXSLTProvider(@Nonnull com.helger.commons.io.IReadableResource aSchematronResource, @Nullable ErrorListener aCustomErrorListener, @Nullable URIResolver aCustomURIResolver, @Nullable String sPhase, @Nullable String sLanguageCode)
aSchematronResource - The resource of the Schematron rules. May not be null.aCustomErrorListener - An optional custom XSLT error listener that is used when converting
the Schematron resource to an XSLT document. May be
null.aCustomURIResolver - An optional custom XSLT URI resolver that is used when converting
the Schematron resource to an XSLT document. May be
null.sPhase - Optional phase to use. If not specified, the defaultPhase from the
schema is used. If no default phase is specified, than all patterns
are usedsLanguageCode - An optional language code for the error messages. null
means English. Supported language codes are: cs, de, en, fr, nl (see
directory files schematron\20100414-xslt2\sch-messages-??.xhtml).null if the passed Schematron resource does not exist
or is invalid.@Nullable public static com.helger.schematron.xslt.SchematronProviderXSLTFromSCH getSchematronXSLTProvider(@Nonnull com.helger.commons.io.IReadableResource aSchematronResource, @Nullable ErrorListener aCustomErrorListener, @Nullable URIResolver aCustomURIResolver, @Nullable String sPhase, @Nullable String sLanguageCode)
aSchematronResource - The resource of the Schematron rules. May not be null.aCustomErrorListener - An optional custom XSLT error listener that is used when converting
the Schematron resource to an XSLT document. May be
null.aCustomURIResolver - An optional custom XSLT URI resolver that is used when converting
the Schematron resource to an XSLT document. May be
null.sPhase - Optional phase to use. If not specified, the defaultPhase from the
schema is used. If no default phase is specified, than all patterns
are usedsLanguageCode - An optional language code for the error messages. null
means English. Supported language codes are: cs, de, en, fr, nl (see
directory files schematron\20100414-xslt2\sch-messages-??.xhtml).null if the passed Schematron resource does not exist
or is invalid.Copyright © 2014–2015 Philip Helger. All rights reserved.