Interface WebappDocumentValidator
@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface WebappDocumentValidator
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetDPILocations
(List<DocumentPositionedInfo> dpInfo) Compute for the given list of document position info the content offsets.getSchematronPhases
(String systemId) Get the phases defined in a Schematron file.List<ro.sync.exml.editor.scenario.BaseScenario>
Get validation scenarios associated with the document.A task that tries to validate the document according to its schema and returns the list of found errors.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.
-
Field Details
-
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
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
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
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
-