Interface WebappDocumentValidator


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

      • SCHEMATRON_IMPOSED_PHASE_ATTR_NAME

        static final java.lang.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:
        Constant Field Values
    • Method Detail

      • getValidationTask

        java.util.concurrent.Callable<java.util.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

        java.util.List<DPILocation> getDPILocations​(java.util.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

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

        java.util.List<java.lang.String> getSchematronPhases​(java.lang.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