public class JavaBeanProperties
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static com.rational.test.ft.util.FtDebug |
debug |
protected static int |
MAX_NUM_ARRAY_PROP |
| Constructor and Description |
|---|
JavaBeanProperties() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.lang.reflect.Method |
accessorMethod(java.lang.String propertyName,
java.lang.Class cls) |
static void |
getAllProperties(java.lang.Object testObject,
com.rational.test.ft.sys.HashtableEx properties,
IPropertyFilter filter)
Iterates across all the methods and
validates that the method is public not-static.
|
protected static java.lang.reflect.Method |
getArrayMethod(java.lang.Class cls,
java.lang.String name) |
protected static java.lang.reflect.Method |
getMethod(java.lang.Class cls,
java.lang.String name) |
protected static java.lang.reflect.Method |
getNonArrayMethod(java.lang.Class cls,
java.lang.String name) |
static void |
getNonValueProperties(java.lang.Class cls,
com.rational.test.ft.sys.HashtableEx properties,
IPropertyFilter filter) |
protected static java.lang.Class |
getObjectType(java.lang.Object value) |
static java.lang.Object |
getProperty(java.lang.Object testObject,
java.lang.String property)
Fetches the specified property associated with the control being evaluated;
registers it with the supplied object.
|
static java.lang.reflect.Method |
getSetMethodForNullProperty(java.lang.Class testObjectClass,
java.lang.String propertyName)
get the set method that can be used to set a value to null without specifying
the property type.
|
protected static boolean |
hasMethod(java.lang.Class cls,
java.lang.String name) |
protected static boolean |
isReturnClassAcceptable(java.lang.reflect.Method method) |
protected static java.lang.String |
modifierName(java.lang.String name,
java.lang.Class objClass,
java.lang.Class[] clss) |
protected static java.lang.String |
propertyName(java.lang.String methodName) |
static void |
setProperty(java.lang.Object testObject,
java.lang.String propertyName,
java.lang.Object value)
Sets the specified property to the supplied value.
|
protected static com.rational.test.ft.util.FtDebug debug
protected static final int MAX_NUM_ARRAY_PROP
protected static boolean isReturnClassAcceptable(java.lang.reflect.Method method)
protected static java.lang.reflect.Method getMethod(java.lang.Class cls,
java.lang.String name)
protected static java.lang.reflect.Method getArrayMethod(java.lang.Class cls,
java.lang.String name)
protected static java.lang.reflect.Method getNonArrayMethod(java.lang.Class cls,
java.lang.String name)
protected static java.lang.reflect.Method accessorMethod(java.lang.String propertyName,
java.lang.Class cls)
public static void getNonValueProperties(java.lang.Class cls,
com.rational.test.ft.sys.HashtableEx properties,
IPropertyFilter filter)
public static void getAllProperties(java.lang.Object testObject,
com.rational.test.ft.sys.HashtableEx properties,
IPropertyFilter filter)
public static java.lang.Object getProperty(java.lang.Object testObject,
java.lang.String property)
public static java.lang.reflect.Method getSetMethodForNullProperty(java.lang.Class testObjectClass,
java.lang.String propertyName)
public static void setProperty(java.lang.Object testObject,
java.lang.String propertyName,
java.lang.Object value)
RbtInvalidPropertyType - If the specified property cannot
be located or set, this exception
should be thrown.property - The name of the property that should be located and
set.value - The value to set the property value to.protected static boolean hasMethod(java.lang.Class cls,
java.lang.String name)
protected static java.lang.String modifierName(java.lang.String name,
java.lang.Class objClass,
java.lang.Class[] clss)
protected static java.lang.Class getObjectType(java.lang.Object value)
protected static java.lang.String propertyName(java.lang.String methodName)