@ProviderType
public interface ValidationFailure
Modifier and Type | Method and Description |
---|---|
String |
getLocation()
Returns the relative location of the property/resource/value which triggered this validation failure.
|
String |
getMessage(ResourceBundle resourceBundle) |
int |
getSeverity() |
@Nonnull String getMessage(ResourceBundle resourceBundle)
resourceBundle
- ResourceBundle in which to look up the according message (used for i18n), if null
is given, the default resource bundle is used.@Nonnull String getLocation()
ValidationService.validate(org.apache.sling.api.resource.Resource, org.apache.sling.validation.model.ValidationModel)
or ValidationService.validateResourceRecursively(org.apache.sling.api.resource.Resource, boolean, java.util.function.Predicate, boolean)
orValidationService.validate(org.apache.sling.api.resource.ValueMap, org.apache.sling.validation.model.ValidationModel)
int getSeverity()
0
.Copyright © 2017 The Apache Software Foundation. All rights reserved.