Package org.springframework.rules

Examples of org.springframework.rules.PropertyConstraintProvider


      clearMessages();
    }
    objectClass = object.getClass();
    Rules rules = null;
    if (object instanceof PropertyConstraintProvider) {
      PropertyConstraintProvider propertyConstraintProvider = (PropertyConstraintProvider) object;
      if (propertyName != null) {
        PropertyConstraint validationRule = propertyConstraintProvider.getPropertyConstraint(propertyName);
        checkRule(validationRule);
      }
      else {
        for (Iterator fieldNamesIter = formModel.getFieldNames().iterator(); fieldNamesIter.hasNext();) {
          PropertyConstraint validationRule = propertyConstraintProvider
              .getPropertyConstraint((String) fieldNamesIter.next());
          checkRule(validationRule);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.springframework.rules.PropertyConstraintProvider

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.