Package org.hdiv.validator

Examples of org.hdiv.validator.IValidation


      if (matcher.matches(url)) {

        List<IValidation> userDefinedValidations = urls.get(matcher);
        for (int i = 0; i < userDefinedValidations.size(); i++) {

          IValidation currentValidation = (IValidation) userDefinedValidations.get(i);

          if (!currentValidation.validate(parameter, values, dataType)) {
            return false;
          }
        }
      }
    }
View Full Code Here


      // Add selected rules
      List<IValidation> activeRules = new ArrayList<IValidation>();
      for (String ruleName : selectedRules) {

        IValidation val = registeredRules.get(ruleName);
        if (val == null) {
          throw new BeanInitializationException("Rule with name '" + ruleName + "' not registered.");
        }
        activeRules.add(val);
      }
View Full Code Here

    List<IValidation> newList = new ArrayList<IValidation>();

    for (String id : ids) {
      Object bean = this.getBeanFactory().getBean(id);
      if (bean instanceof IValidation) {
        IValidation validation = (IValidation) bean;
        newList.add(validation);
      } else if (bean instanceof List<?>) {
        List<IValidation> validations = (List<IValidation>) bean;
        newList.addAll(validations);
      }
View Full Code Here

TOP

Related Classes of org.hdiv.validator.IValidation

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.