Interface ISchematronXSLTBasedResource

All Superinterfaces:
com.helger.commons.id.IHasID<String>, ISchematronResource
All Known Implementing Classes:
AbstractSchematronXSLTBasedResource

public interface ISchematronXSLTBasedResource extends ISchematronResource
Special Schematron resource for XSLT based implementations.
Since:
5.0.2
Author:
Philip Helger
  • Method Details

    • getErrorListener

      @Nullable ErrorListener 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

      @Nullable URIResolver getURIResolver()
      Returns:
      The URIResolver to be used for reading the Schematron. May be null.
    • setURIResolver

      @Nonnull ISchematronXSLTBasedResource setURIResolver(@Nullable URIResolver aCustomURIResolver)
      Set the URIResolver to be used for reading Schematron.
      Parameters:
      aCustomURIResolver - The URIResolver to use. May be null,
      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 for parameters ().put ("allow-foreign", bAllow ? "true" : "false");
      Parameters:
      bAllow - true to allow foreign elements, false to disallow them.
    • setEntityResolver

      @Nonnull ISchematronXSLTBasedResource setEntityResolver(@Nullable EntityResolver aEntityResolver)
      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 be null.
      Returns:
      this for chaining
      See Also:
    • getOutputValidityDeterminator

      @Nonnull ISchematronOutputValidityDeterminator getOutputValidityDeterminator()
      Note: The method was renamed in v8 from getXSLTValidator.
      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 from setXSLTValidator.
      Parameters:
      aValidityDeterminator - Validity determinator instance to use. May not be null.
      Returns:
      this for chaining
    • isValidateSVRL

      boolean isValidateSVRL()
      Returns:
      true if the created SVRL should be validated or not. Defaults to true.
      Since:
      6.3.3
    • setValidateSVRL

      @Nonnull ISchematronXSLTBasedResource setValidateSVRL(boolean bValidateSVRL)
      Enable or disable the validation of the created SVRL.
      Parameters:
      bValidateSVRL - true to enable XSD validation, false to disable it.
      Returns:
      this for chaining
      Since:
      6.3.3