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
12
13
14
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 }