|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester Proxy SDK Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.domain.java.JavaBeanProperties
public class JavaBeanProperties
A helper class that provides access to java properties as defined by the java bean pattern.
Field Summary | |
---|---|
protected static com.rational.test.ft.util.FtDebug |
debug
|
protected static int |
MAX_NUM_ARRAY_PROP
|
Constructor Summary | |
---|---|
JavaBeanProperties()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static com.rational.test.ft.util.FtDebug debug
protected static final int MAX_NUM_ARRAY_PROP
Constructor Detail |
---|
public JavaBeanProperties()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |