Interface ComponentValidatorService
-
- All Superinterfaces:
io.wcm.sling.commons.caservice.ContextAwareService
@ConsumerType public interface ComponentValidatorService extends io.wcm.sling.commons.caservice.ContextAwareService
Allows custom validation checks for model instances. By default, the valid state of aGenericComponent
is evaluated by checking for any valid property or a container component. Implementing this services allows to hook in additional custom checks, e.g. by calling a project-specificisValid()
method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isValid(java.lang.Object modelInstance)
Checks of the given model instance is valid.
-