Interface ValidatorInvocation
- All Known Implementing Classes:
ValidatorInvocationImpl
@ProviderType
public interface ValidatorInvocation
Defines a specific validator invocation for a given property (without actually exposing a reference to the underlying
Validator
).-
Method Details
-
getValidatorId
- Returns:
- the validator id of the
Validator
which is supposed to be called.
-
getParameters
- Returns:
- the parameterization of the
Validator.validate(Object, org.apache.sling.validation.spi.ValidatorContext, ValueMap)
call (nevernull
, but might be empty map)
-
getSeverity
- Returns:
- the severity of validation failures emitted for this usage of the validator (as being set in the model).
May be
null
in case it was not set on the model.
-