Package com.helger.schematron.sch
Class TransformerCustomizerSCH
java.lang.Object
com.helger.schematron.sch.TransformerCustomizerSCH
A wrapper for easier customization of the SCH to XSLT transformation.
- Author:
- Philip Helger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan the results of the XSLT transformation be cached?voidcustomize(EStepSCH eStep, Transformer aTransformer) voidcustomize(TransformerFactory aTransformerFactory) com.helger.commons.collection.impl.ICommonsOrderedMap<String,?> getPhase()booleanbooleansetErrorListener(ErrorListener aCustomErrorListener) setForceCacheResult(boolean bForceCacheResult) Force the caching of results.setLanguageCode(String sLanguageCode) setParameters(Map<String, ?> aCustomParameters) setURIResolver(URIResolver aCustomURIResolver)
-
Field Details
-
DEFAULT_FORCE_CACHE_RESULT
public static final boolean DEFAULT_FORCE_CACHE_RESULT- See Also:
-
-
Constructor Details
-
TransformerCustomizerSCH
public TransformerCustomizerSCH()
-
-
Method Details
-
getErrorListener
-
setErrorListener
@Nonnull public TransformerCustomizerSCH setErrorListener(@Nullable ErrorListener aCustomErrorListener) -
getURIResolver
-
setURIResolver
-
hasParameters
public boolean hasParameters() -
getParameters
-
setParameters
-
getPhase
-
setPhase
-
getLanguageCode
-
setLanguageCode
-
isForceCacheResult
public boolean isForceCacheResult()- Returns:
trueif internal caching of the result should be forced,falseif not. The default isDEFAULT_FORCE_CACHE_RESULT.- Since:
- 5.2.1
-
setForceCacheResult
Force the caching of results.- Parameters:
bForceCacheResult-trueto force result caching,falseto cache only if no parameters are present.- Returns:
- this for chaining
- Since:
- 5.2.1
-
canCacheResult
public boolean canCacheResult()Can the results of the XSLT transformation be cached? By default results cannot be cached if custom parameters are present, but since v.5.2.1 this can be manually overridden.- Returns:
trueif the result can be cached,falseif not.- See Also:
-
customize
-
customize
-