public class BeanPropertiesUtil
extends Object
Constructor and Description |
---|
BeanPropertiesUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
copyProperties(Object source,
Object target) |
static void |
copyProperties(Object source,
Object target,
Class<?> editable) |
static void |
copyProperties(Object source,
Object target,
String[] ignoreProperties) |
static <T> T |
deepCopyProperties(Object source) |
static BeanProperties |
getBeanProperties() |
static boolean |
getBoolean(Object bean,
String param) |
static boolean |
getBoolean(Object bean,
String param,
boolean defaultValue) |
static boolean |
getBooleanSilent(Object bean,
String param) |
static boolean |
getBooleanSilent(Object bean,
String param,
boolean defaultValue) |
static byte |
getByte(Object bean,
String param) |
static byte |
getByte(Object bean,
String param,
byte defaultValue) |
static byte |
getByteSilent(Object bean,
String param) |
static byte |
getByteSilent(Object bean,
String param,
byte defaultValue) |
static double |
getDouble(Object bean,
String param) |
static double |
getDouble(Object bean,
String param,
double defaultValue) |
static double |
getDoubleSilent(Object bean,
String param) |
static double |
getDoubleSilent(Object bean,
String param,
double defaultValue) |
static float |
getFloat(Object bean,
String param) |
static float |
getFloat(Object bean,
String param,
float defaultValue) |
static float |
getFloatSilent(Object bean,
String param) |
static float |
getFloatSilent(Object bean,
String param,
float defaultValue) |
static int |
getInteger(Object bean,
String param) |
static int |
getInteger(Object bean,
String param,
int defaultValue) |
static int |
getIntegerSilent(Object bean,
String param) |
static int |
getIntegerSilent(Object bean,
String param,
int defaultValue) |
static long |
getLong(Object bean,
String param) |
static long |
getLong(Object bean,
String param,
long defaultValue) |
static long |
getLongSilent(Object bean,
String param) |
static long |
getLongSilent(Object bean,
String param,
long defaultValue) |
static Object |
getObject(Object bean,
String param) |
static Object |
getObject(Object bean,
String param,
Object defaultValue) |
static Object |
getObjectSilent(Object bean,
String param) |
static Object |
getObjectSilent(Object bean,
String param,
Object defaultValue) |
static Class<?> |
getObjectType(Object bean,
String param) |
static Class<?> |
getObjectType(Object bean,
String param,
Class<?> defaultValue) |
static Class<?> |
getObjectTypeSilent(Object bean,
String param) |
static Class<?> |
getObjectTypeSilent(Object bean,
String param,
Class<?> defaultValue) |
static short |
getShort(Object bean,
String param) |
static short |
getShort(Object bean,
String param,
short defaultValue) |
static short |
getShortSilent(Object bean,
String param) |
static short |
getShortSilent(Object bean,
String param,
short defaultValue) |
static String |
getString(Object bean,
String param) |
static String |
getString(Object bean,
String param,
String defaultValue) |
static String |
getStringSilent(Object bean,
String param) |
static String |
getStringSilent(Object bean,
String param,
String defaultValue) |
void |
setBeanProperties(BeanProperties beanProperties) |
static void |
setProperties(Object bean,
javax.servlet.http.HttpServletRequest httpServletRequest) |
static void |
setProperties(Object bean,
javax.servlet.http.HttpServletRequest httpServletRequest,
String[] ignoreProperties) |
static void |
setProperty(Object bean,
String param,
Object value) |
static void |
setPropertySilent(Object bean,
String param,
Object value) |
public static void copyProperties(Object source, Object target)
public static void copyProperties(Object source, Object target, Class<?> editable)
public static void copyProperties(Object source, Object target, String[] ignoreProperties)
public static <T> T deepCopyProperties(Object source) throws Exception
Exception
public static BeanProperties getBeanProperties()
public static boolean getBoolean(Object bean, String param)
public static boolean getBoolean(Object bean, String param, boolean defaultValue)
public static boolean getBooleanSilent(Object bean, String param)
public static boolean getBooleanSilent(Object bean, String param, boolean defaultValue)
public static byte getByte(Object bean, String param)
public static byte getByte(Object bean, String param, byte defaultValue)
public static byte getByteSilent(Object bean, String param)
public static byte getByteSilent(Object bean, String param, byte defaultValue)
public static double getDouble(Object bean, String param)
public static double getDouble(Object bean, String param, double defaultValue)
public static double getDoubleSilent(Object bean, String param)
public static double getDoubleSilent(Object bean, String param, double defaultValue)
public static float getFloat(Object bean, String param)
public static float getFloat(Object bean, String param, float defaultValue)
public static float getFloatSilent(Object bean, String param)
public static float getFloatSilent(Object bean, String param, float defaultValue)
public static int getInteger(Object bean, String param)
public static int getInteger(Object bean, String param, int defaultValue)
public static int getIntegerSilent(Object bean, String param)
public static int getIntegerSilent(Object bean, String param, int defaultValue)
public static long getLong(Object bean, String param)
public static long getLong(Object bean, String param, long defaultValue)
public static long getLongSilent(Object bean, String param)
public static long getLongSilent(Object bean, String param, long defaultValue)
public static Object getObject(Object bean, String param)
public static Object getObject(Object bean, String param, Object defaultValue)
public static Object getObjectSilent(Object bean, String param)
public static Object getObjectSilent(Object bean, String param, Object defaultValue)
public static Class<?> getObjectType(Object bean, String param)
public static Class<?> getObjectType(Object bean, String param, Class<?> defaultValue)
public static Class<?> getObjectTypeSilent(Object bean, String param)
public static Class<?> getObjectTypeSilent(Object bean, String param, Class<?> defaultValue)
public static short getShort(Object bean, String param)
public static short getShort(Object bean, String param, short defaultValue)
public static short getShortSilent(Object bean, String param)
public static short getShortSilent(Object bean, String param, short defaultValue)
public static String getString(Object bean, String param)
public static String getString(Object bean, String param, String defaultValue)
public static String getStringSilent(Object bean, String param)
public static String getStringSilent(Object bean, String param, String defaultValue)
public static void setProperties(Object bean, javax.servlet.http.HttpServletRequest httpServletRequest)
public static void setProperties(Object bean, javax.servlet.http.HttpServletRequest httpServletRequest, String[] ignoreProperties)
public static void setProperty(Object bean, String param, Object value)
public static void setPropertySilent(Object bean, String param, Object value)
public void setBeanProperties(BeanProperties beanProperties)