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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String choosePhase​(java.lang.String schematronSystemId)
      Chooses the Schematron phase to use for a specific schematron.
    • Method Detail

      • choosePhase

        java.lang.String choosePhase​(java.lang.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.