org.kuali.rice.kns.util
Class KNSUtils

java.lang.Object
  extended by org.kuali.rice.kns.util.KNSUtils

public class KNSUtils
extends Object

Miscellaneous Utility Methods.


Constructor Summary
KNSUtils()
           
 
Method Summary
static String convertDecimalIntoInteger(KualiDecimal decimalNumber)
          Convert the given monney amount into an interger string.
static Object createObject(Class<?> clazz, Class<?>[] argumentClasses, Object[] argumentValues)
           
static String getBusinessTitleForClass(Class<? extends Object> clazz)
           
static List<String> getFileNameFromPath(List<String> fullFileNames)
          Picks off the filename from the full path.
static Integer getIntegerValue(String numberStr)
           
static String joinWithQuotes(List<String> list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KNSUtils

public KNSUtils()
Method Detail

getBusinessTitleForClass

public static final String getBusinessTitleForClass(Class<? extends Object> clazz)

getFileNameFromPath

public static final List<String> getFileNameFromPath(List<String> fullFileNames)
Picks off the filename from the full path. Takes care of different OS seperators.


convertDecimalIntoInteger

public static final String convertDecimalIntoInteger(KualiDecimal decimalNumber)
Convert the given monney amount into an interger string. Since the return string cannot have decimal point, multiplies the amount by 100 so the decimal places are not lost, for example, 320.15 is converted into 32015.

Returns:
an integer string of the given money amount through multiplicating by 100 and removing the fraction portion.

getIntegerValue

public static Integer getIntegerValue(String numberStr)

createObject

public static Object createObject(Class<?> clazz,
                                  Class<?>[] argumentClasses,
                                  Object[] argumentValues)

joinWithQuotes

public static String joinWithQuotes(List<String> list)


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