org.kuali.student.contract.model.validation
Class ConstraintValidator
java.lang.Object
org.kuali.student.contract.model.validation.ConstraintValidator
- All Implemented Interfaces:
- ModelValidator
public class ConstraintValidator
- extends Object
- implements ModelValidator
This validates a constraint.
- Author:
- nwright
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cons
private Constraint cons
errors
private Collection errors
ConstraintValidator
public ConstraintValidator(Constraint cons)
validate
public Collection<String> validate()
- Specified by:
validate
in interface ModelValidator
validateMinMaxLength
private void validateMinMaxLength()
validateMinMaxOccurs
private void validateMinMaxOccurs()
validateMinMaxValue
private void validateMinMaxValue()
parseIntError
private int parseIntError(String value,
String field)
addError
private void addError(String msg)
Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.