Top Description Fields Constructors Methods
org.testng.internal

public Class PropertyUtils

extends Object
Class Inheritance
Static Imports
org.testng.annotations.Parameters.NULL_VALUE

Utility class for setting JavaBeans-style properties on instances.
Author
Cosmin Marginean, Apr 12, 2007

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <T> T
convertType(Class<T> type, String value, String paramName)

private static java.beans.PropertyDescriptor
getPropertyDescriptor(Class<?> targetClass, String propertyName)

public static Class<?>
getPropertyType(Class<?> instanceClass, String propertyName)

public static void
setProperty(Object instance, String name, String value)

public static void
setPropertyRealValue(Object instance, String name, Object value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

PropertyUtilsback to summary
public PropertyUtils()

Method Detail

convertTypeback to summary
public static <T> T convertType(Class<T> type, String value, String paramName)
Annotations
@SuppressWarnings:unchecked
getPropertyDescriptorback to summary
private static java.beans.PropertyDescriptor getPropertyDescriptor(Class<?> targetClass, String propertyName)
getPropertyTypeback to summary
public static Class<?> getPropertyType(Class<?> instanceClass, String propertyName)
setPropertyback to summary
public static void setProperty(Object instance, String name, String value)
setPropertyRealValueback to summary
public static void setPropertyRealValue(Object instance, String name, Object value)