org.netbeans.jemmy.drivers
Class SupportiveDriver

java.lang.Object
  extended by org.netbeans.jemmy.drivers.SupportiveDriver
All Implemented Interfaces:
Driver

public abstract class SupportiveDriver
extends java.lang.Object
implements Driver

Allows to declare supported operator classes.


Constructor Summary
SupportiveDriver(java.lang.Class[] supported)
          Creates an instance.
 
Method Summary
 java.lang.Class[] getSupported()
          Returns array of operator classes which are supported by this driver.
 void checkSupported(ComponentOperator oper)
          Throws UnsupportedOperatorException exception if parameter's class is not in list of supported classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SupportiveDriver

public SupportiveDriver(java.lang.Class[] supported)
Creates an instance.

Parameters:
supported - Array of operator classes which are supported by this driver.
Method Detail

checkSupported

public void checkSupported(ComponentOperator oper)
Throws UnsupportedOperatorException exception if parameter's class is not in list of supported classes.

Parameters:
oper - Operator whose class should be checked.
Throws:
UnsupportedOperatorException

getSupported

public java.lang.Class[] getSupported()
Returns array of operator classes which are supported by this driver.

Specified by:
getSupported in interface Driver
Returns:
an array of supported operators' classes.