org.kuali.kfs.gl.businessobject.options
Class OriginEntryFieldFinder

java.lang.Object
  extended by org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase
      extended by org.kuali.kfs.gl.businessobject.options.OriginEntryFieldFinder
All Implemented Interfaces:
org.kuali.rice.kns.lookup.keyvalues.KeyValuesFinder

public class OriginEntryFieldFinder
extends org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase

An extension of KeyValuesBase that


Constructor Summary
OriginEntryFieldFinder()
           
 
Method Summary
 boolean allowNull(String fieldName)
          Returns whether the given field can be set to null or not
 String getFieldDisplayName(String fieldName)
          Given the property field name for a field, returns the display name
 int getFieldLength(String fieldName)
          Returns the length of a given field in Origin Entry
 String getFieldName(String fieldDisplayName)
          Given the display name of a field, returns the property field name
 String getFieldType(String fieldName)
          Returns a String with the name of the type of the given field
 List getKeyValues()
          Returns a list of all field names and display field names for the Origin Entry class
 boolean isValidValue(String fieldName, String value)
          Given a field name and a value, determines if that value is valid for the field
 
Methods inherited from class org.kuali.rice.kns.lookup.keyvalues.KeyValuesBase
clearInternalCache, getKeyLabel, getKeyLabelMap, getKeyValues, getOptionLabels, getOptionValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OriginEntryFieldFinder

public OriginEntryFieldFinder()
Method Detail

getKeyValues

public List getKeyValues()
Returns a list of all field names and display field names for the Origin Entry class

Returns:
a List of key/value pair options
See Also:
KeyValuesFinder.getKeyValues()

getFieldDisplayName

public String getFieldDisplayName(String fieldName)
Given the property field name for a field, returns the display name

Parameters:
fieldName - the property field name for a field
Returns:
the display field name of that field

getFieldName

public String getFieldName(String fieldDisplayName)
Given the display name of a field, returns the property field name

Parameters:
fieldDisplayName - the display name of the field
Returns:
the property field name for that field

isValidValue

public boolean isValidValue(String fieldName,
                            String value)
Given a field name and a value, determines if that value is valid for the field

Parameters:
fieldName - the name of a field to inquire on
value - the value that the field will potentially be set to
Returns:
true if the value is valid, false if otherwise

getFieldType

public String getFieldType(String fieldName)
Returns a String with the name of the type of the given field

Parameters:
fieldName - the name of the field to inquire on
Returns:
a String with the name of the class that field returns

allowNull

public boolean allowNull(String fieldName)
Returns whether the given field can be set to null or not

Parameters:
fieldName - the name of the field to inquire about
Returns:
true if it can be set to null, false otherwise

getFieldLength

public int getFieldLength(String fieldName)
Returns the length of a given field in Origin Entry

Parameters:
fieldName - the name of the Origin Entry field to get a length for
Returns:
the length of the field


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