Code example for Validator

Methods: getResourceResolver, setResourceResolver, validate