|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectanyframe.common.util.ObjectUtil
public abstract class ObjectUtil
java reflection api helpers
| Method Summary | |
|---|---|
static void |
addProperty(Object destObject,
String property,
Object value)
|
static void |
copyProperties(Object destObj,
Object origObj)
|
static Field |
getField(Object object,
String fieldName)
|
static Method |
getMethod(Object object,
String methodName,
Class[] argClasses)
|
static Object |
getModel(Object formObject)
|
static Object |
getObject(String className)
Get an instance of the given class name. |
static Object |
getProperty(Object object,
String name)
get object from original object by property name |
static boolean |
isEmpty(Object bean)
|
static boolean |
isNull(Object object)
object is not String |
static Class |
loadClass(String className)
|
static Class |
loadClass(String className,
ClassLoader loader)
Loads a class with the URLUtil's classpath. |
static void |
setProperty(Object object,
String name,
Object value)
|
static void |
setProperty(Object object,
String name,
Object value,
String type)
set property by property type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Class loadClass(String className)
public static Class loadClass(String className,
ClassLoader loader)
className - The name of the class to loadloader - The ClassLoader to su
ClassNotFoundExceptionpublic static Object getObject(String className)
className -
NestedRuntimeExceptionpublic static boolean isEmpty(Object bean)
bean -
public static void copyProperties(Object destObj,
Object origObj)
destObj - origObj -
public static Object getProperty(Object object,
String name)
object - name -
public static void setProperty(Object object,
String name,
Object value,
String type)
object - name - value - type -
public static void setProperty(Object object,
String name,
Object value)
object - name - property namevalue - property value
public static Field getField(Object object,
String fieldName)
public static Method getMethod(Object object,
String methodName,
Class[] argClasses)
public static boolean isNull(Object object)
object -
public static Object getModel(Object formObject)
formObject -
public static void addProperty(Object destObject,
String property,
Object value)
destObject - property - value -
|
Anyframe Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||