View Javadoc

1   package org.kuali.student.r2.common.validator;
2   
3   import java.util.List;
4   import java.util.Stack;
5   
6   import org.kuali.student.r1.common.dictionary.dto.ObjectStructureDefinition;
7   import org.kuali.student.r1.common.dictionary.dto.FieldDefinition;
8   import org.kuali.student.r2.common.dto.ContextInfo;
9   import org.kuali.student.r2.common.dto.ValidationResultInfo;
10  
11  //This interface is a special case, this class/equivelent doesn't exist in R2 
12  //packages and is a common and has methods used in both R1 and R2 packages, 
13  //this class was duplicated to R2 and modified to work with R2 services
14  //BaseAbstractValidator, BaseAbstractValidator, Validator, ValidatorFactory
15  
16  public interface Validator {
17  
18  	public List<ValidationResultInfo> validateObject(Object o, ObjectStructureDefinition objStructure, ContextInfo contextInfo);
19  	public List<ValidationResultInfo> validateObject(FieldDefinition field,Object o, ObjectStructureDefinition objStructure,Stack<String> elementStack, ContextInfo contextInfo);
20  }