Package org.netbeans.jemmy.drivers
Class SupportiveDriver
java.lang.Object
org.netbeans.jemmy.drivers.SupportiveDriver
- All Implemented Interfaces:
Driver
Allows to declare supported operator classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
ThrowsUnsupportedOperatorException
exception if parameter's class is not in list of supported classes.Class[]
Returns array of operator classes which are supported by this driver.
-
Constructor Details
-
SupportiveDriver
Creates an instance.- Parameters:
supported
- Array of operator classes which are supported by this driver.
-
-
Method Details
-
checkSupported
ThrowsUnsupportedOperatorException
exception if parameter's class is not in list of supported classes.- Parameters:
oper
- Operator whose class should be checked.- Throws:
UnsupportedOperatorException
-
getSupported
Returns array of operator classes which are supported by this driver.- Specified by:
getSupported
in interfaceDriver
- Returns:
- an array of supported operators' classes.
-