@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 |
---|---|
ResourceBundle |
getDefaultResourceBundle() |
String |
getLocation() |
Resource |
getResource() |
int |
getSeverity()
Returns the severity to be issued for validation failures in this context.
|
ValueMap |
getValueMap() |
@Nonnull 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 ResourceBundle getDefaultResourceBundle()
Validator
in English.Copyright © 2017 The Apache Software Foundation. All rights reserved.