public class DataBinder extends Object
| Constructor and Description |
|---|
DataBinder() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getRawParam(Map<String,String> props,
String name)
Trims to null, so will never return a value padded with white space, or only whitespace
|
static TimeZone |
getTimeZoneForRequest() |
void |
populate(Object bean,
Map properties) |
void |
populate(Object bean,
Map properties,
TimeZone timeZone) |
static void |
setTimeZoneForRequest(TimeZone tz) |
public static String getRawParam(Map<String,String> props, String name)
props - name - public static void setTimeZoneForRequest(TimeZone tz)
public static TimeZone getTimeZoneForRequest()
public void populate(Object bean, Map properties) throws IllegalAccessException, InvocationTargetException
bean - - the object to bind to, using bean property accessorsproperties - - the map of values to attempt to bindIllegalAccessExceptionInvocationTargetExceptionpublic void populate(Object bean, Map properties, TimeZone timeZone) throws IllegalAccessException, InvocationTargetException
bean - properties - - the map of properties to attempt to bind to the beantimeZone - - timezone to use for date/time conversionsIllegalAccessExceptionInvocationTargetExceptionCopyright © 2021 McEvoy Software Ltd. All rights reserved.