org.kuali.student.kim.identity.mock
Interface DataProviderInfc<I,O>


public interface DataProviderInfc<I,O>

Provides values to compare

Author:
nwright

Method Summary
 org.kuali.rice.core.api.uif.DataType getDataType(String fieldKey)
          Get the data type of the field
 List<Object> getValues(I obj, String fieldKey)
          Gets the list of values to be compared
 Object parseValue(String fieldKey, String value)
          Parses the supplied value to which the data field is to be compared
 boolean supportsField(String fieldKey)
          Checks if the field key is supported
 

Method Detail

getValues

List<Object> getValues(I obj,
                       String fieldKey)
                       throws IllegalArgumentException
Gets the list of values to be compared

Parameters:
obj - data object
fieldKey - path to field on data object
Returns:
list of values for the specified field, if field occurs only once on object the list is of size one
Throws:
IllegalArgumentException - if field key is invalid or not supported

getDataType

org.kuali.rice.core.api.uif.DataType getDataType(String fieldKey)
                                                 throws IllegalArgumentException
Get the data type of the field

Parameters:
fieldKey -
Returns:
DataType of the field key, null if fieldKey is not valid or not supported
Throws:
IllegalArgumentException - if field key is invalid or not supported

supportsField

boolean supportsField(String fieldKey)
Checks if the field key is supported

Parameters:
fieldKey -
Returns:
true if it is supported, else false

parseValue

Object parseValue(String fieldKey,
                  String value)
                  throws IllegalArgumentException
Parses the supplied value to which the data field is to be compared

Parameters:
fieldKey -
value -
Returns:
the value parsed to match the data type so it can be compaerd
Throws:
IllegalArgumentException - if field key is invalid or not supported*


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