Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * To change this template, choose Tools | Templates
  * and open the template in the editor.
  */
 
 package org.kuali.student.r2.common.datadictionary;
 
 import java.util.List;

Author(s):
nwright
public interface DataDictionaryValidator {
    public static enum ValidationType {
        FULL_VALIDATION, SKIP_REQUREDNESS_VALIDATIONS;
        public static ValidationType fromString (String str)
          throws InvalidParameterException {
            for (ValidationType vt : ValidationType.values()) {
                if (vt.name().equals(str)) {
                    return vt;
                }
            }
            throw new InvalidParameterException ("validationType");
        }
    }

    
Generic validation interface used to implement the individual validateXXXX (xxxxx) methods This is not supposed to remotable because it's object is an Object.

Parameters:
validationType, FULL_VALIDATION or SKIP_REQUIREDNESS_VALIDATIONS
info object to be validated
context of user and locale information
Returns:
list of validation results
    public List<ValidationResultInfovalidate (ValidationType validationTypeObject infoContextInfo context)
New to GrepCode? Check out our FAQ X