eu.peppol.validation.commons.schematron.xslt
Class SchematronResourceSCHCache

java.lang.Object
  extended by eu.peppol.validation.commons.schematron.xslt.SchematronResourceSCHCache

public final class SchematronResourceSCHCache
extends Object

Factory for creating ISchematronXSLTProvider objects.

Author:
PEPPOL.AT, BRZ, Philip Helger

Method Summary
static ISchematronXSLTProvider createSchematronXSLTProvider(com.phloc.commons.io.IReadableResource aSchematronResource, ErrorListener aCustomErrorListener, URIResolver aCustomURIResolver)
           
static ISchematronXSLTProvider getSchematronXSLTProvider(com.phloc.commons.io.IReadableResource aSchematronResource, ErrorListener aCustomErrorListener, URIResolver aCustomURIResolver)
          Create a new Schematron validator for the passed resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createSchematronXSLTProvider

@Nullable
public static ISchematronXSLTProvider createSchematronXSLTProvider(@Nonnull
                                                                            com.phloc.commons.io.IReadableResource aSchematronResource,
                                                                            @Nullable
                                                                            ErrorListener aCustomErrorListener,
                                                                            @Nullable
                                                                            URIResolver aCustomURIResolver)

getSchematronXSLTProvider

@Nullable
public static ISchematronXSLTProvider getSchematronXSLTProvider(@Nonnull
                                                                         com.phloc.commons.io.IReadableResource aSchematronResource,
                                                                         @Nullable
                                                                         ErrorListener aCustomErrorListener,
                                                                         @Nullable
                                                                         URIResolver aCustomURIResolver)
Create a new Schematron validator for the passed resource.

Parameters:
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.
Returns:
null if the passed Schematron resource does not exist.


Copyright © 2011 PEPPOL project. All Rights Reserved.