org.kuali.rice.krad.uif.util
Class ObjectPropertyUtils

java.lang.Object
  extended by org.kuali.rice.krad.uif.util.ObjectPropertyUtils

public class ObjectPropertyUtils
extends Object

Utility methods to get/set property values and working with objects

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
BeanWrapper

Constructor Summary
ObjectPropertyUtils()
           
 
Method Summary
static void copyPropertiesToObject(Map<String,String> properties, Object object)
           
static PropertyDescriptor[] getPropertyDescriptors(Object object)
           
static Class<?> getPropertyType(Class<?> object, String propertyPath)
           
static Class<?> getPropertyType(Object object, String propertyPath)
           
static
<T> T
getPropertyValue(Object object, String propertyPath)
           
static void initializeProperty(Object object, String propertyPath)
           
static boolean isReadableProperty(Object object, String propertyPath)
           
static boolean isWritableProperty(Object object, String propertyPath)
           
static void setPropertyValue(Object object, String propertyPath, Object propertyValue)
           
static void setPropertyValue(Object object, String propertyPath, Object propertyValue, boolean ignoreUnknown)
           
static org.springframework.beans.BeanWrapper wrapObject(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectPropertyUtils

public ObjectPropertyUtils()
Method Detail

copyPropertiesToObject

public static void copyPropertiesToObject(Map<String,String> properties,
                                          Object object)

getPropertyDescriptors

public static PropertyDescriptor[] getPropertyDescriptors(Object object)

getPropertyType

public static Class<?> getPropertyType(Class<?> object,
                                       String propertyPath)

getPropertyType

public static Class<?> getPropertyType(Object object,
                                       String propertyPath)

getPropertyValue

public static <T> T getPropertyValue(Object object,
                                     String propertyPath)

initializeProperty

public static void initializeProperty(Object object,
                                      String propertyPath)

setPropertyValue

public static void setPropertyValue(Object object,
                                    String propertyPath,
                                    Object propertyValue)

setPropertyValue

public static void setPropertyValue(Object object,
                                    String propertyPath,
                                    Object propertyValue,
                                    boolean ignoreUnknown)

isReadableProperty

public static boolean isReadableProperty(Object object,
                                         String propertyPath)

isWritableProperty

public static boolean isWritableProperty(Object object,
                                         String propertyPath)

wrapObject

public static org.springframework.beans.BeanWrapper wrapObject(Object object)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.