org.safs.rational
Class RGuiClassData

java.lang.Object
  extended by org.safs.GuiClassData
      extended by org.safs.rational.RGuiClassData

public class RGuiClassData
extends GuiClassData

External users would normally not use this class directly.
Consequently, the API and associated data is subject to change without notice.

Extends org.safs.GuiClassData to use Rational specific mechanisms for identifying class hierarchy in TestObjects.


Field Summary
 
Fields inherited from class org.safs.GuiClassData
ALT_NAME_TYPES, classassigns, classmap, CONTAINER_TYPES, CUSTOM_JAVA_OBJECTS_MAP, CUSTOM_OBJECT_TYPES_MAP, DEFAULT_JAVA_OBJECTS_MAP, DEFAULT_OBJECT_TYPE, DEFAULT_OBJECT_TYPES_MAP, DEFAULT_TYPE_SEPARATOR, POPUP_MENU_CLASSES, TOOLTIP_CONTAINER_TYPES, typesmap
 
Constructor Summary
RGuiClassData()
           
 
Method Summary
 java.lang.String getMappedClassType(java.lang.String classname, java.lang.Object anObject)
          Retrieves the class Type we have stored for the provided class name (if any).
protected  java.lang.String getMappedJavaClassType(java.lang.String classname, java.lang.Object anObject)
          Retrieves Java class Type we have stored for the provided class name (if any).
protected  java.lang.String getMappedNetClassType(java.lang.String classname, java.lang.Object anObject)
          Has the same functionality as getMappedJavaClassType() If we can not find the apporiate type for the parameter classname, we will try to use the ancestor of parameter anObject to get the mapping type.
 
Methods inherited from class org.safs.GuiClassData
classtypeContainsClassType, deduceOneClassType, getGenericObjectType, getResourceURL, getTypesAsArray, isAltNameType, isAssignableFrom, isContainerType, isMatched, isMatchedType, isPopupMenuClass, isToolTipContainerType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RGuiClassData

public RGuiClassData()
Method Detail

getMappedClassType

public java.lang.String getMappedClassType(java.lang.String classname,
                                           java.lang.Object anObject)
Retrieves the class Type we have stored for the provided class name (if any). We will cycle through all possible superclasses (except Object) looking for a match to a known superclass. For example, we want to find out that the input swingapp.SwingAppFrame--which we don't know about--is actually a subclass of javax.swing.JFrame--something we know how to handle.

Overrides the superclass to handle Rational TestObject proxies.

Overrides:
getMappedClassType in class GuiClassData
Parameters:
classname - the actual classname sought as a known class type. This is really just the name of the proxied class as provided in theObject. On rare occassions this can be NULL!!!
theObject - the TestObject proxy to evaluate for class hierarchy.
Returns:
the class Type (i.e. JavaPanel) for the provided class name (i.e. javax.swing.JPanel). Generic if no mapped type is found.

getMappedJavaClassType

protected java.lang.String getMappedJavaClassType(java.lang.String classname,
                                                  java.lang.Object anObject)
Retrieves Java class Type we have stored for the provided class name (if any). We will cycle through all possible superclasses (except Object) looking for a match to a known superclass. For example, we want to find out that the input swingapp.SwingAppFrame--which we don't know about--is actually a subclass of javax.swing.JFrame--something we know how to handle.

Overrides the superclass to handle Rational TestObject proxies.

Parameters:
classname - the actual classname sought as a known class type. This is really just the name of the proxied class as provided in theObject. On rare occassions this can be null!!!
theObject - the TestObject proxy to evaluate for class hierarchy.
Returns:
the class Type (i.e. JavaPanel) for the provided class name (i.e. javax.swing.JPanel). null if no mapped type is found.

getMappedNetClassType

protected java.lang.String getMappedNetClassType(java.lang.String classname,
                                                 java.lang.Object anObject)
Has the same functionality as getMappedJavaClassType() If we can not find the apporiate type for the parameter classname, we will try to use the ancestor of parameter anObject to get the mapping type.

Parameters:
classname - the actual classname sought as a known class type. This is really just the name of the proxied class as provided in theObject. On rare occassions this can be null!!!
anObject - the TestObject proxy to evaluate for class hierarchy.
Returns:
the class Type (i.e. ListView) for the provided class name (i.e. System.Windows.Forms.ListView). null if no mapped type is found.