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

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

public class FieldValidator
extends Object
implements ModelValidator

This validates a single field definition

Author:
nwright

Field Summary
private  Collection errors
           
private  Field field
           
private  DictionaryModel model
           
 
Constructor Summary
FieldValidator(Field field, DictionaryModel sheet)
           
 
Method Summary
private  void addError(String msg)
           
private  Constraint findConstraint(String id)
           
 Collection<String> validate()
           
private  void validateComplexConstraint(Constraint cons)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

private Field field

model

private DictionaryModel model

errors

private Collection errors
Constructor Detail

FieldValidator

public FieldValidator(Field field,
                      DictionaryModel sheet)
Method Detail

validate

public Collection<String> validate()
Specified by:
validate in interface ModelValidator

findConstraint

private Constraint findConstraint(String id)

validateComplexConstraint

private void validateComplexConstraint(Constraint cons)

addError

private void addError(String msg)


Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.