org.safs.selenium
Class SGuiClassData

java.lang.Object
  extended byorg.safs.GuiClassData
      extended byorg.safs.selenium.SGuiClassData

public class SGuiClassData
extends GuiClassData

Part of the required implementation to support SAFS "standard" recognition strings. 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 Selenium specific mechanisms for identifying class hierarchy in Objects.

Since:
AUG 15, 2006

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, typesmap
 
Constructor Summary
SGuiClassData()
          Constructor relying on SeleniumGUIUtilities for LocalServer access.
 
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).
 
Methods inherited from class org.safs.GuiClassData
classtypeContainsClassType, getGenericObjectType, isAltNameType, isAssignableFrom, isContainerType, isMatched, isMatchedType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SGuiClassData

public SGuiClassData()
Constructor relying on SeleniumGUIUtilities for LocalServer access. This is typically used for "normal" operation.

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 Selenium object 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.
Returns:
the class Type (i.e. JavaPanel) for the provided class name (i.e. javax.swing.JPanel). null if no mapped type is found.