/** * {@inheritDoc} */ @Override public Validation validateModel() { Validator validator = _desc.getValidator(_config); if (validator != null) { Source source = _config.getSource(); try { validator.validate(source); } catch (Throwable t) { return new Validation(getClass(), t); } } else { return new Validation(getClass(), false, "validator == null"); } return new Validation(getClass(), true); }
/** * {@inheritDoc} */ @Override public Validation validateModel() { Validator validator = _desc.getValidator(_config); if (validator != null) { Source source = _config.getSource(); try { validator.validate(source); } catch (Throwable t) { return new Validation(getClass(), t); } } else { return new Validation(getClass(), false, "validator == null"); } return new Validation(getClass(), true); }