| java.lang.Object com.sun.addressbook.ABSearchTerm com.sun.addressbook.wabp.WabpABSearchTerm
WabpABSearchTerm | public class WabpABSearchTerm extends ABSearchTerm (Code) | | Address Book SearchTerm does the recursive computation of the search
filter from a combination of search terms. It implements the compute
command of the ABSearchTerm.
The search terms can be nested in a tree structure and combined with
an 'and' or an 'or' e.g. "ln=doe & (fn=john | fn=joe)"
|
Method Summary | |
public Object | compute() Appends the search terms recursively. |
WabpABSearchTerm | public WabpABSearchTerm(String name, String value, boolean exact)(Code) | | Initializes the search term object. This constructor indicates this search term
is an end node and does not contain recursive search terms.
Parameters: name - Name of the attribute to search on. Parameters: value - Value of the attribute to search. Parameters: exact - Boolean indicating whether search is 'exact'(true) or'contains'(false). |
WabpABSearchTerm | public WabpABSearchTerm(ABSearchTerm term, int op) throws ABStoreException(Code) | | Initializes the search term object. This constructor is used for the unary
operator NOT on the ABSearchTerm. Usage of this constructor means that ABSearchTerm
is recursive and is not the end node, and it will contain terms, op and not name,
value.
Parameters: The - recursive ABSearchTerm. Parameters: Operator - binding the recursive searchTerms. The value can only be NOT. |
WabpABSearchTerm | public WabpABSearchTerm(ABSearchTerm[] terms, int op) throws ABStoreException(Code) | | Initializes the search term object. This constructor is used for the binary
operators like AND and OR on the ABSearchTerms array. Usage of this constructor
means that ABSearchTerm is recursive and is not the end node, and it will
contain terms, op and not name, value.
Parameters: The - recursive ABSearchTerm array. Parameters: Operator - binding the recursive searchTerms. The values can be AND or OR. |
compute | public Object compute() throws ABStoreException(Code) | | Appends the search terms recursively. Also computes the exactness of each terms.
The computed search Filter object. |
|
|