org.kuali.student.datadictionary.util
Class DictionaryValidator
java.lang.Object
org.kuali.student.datadictionary.util.DictionaryValidator
public class DictionaryValidator
- extends Object
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 |
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
DictionaryValidator
public DictionaryValidator(org.kuali.rice.krad.datadictionary.DataObjectEntry doe,
Set<org.kuali.rice.krad.datadictionary.DataObjectEntry> alreadyValidated)
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.