@NotThreadSafe public class SchematronResourceSCH extends AbstractSchematronXSLTBasedResource<SchematronResourceSCH>
m_aCustomErrorListener, m_aCustomParameters, m_aCustomURIResolver
Constructor and Description |
---|
SchematronResourceSCH(com.helger.commons.io.resource.IReadableResource aSCHResource)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected SCHTransformerCustomizer |
createTransformerCustomizer() |
static SchematronResourceSCH |
fromClassPath(String sSCHPath)
Create a new Schematron resource.
|
static SchematronResourceSCH |
fromFile(File aSCHFile)
Create a new Schematron resource.
|
static SchematronResourceSCH |
fromFile(String sSCHPath)
Create a new Schematron resource.
|
String |
getLanguageCode() |
String |
getPhase() |
ISchematronXSLTBasedProvider |
getXSLTProvider() |
boolean |
isUseCache() |
void |
setLanguageCode(String sLanguageCode) |
void |
setPhase(String sPhase) |
void |
setUseCache(boolean bUseCache) |
applySchematronValidation, applySchematronValidation, applySchematronValidation, applySchematronValidationToSVRL, applySchematronValidationToSVRL, applySchematronValidationToSVRL, getErrorListener, getParameters, getSchematronValidity, getSchematronValidity, getURIResolver, getXSLTValidator, hasParameters, isValidSchematron, setErrorListener, setParameters, setURIResolver, setXSLTValidator, toString
getID, getResource
public SchematronResourceSCH(@Nonnull com.helger.commons.io.resource.IReadableResource aSCHResource)
aSCHResource
- The Schematron resource. May not be null
.public boolean isUseCache()
public void setUseCache(boolean bUseCache)
@Nonnull @OverrideOnDemand protected SCHTransformerCustomizer createTransformerCustomizer()
@Nullable public ISchematronXSLTBasedProvider getXSLTProvider()
getXSLTProvider
in class AbstractSchematronXSLTBasedResource<SchematronResourceSCH>
null
.@Nonnull public static SchematronResourceSCH fromClassPath(@Nonnull @Nonempty String sSCHPath)
sSCHPath
- The classpath relative path to the Schematron file. May neither be
null
nor empty.null
.@Nonnull public static SchematronResourceSCH fromFile(@Nonnull @Nonempty String sSCHPath)
sSCHPath
- The file system path to the Schematron file. May neither be
null
nor empty.null
.@Nonnull public static SchematronResourceSCH fromFile(@Nonnull File aSCHFile)
aSCHFile
- The Schematron file. May not be null
.null
.Copyright © 2014–2016 Philip Helger. All rights reserved.