nl.beesting.beangenerator.util
Class ParameterPairUtil
java.lang.Object
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}
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterPairUtil
public ParameterPairUtil()
getFirstParameterValue
public static java.lang.Object getFirstParameterValue(ParameterPair[] params,
java.lang.String paramName,
boolean casesensitive)
- Method getFirstParameterValue.
- Parameters:
params
- the parameter pair aryaparamName
- the paraemter namecasesensitve
- 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 aryaparamName
- the paraemter namecasesensitve
- 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 aryaparamName
- the paraemter namecasesensitve
- 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.