public class DriverFilter
extends java.lang.Object
init() method.| Constructor and Description |
|---|
DriverFilter()
Construct an empty DriverFilter instance.
|
DriverFilter(org.w3c.dom.Element filterElement)
Construct a DriverFilter instance based on a driver-filter element
from an XDS document
|
| Modifier and Type | Method and Description |
|---|---|
ClassFilter |
getClassFilter(java.lang.String className)
Return the ClassFilter corresponding to the passed class name.
|
boolean |
passClass(java.lang.String className)
Return
true if the passed class is in the filter. |
public DriverFilter(org.w3c.dom.Element filterElement)
filterElement - The DOM element containing the filter informationpublic DriverFilter()
This is useful for constructing an empty filter so that the filter reference doesn't have to be checked for 0 each time it is used if no filter is provided (which shouldn't happen anyway).
public boolean passClass(java.lang.String className)
true if the passed class is in the filter.
This is a convenience method that is implemented using getClassFilter().
className - The name of the class to check.true if class is in filter.public ClassFilter getClassFilter(java.lang.String className)
className - The name of the class for which the filter is to be returned.ClassFilter for the passed class name, or null if passed class isn't
in filter.