FileDocCategorySizeDatePackage
PersonSearchModel.javaAPI DocExample1947Tue Sep 10 21:41:58 BST 2002com.oreilly.javaxp.junitperf

PersonSearchModel

public class PersonSearchModel extends Object implements SearchModel
author
Eric M. Burke
version
$Id: PersonSearchModel.java,v 1.4 2002/09/11 02:41:58 jepc Exp $

Fields Summary
private Person
eric
private Person
jen
private Person
tanner
private Person
aidan
Constructors Summary
Methods Summary
private java.util.ListdummySearch(java.lang.Object searchCriteria)

        if ("*".equals(searchCriteria)) {
            List results = new ArrayList();
            results.add(this.eric);
            results.add(this.jen);
            results.add(this.tanner);
            results.add(this.aidan);
            return results;
        } else if ("eric".equals(searchCriteria)) {
            List results = new ArrayList();
            results.add(this.eric);
            return results;
        }
        return null;
    
public voidsearch(java.lang.Object searchCriteria, SearchModelListener listener)



          
        new Searcher(searchCriteria, listener).start();
    
public java.util.Listsearch(java.lang.Object searchCriteria)

        return dummySearch(searchCriteria);