Interface WebappSchematronPhaseChooser


@API(type=EXTENDABLE, src=PUBLIC) public interface WebappSchematronPhaseChooser
Interface that is asked to provide the schematron phase to use.
Since:
22
  • Method Summary

    Modifier and Type
    Method
    Description
    choosePhase(String schematronSystemId)
    Chooses the Schematron phase to use for a specific schematron.
  • Method Details

    • choosePhase

      String choosePhase(String schematronSystemId)
      Chooses the Schematron phase to use for a specific schematron. In order to obtain the available phases in that Schematron file, one can use WebappDocumentValidator.getSchematronPhases(String). Note that a call to this method needs to parse the file. Caching the phases is recommended.
      Parameters:
      schematronSystemId - The system ID of the Schematron file.
      Returns:
      The chosen phase.