Interface ValidationUtilAccess
@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface ValidationUtilAccess
Validation Utilities.
- Since:
- 25
-
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateResources(Iterator<URL> resourcesIterator, boolean validateOnlyXMLResources, ValidatorProblemCollector problemsCollector) Validate a set of resources.voidvalidateResources(Iterator<URL> resourcesIterator, Function<URL, String> contentProvider, boolean validateOnlyXMLResources, ValidatorProblemCollector problemsCollector) Validate a set of resources.voidvalidateResources(Iterator<URL> resourcesIterator, Function<URL, String> contentProvider, boolean validateOnlyXMLResources, ValidatorProblemCollector problemsCollector, Map<String, Object> extraContext) Validate a set of resources.
-
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. Nevernull.validateOnlyXMLResources-trueto validate only XML resources.problemsCollector- The problems collector. Nevernull.
-
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. Nevernull.contentProvider- Provides content to validate for a certain URL.validateOnlyXMLResources-trueto validate only XML resources.problemsCollector- The problems collector. Nevernull.- 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. Nevernull.contentProvider- Provides content to validate for a certain URL.validateOnlyXMLResources-trueto validate only XML resources.problemsCollector- The problems collector. Nevernull.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 theAuthorDocumentModelof 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.
-