org.kuali.student.common.validator
Class ValidatorUtils
java.lang.Object
org.kuali.student.common.validator.ValidatorUtils
public class ValidatorUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidatorUtils
public ValidatorUtils()
compareValues
public static boolean compareValues(Object value1,
Object value2,
DataType dataType,
String operator,
boolean isCaseSensitive,
DateParser dateParser)
getInteger
public static Integer getInteger(Object o)
getLong
public static Long getLong(Object o)
getFloat
public static Float getFloat(Object o)
getDouble
public static Double getDouble(Object o)
getDate
public static Date getDate(Object o,
DateParser dateParser)
getString
public static String getString(Object o)
getBoolean
public static Boolean getBoolean(Object o)
getField
public static FieldDefinition getField(String key,
ObjectStructureDefinition objStructure)
- Traverses the dictionary ObjectStructure to find the field with the match
key, type and state
The key has to relative to the current object structure that is being traversed.
example: current object structure is ActivityInfo and if we want to lookup
the academicSubjectorgId, then
The current object structure starts from the field on which the constraint is applied on.
If we want to address fields outside of this object structure we ll need to pass in the
dictionary context.
- Parameters:
key
- type
- state
- objStructure
-
- Returns:
getPathTokens
private static String[] getPathTokens(String fieldPath)
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.