Package com.helger.schematron.api.xslt
Interface ISchematronXSLTBasedResource
- All Superinterfaces:
com.helger.commons.id.IHasID<String>,ISchematronResource
- All Known Implementing Classes:
AbstractSchematronXSLTBasedResource
Special Schematron resource for XSLT based implementations.
- Since:
- 5.0.2
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionNote: The method was renamed in v8 fromgetXSLTValidator.booleandefault voidsetAllowForeignElements(boolean bAllow) Enable or disable the warning on contained elements from a different namespace.setEntityResolver(EntityResolver aEntityResolver) Set the XML entity resolver to be used when reading the Schematron or the XML to be validated.setErrorListener(ErrorListener aCustomErrorListener) setOutputValidityDeterminator(ISchematronOutputValidityDeterminator aValidityDeterminator) Set the Schematron output validator to be used.
Note: The method was renamed in v8 fromsetXSLTValidator.setURIResolver(URIResolver aCustomURIResolver) Set theURIResolverto be used for reading Schematron.setValidateSVRL(boolean bValidateSVRL) Enable or disable the validation of the created SVRL.Methods inherited from interface com.helger.commons.id.IHasID
getIDMethods inherited from interface com.helger.schematron.ISchematronResource
applySchematronValidation, applySchematronValidation, applySchematronValidation, applySchematronValidationToSVRL, applySchematronValidationToSVRL, applySchematronValidationToSVRL, getEntityResolver, getResource, getSchematronValidity, getSchematronValidity, getSchematronValidity, isLenient, isUseCache, isValidSchematron, setLenient, setUseCache
-
Method Details
-
getErrorListener
- Returns:
- The error listener to be used. May be
null.
-
setErrorListener
@Nonnull ISchematronXSLTBasedResource setErrorListener(@Nullable ErrorListener aCustomErrorListener) - Parameters:
aCustomErrorListener- Error listener to use.- Returns:
- this for chaining
-
getURIResolver
- Returns:
- The
URIResolverto be used for reading the Schematron. May benull.
-
setURIResolver
Set theURIResolverto be used for reading Schematron.- Parameters:
aCustomURIResolver- TheURIResolverto use. May benull,- Returns:
- this for chaining
-
parameters
@Nonnull @ReturnsMutableObject com.helger.commons.collection.impl.ICommonsOrderedMap<String,Object> parameters()- Returns:
- A mutable (=writable) copy of the parameters map. Never
null.
-
setAllowForeignElements
default void setAllowForeignElements(boolean bAllow) Enable or disable the warning on contained elements from a different namespace. See #61. It is a shortcut forparameters ().put ("allow-foreign", bAllow ? "true" : "false");- Parameters:
bAllow-trueto allow foreign elements,falseto disallow them.
-
setEntityResolver
Set the XML entity resolver to be used when reading the Schematron or the XML to be validated. This can only be set before the Schematron is bound. If it is already bound an exception is thrown to indicate the unnecessity of the call.- Parameters:
aEntityResolver- The entity resolver to set. May benull.- Returns:
- this for chaining
- See Also:
-
getOutputValidityDeterminator
Note: The method was renamed in v8 fromgetXSLTValidator.- Returns:
- The Schematron output validity determinator to be used. Never
null.
-
setOutputValidityDeterminator
@Nonnull ISchematronXSLTBasedResource setOutputValidityDeterminator(@Nonnull ISchematronOutputValidityDeterminator aValidityDeterminator) Set the Schematron output validator to be used.
Note: The method was renamed in v8 fromsetXSLTValidator.- Parameters:
aValidityDeterminator- Validity determinator instance to use. May not benull.- Returns:
- this for chaining
-
isValidateSVRL
boolean isValidateSVRL()- Returns:
trueif the created SVRL should be validated or not. Defaults totrue.- Since:
- 6.3.3
-
setValidateSVRL
Enable or disable the validation of the created SVRL.- Parameters:
bValidateSVRL-trueto enable XSD validation,falseto disable it.- Returns:
- this for chaining
- Since:
- 6.3.3
-