org.pentaho.platform.util
Class ParameterHelper

java.lang.Object
  extended by org.pentaho.platform.util.ParameterHelper

public class ParameterHelper
extends Object

Author:
James Dixon TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
ParameterHelper()
           
 
Method Summary
static Date parameterToDate(String value, Date defaultValue)
           
static BigDecimal parameterToDecimal(String value, BigDecimal defaultValue)
           
static long parameterToLong(String value, long defaultValue)
           
static Object[] parameterToObjectArray(Object value, Object[] defaultValue)
           
static String parameterToString(String value, String defaultValue)
           
static String[] parameterToStringArray(Object value, String[] defaultValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterHelper

public ParameterHelper()
Method Detail

parameterToString

public static String parameterToString(String value,
                                       String defaultValue)

parameterToLong

public static long parameterToLong(String value,
                                   long defaultValue)

parameterToDate

public static Date parameterToDate(String value,
                                   Date defaultValue)

parameterToDecimal

public static BigDecimal parameterToDecimal(String value,
                                            BigDecimal defaultValue)

parameterToObjectArray

public static Object[] parameterToObjectArray(Object value,
                                              Object[] defaultValue)

parameterToStringArray

public static String[] parameterToStringArray(Object value,
                                              String[] defaultValue)