Package com.googlecode.richrest.util.validator

Examples of com.googlecode.richrest.util.validator.Validator


  public Serializable intercept(Action<Serializable, Serializable> action,
      Serializable model) throws Exception {
    Action<Serializable, Serializable> srcAction = ActionContext.getContext().getAction();
    if (srcAction instanceof Validatable) {
      Validatable validationAction = (Validatable)srcAction;
      Validator validator = validationAction.getValidator();
      if (validator != null)
        validator.validate(model);
    }
    return action.execute(model);
  }
View Full Code Here

TOP

Related Classes of com.googlecode.richrest.util.validator.Validator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.