All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.category.SelectorItemTester

java.lang.Object
   |
   +----com.sgi.sysadm.category.SelectorItemTester

public class SelectorItemTester
extends Object
implements ItemTester
This is a simple ItemTester which tests Items by comparing their selectors.


Constructor Index

 o SelectorItemTester(String)
Creates a SelectorItemTester which will compare Items to the given selector.

Method Index

 o testItem(Item)
Determine whether the Item's selector matches this SelectorItemTester's selector.

Constructors

 o SelectorItemTester
 public SelectorItemTester(String selector)
Creates a SelectorItemTester which will compare Items to the given selector.

Parameters:
selector - String to compare to Items' selectors. Must not be null.

Methods

 o testItem
 public ItemTestResult testItem(Item item)
Determine whether the Item's selector matches this SelectorItemTester's selector.

Parameters:
item - Item to be tested.
Returns:
ItemTestResult.TEST_PASSED or ItemTestResult.TEST_FAILED.

All Packages  Class Hierarchy  This Package  Previous  Next  Index