org.kuali.student.contract.model.validation
Class ConstraintValidator

java.lang.Object
  extended by org.kuali.student.contract.model.validation.ConstraintValidator
All Implemented Interfaces:
ModelValidator

public class ConstraintValidator
extends Object
implements ModelValidator

This validates a constraint.

Author:
nwright

Field Summary
private  Constraint cons
           
private  Collection errors
           
 
Constructor Summary
ConstraintValidator(Constraint cons)
           
 
Method Summary
private  void addError(String msg)
           
private  int parseIntError(String value, String field)
           
 Collection<String> validate()
           
private  void validateMinMaxLength()
           
private  void validateMinMaxOccurs()
           
private  void validateMinMaxValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cons

private Constraint cons

errors

private Collection errors
Constructor Detail

ConstraintValidator

public ConstraintValidator(Constraint cons)
Method Detail

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.