public interface ModelValidation
<ModelType> RuntimeException validate(Object adaptable, Class<ModelType> modelClass, boolean required) throws ValidationException, InvalidModelException
adaptable- the adaptable about to be used instantiate the Sling Model Class
modelClass- the class of the model which is about to be instantiated
truevalidation fails even if validation model can't be found.
nullif validation was successful, otherwise either
ValidationExceptionin case validation could not be performed for some reason (e.g. no validation information available) or
InvalidModelExceptionin case the given model type could not be validated through the
"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"