@ProviderType public interface ValidationModelProvider
ValidationModels must implement this interface. Caching of validation models should be implemented in the provider itself, because the providers are asked potentially multiple times for each
ValidationService.getValidationModel(String, String, boolean)call.
@Nonnull List<ValidationModel> getValidationModels(@Nonnull String relativeResourceType) throws IllegalStateException
relativeResourceType- the relative resource (relative to one of the resource resolver's search paths)
null, but might be empty collection in case no model for the given resource type could be found. The order which model gets active is mostly determined by
ValidationModel.getApplicablePaths()(longest path match wins) but in case there are multiple models having the same applicable path, the order being returned here is considered (i.e. the first one is taken).
IllegalStateException- in case a validation model was found but it is invalid
Copyright © 2017 The Apache Software Foundation. All rights reserved.