oracle.jdevimpl.audit.util
Class Beans
java.lang.Object
oracle.jdevimpl.audit.util.Beans
public class Beans
- extends java.lang.Object
Method Summary |
static
|
copyProperties(T fromBean,
T toBean)
|
static java.util.List<java.beans.PropertyDescriptor> |
getProperties(java.lang.Class<?> type)
|
static java.util.List<java.beans.PropertyDescriptor> |
getProperties(java.lang.Object bean)
|
static java.beans.PropertyDescriptor |
getProperty(java.lang.Class<?> type,
java.lang.String propertyName)
|
static java.beans.PropertyDescriptor |
getProperty(java.lang.Object bean,
java.lang.String propertyName)
|
static java.lang.Object |
getPropertyValue(java.lang.Object bean,
java.lang.String propertyName)
|
static void |
setPropertyValue(java.lang.Object bean,
java.lang.String propertyName,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getProperties
public static java.util.List<java.beans.PropertyDescriptor> getProperties(java.lang.Object bean)
getProperties
public static java.util.List<java.beans.PropertyDescriptor> getProperties(java.lang.Class<?> type)
getProperty
public static java.beans.PropertyDescriptor getProperty(java.lang.Object bean,
java.lang.String propertyName)
throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
getProperty
public static java.beans.PropertyDescriptor getProperty(java.lang.Class<?> type,
java.lang.String propertyName)
throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
getPropertyValue
public static java.lang.Object getPropertyValue(java.lang.Object bean,
java.lang.String propertyName)
throws java.beans.IntrospectionException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException
- Throws:
java.beans.IntrospectionException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
setPropertyValue
public static void setPropertyValue(java.lang.Object bean,
java.lang.String propertyName,
java.lang.Object value)
throws java.beans.IntrospectionException,
java.lang.reflect.InvocationTargetException,
java.lang.IllegalAccessException
- Throws:
java.beans.IntrospectionException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessException
copyProperties
public static <T> void copyProperties(T fromBean,
T toBean)
throws java.beans.IntrospectionException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Throws:
java.beans.IntrospectionException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
Copyright © 1997, 2011, Oracle. All rights reserved.