View Javadoc

1   package org.kuali.student.r2.common.service.impl;
2   
3   import java.util.ArrayList;
4   import java.util.List;
5   import java.util.Stack;
6   
7   import org.kuali.student.r1.common.dictionary.dto.FieldDefinition;
8   import org.kuali.student.r1.common.dictionary.dto.ObjectStructureDefinition;
9   import org.kuali.student.r2.common.dto.ContextInfo;
10  import org.kuali.student.r2.common.dto.ValidationResultInfo;
11  import org.kuali.student.r2.common.validator.DefaultValidatorImpl;
12  
13  public class MockDefaultValidatorImpl extends DefaultValidatorImpl {
14  	 @Override
15  	 public List<ValidationResultInfo> validateObject (Object o,
16  	                                                   ObjectStructureDefinition objStructure,
17                                                         ContextInfo contextInfo)
18  	 {
19  	  return new ArrayList ();
20  	 }
21  
22  	 @Override
23  	 public List<ValidationResultInfo> validateObject (FieldDefinition field,
24  	                                                   Object o,
25  	                                                   ObjectStructureDefinition objStructure,
26  	                                                   Stack<String> elementStack,
27                                                         ContextInfo contextInfo)
28  	 {
29  	  return new ArrayList ();
30  	 }
31  }