com.ochafik.beans
Class BeansUtils
java.lang.Object
com.ochafik.beans.BeansUtils
public class BeansUtils
- extends Object
Method Summary |
static void |
addPropertyChangeListener(Object bean,
String propertyName,
PropertyChangeListener listener)
|
static Object |
get(Object bean,
String propertyName)
|
static
|
get(Object bean,
String propertyName,
Class<T> propertyClass)
|
static void |
markTransientProperty(String name,
Class<?> classe)
|
static void |
removePropertyChangeListener(Object bean,
String propertyName,
PropertyChangeListener listener)
|
static
|
set(Object bean,
String propertyName,
Class<T> propertyClass,
T value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeansUtils
public BeansUtils()
markTransientProperty
public static final void markTransientProperty(String name,
Class<?> classe)
throws IntrospectionException
- Throws:
IntrospectionException
addPropertyChangeListener
public static void addPropertyChangeListener(Object bean,
String propertyName,
PropertyChangeListener listener)
removePropertyChangeListener
public static void removePropertyChangeListener(Object bean,
String propertyName,
PropertyChangeListener listener)
get
public static Object get(Object bean,
String propertyName)
get
public static <T> T get(Object bean,
String propertyName,
Class<T> propertyClass)
set
public static <T> void set(Object bean,
String propertyName,
Class<T> propertyClass,
T value)
Copyright © 2009. All Rights Reserved.