@ThreadSafe public final class SchematronResourceSCHCache extends Object
ISchematronXSLTProvider objects.| Modifier and Type | Method and Description |
|---|---|
static ISchematronXSLTProvider |
createSchematronXSLTProvider(com.phloc.commons.io.IReadableResource aSchematronResource,
ErrorListener aCustomErrorListener,
URIResolver aCustomURIResolver)
Deprecated.
|
static ISchematronXSLTProvider |
createSchematronXSLTProvider(com.phloc.commons.io.IReadableResource aSchematronResource,
ErrorListener aCustomErrorListener,
URIResolver aCustomURIResolver,
String sPhase,
String sLanguageCode)
Create a new Schematron validator for the passed resource.
|
static ISchematronXSLTProvider |
getSchematronXSLTProvider(com.phloc.commons.io.IReadableResource aSchematronResource,
ErrorListener aCustomErrorListener,
URIResolver aCustomURIResolver,
String sPhase,
String sLanguageCode)
Get the Schematron validator for the passed resource using a cache.
|
@Nullable @Deprecated @DevelopersNote(value="For binary compatibility to schematron2xslt-maven-plugin 2.5.0") public static ISchematronXSLTProvider createSchematronXSLTProvider(@Nonnull com.phloc.commons.io.IReadableResource aSchematronResource, @Nullable ErrorListener aCustomErrorListener, @Nullable URIResolver aCustomURIResolver)
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.null if the passed Schematron resource does not exist
or is invalid.@Nullable public static ISchematronXSLTProvider createSchematronXSLTProvider(@Nonnull com.phloc.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 ISchematronXSLTProvider getSchematronXSLTProvider(@Nonnull com.phloc.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 © 2006–2014 phloc systems. All rights reserved.