nl.beesting.beangenerator.util
Class ParameterPairUtil

java.lang.Object
  extended by nl.beesting.beangenerator.util.ParameterPairUtil

public class ParameterPairUtil
extends java.lang.Object

Author:
WeerdG Util to easily extract parameters from an array of ParameterPair-s
See Also:
{com.finalist.util.ParameterPair}

Constructor Summary
ParameterPairUtil()
           
 
Method Summary
static java.lang.Object getFirstParameterValue(ParameterPair[] params, java.lang.String paramName, boolean casesensitive)
          Method getFirstParameterValue.
static java.lang.Object getFirstParameterValue(ParameterPair[] params, java.lang.String paramName, boolean casesensitive, java.lang.Class<?> valueType)
          Method getFirstParameterValue.
static java.lang.String[] getParameterValues(ParameterPair[] params, java.lang.String paramName, boolean casesensitive)
          Method getFirstParameterValue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterPairUtil

public ParameterPairUtil()
Method Detail

getFirstParameterValue

public static java.lang.Object getFirstParameterValue(ParameterPair[] params,
                                                      java.lang.String paramName,
                                                      boolean casesensitive)
Method getFirstParameterValue.

Parameters:
params - the parameter pair arya
paramName - the paraemter name
casesensitve - if true the parameter name is regarded case sensitive otherwise the parameter name is turned to lowercase. Note that the paramter value is not affected!
Returns:
String parameter value of the first occurrence of a ParameterPair with the given parameter name

getFirstParameterValue

public static java.lang.Object getFirstParameterValue(ParameterPair[] params,
                                                      java.lang.String paramName,
                                                      boolean casesensitive,
                                                      java.lang.Class<?> valueType)
Method getFirstParameterValue.

Parameters:
params - the parameter pair arya
paramName - the paraemter name
casesensitve - if true the parameter name is regarded case sensitive otherwise the parameter name is turned to lowercase. Note that the paramter value is not affected!
Returns:
String parameter value of the first occurrence of a ParameterPair with the given parameter name

getParameterValues

public static java.lang.String[] getParameterValues(ParameterPair[] params,
                                                    java.lang.String paramName,
                                                    boolean casesensitive)
Method getFirstParameterValue.

Parameters:
params - the parameter pair arya
paramName - the paraemter name
casesensitve - if true the parameter name is regarded case sensitive otherwise the parameter name is turned to lowercase. Note that the paramter value is not affected!
Returns:
String parameter value of the first occurrence of a ParameterPair with the given parameter name


Copyright 2008. All Rights Reserved.