Interface WebappDocumentValidator


@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface WebappDocumentValidator
  • Field Details

    • SCHEMATRON_IMPOSED_PHASE_ATTR_NAME

      static final String SCHEMATRON_IMPOSED_PHASE_ATTR_NAME
      Editing session context attribute name. Its value would be used to impose a phase with that name in any Schematron file used for validation.
      Since:
      22
      See Also:
  • Method Details

    • getValidationTask

      Callable<List<DocumentPositionedInfo>> getValidationTask()
      A task that tries to validate the document according to its schema and returns the list of found errors.
      Returns:
      The validation task for the current document.
    • getDPILocations

      List<DPILocation> getDPILocations(List<DocumentPositionedInfo> dpInfo)
      Compute for the given list of document position info the content offsets.
      Parameters:
      dpInfo - The list of document position info.
      Returns:
      The corresponding list of DPI location info.
    • getValidationScenarios

      List<ro.sync.exml.editor.scenario.BaseScenario> getValidationScenarios()
      Get validation scenarios associated with the document.
      Returns:
      Validation scenarios associated with the document.
    • getSchematronPhases

      List<String> getSchematronPhases(String systemId)
      Get the phases defined in a Schematron file.
      Parameters:
      systemId - The system ID of the Schematron file.
      Returns:
      The list of phases.
      Since:
      22
    • setSchematronPhaseChooser

      void setSchematronPhaseChooser(WebappSchematronPhaseChooser phaseChooser)
      Sets a phase chooser which will be asked each time a Schematron validation that does not specify a phase is run.
      Parameters:
      phaseChooser - The phase chooser.
      Since:
      22