@ProviderType
public interface ValidatorContext
Validator.validate(Object, ValidatorContext, ValueMap)
Exposes additional information about the context in which the validation was called.Modifier and Type | Method and Description |
---|---|
java.util.ResourceBundle |
getDefaultResourceBundle() |
java.lang.String |
getLocation() |
Resource |
getResource() |
int |
getSeverity()
Returns the severity to be issued for validation failures in this context.
|
ValueMap |
getValueMap() |
@Nonnull java.lang.String getLocation()
Validator.validate(Object, ValidatorContext, ValueMap)
@Nonnull ValueMap getValueMap()
null
.@CheckForNull Resource getResource()
null
in case the validation was triggered on a ValueMap
(via ValidationService.validate(ValueMap, org.apache.sling.validation.model.ValidationModel)
).int getSeverity()
@Nonnull java.util.ResourceBundle getDefaultResourceBundle()
Validator
in English.Copyright © 2018 The Apache Software Foundation. All rights reserved.