FileDocCategorySizeDatePackage
PersonSearchModel.javaAPI DocExample1915Tue Oct 22 21:03:22 BST 2002com.oreilly.javaxp.junit

PersonSearchModel

public class PersonSearchModel extends Object implements SearchModel
author
Eric M. Burke
version
$Id: PersonSearchModel.java,v 1.1 2002/10/23 02:03:22 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);