org.kuali.student.datadictionary.util
Class DictionaryValidator

java.lang.Object
  extended by org.kuali.student.datadictionary.util.DictionaryValidator

public class DictionaryValidator
extends Object


Field Summary
private  Set<org.kuali.rice.krad.datadictionary.DataObjectEntry> alreadyValidated
           
private  org.kuali.rice.core.api.datetime.DateTimeService dateTimeService
           
private  org.kuali.rice.krad.datadictionary.DataObjectEntry doe
           
static String EQUALS
           
static String GREATER_THAN
           
static String GREATER_THAN_EQUAL
           
static String LESS_THAN
           
static String LESS_THAN_EQUAL
           
static String NOT_EQUAL
           
private static String[] VALID_OPERATORS
           
 
Constructor Summary
DictionaryValidator(org.kuali.rice.krad.datadictionary.DataObjectEntry doe, Set<org.kuali.rice.krad.datadictionary.DataObjectEntry> alreadyValidated)
           
 
Method Summary
private  void errorIfNotNull(List<String> errors, org.kuali.rice.krad.datadictionary.AttributeDefinition fd, String validation, Object value)
           
 org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()
           
 void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
           
 List<String> validate()
           
private  List<String> validateAttributeDefinition(org.kuali.rice.krad.datadictionary.AttributeDefinition ad)
           
private  List<String> validateCase(org.kuali.rice.krad.datadictionary.AttributeDefinition fd, org.kuali.rice.krad.datadictionary.validation.constraint.CaseConstraint cc)
           
private  Object validateConversion(List<String> errors, String fieldName, String propertyName, org.kuali.rice.core.api.uif.DataType dataType, Object value)
           
private  List<String> validateLookup(org.kuali.rice.krad.datadictionary.AttributeDefinition fd, org.kuali.rice.krad.datadictionary.validation.constraint.LookupConstraint lc)
           
private  List<String> validateValidChars(org.kuali.rice.krad.datadictionary.AttributeDefinition fd, org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint vc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateTimeService

private org.kuali.rice.core.api.datetime.DateTimeService dateTimeService

doe

private org.kuali.rice.krad.datadictionary.DataObjectEntry doe

alreadyValidated

private Set<org.kuali.rice.krad.datadictionary.DataObjectEntry> alreadyValidated

GREATER_THAN_EQUAL

public static final String GREATER_THAN_EQUAL
See Also:
Constant Field Values

LESS_THAN_EQUAL

public static final String LESS_THAN_EQUAL
See Also:
Constant Field Values

GREATER_THAN

public static final String GREATER_THAN
See Also:
Constant Field Values

LESS_THAN

public static final String LESS_THAN
See Also:
Constant Field Values

EQUALS

public static final String EQUALS
See Also:
Constant Field Values

NOT_EQUAL

public static final String NOT_EQUAL
See Also:
Constant Field Values

VALID_OPERATORS

private static final String[] VALID_OPERATORS
Constructor Detail

DictionaryValidator

public DictionaryValidator(org.kuali.rice.krad.datadictionary.DataObjectEntry doe,
                           Set<org.kuali.rice.krad.datadictionary.DataObjectEntry> alreadyValidated)
Method Detail

getDateTimeService

public org.kuali.rice.core.api.datetime.DateTimeService getDateTimeService()

setDateTimeService

public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)

validate

public List<String> validate()

validateAttributeDefinition

private List<String> validateAttributeDefinition(org.kuali.rice.krad.datadictionary.AttributeDefinition ad)

errorIfNotNull

private void errorIfNotNull(List<String> errors,
                            org.kuali.rice.krad.datadictionary.AttributeDefinition fd,
                            String validation,
                            Object value)

validateConversion

private Object validateConversion(List<String> errors,
                                  String fieldName,
                                  String propertyName,
                                  org.kuali.rice.core.api.uif.DataType dataType,
                                  Object value)

validateValidChars

private List<String> validateValidChars(org.kuali.rice.krad.datadictionary.AttributeDefinition fd,
                                        org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint vc)

validateLookup

private List<String> validateLookup(org.kuali.rice.krad.datadictionary.AttributeDefinition fd,
                                    org.kuali.rice.krad.datadictionary.validation.constraint.LookupConstraint lc)

validateCase

private List<String> validateCase(org.kuali.rice.krad.datadictionary.AttributeDefinition fd,
                                  org.kuali.rice.krad.datadictionary.validation.constraint.CaseConstraint cc)


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