@ProviderType
public interface ValidationFailure
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocation()
Returns the relative location of the property/resource/value which triggered this validation failure.
|
java.lang.String |
getMessage(java.util.ResourceBundle resourceBundle) |
int |
getSeverity() |
@Nonnull java.lang.String getMessage(java.util.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 java.lang.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 © 2022 The Apache Software Foundation. All rights reserved.