Interface ValidationUtilAccess


@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface ValidationUtilAccess
Validation Utilities.
Since:
25
  • Method Details

    • validateResources

      void validateResources(Iterator<URL> resourcesIterator, boolean validateOnlyXMLResources, ValidatorProblemCollector problemsCollector)
      Validate a set of resources.
      Parameters:
      resourcesIterator - Iterator over the resources which need to be validated. Never null.
      validateOnlyXMLResources - true to validate only XML resources.
      problemsCollector - The problems collector. Never null.
    • validateResources

      void validateResources(Iterator<URL> resourcesIterator, Function<URL,String> contentProvider, boolean validateOnlyXMLResources, ValidatorProblemCollector problemsCollector)
      Validate a set of resources.
      Parameters:
      resourcesIterator - Iterator over the resources which need to be validated. Never null.
      contentProvider - Provides content to validate for a certain URL.
      validateOnlyXMLResources - true to validate only XML resources.
      problemsCollector - The problems collector. Never null.
      Since:
      27.0
    • validateResources

      void validateResources(Iterator<URL> resourcesIterator, Function<URL,String> contentProvider, boolean validateOnlyXMLResources, ValidatorProblemCollector problemsCollector, Map<String,Object> extraContext)
      Validate a set of resources.
      Parameters:
      resourcesIterator - Iterator over the resources which need to be validated. Never null.
      contentProvider - Provides content to validate for a certain URL.
      validateOnlyXMLResources - true to validate only XML resources.
      problemsCollector - The problems collector. Never null.
      extraContext - A map containing additional application context or information needed by the function. When called from WebAuthor, it will contain an "author_document_model" key with the AuthorDocumentModel of the current editor. It will also contain a "session_id" key with a unique identifier assigned to the execution request session.
      Since:
      28.1 **************************************
      EXPERIMENTAL - Subject to change
      **************************************

      Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.