[jsword-svn] jsword/java/jsword/org/crosswire/jsword/book/search/basic s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Wed Sep 29 15:21:25 MST 2004


Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/basic
In directory www.crosswire.org:/tmp/cvs-serv8429/java/jsword/org/crosswire/jsword/book/search/basic

Added Files:
	NullThesaurus.java 
Log Message:
Fixes for [JS-7] and [JS-6]
Lots of search work and re-factoring

--- NEW FILE: NullThesaurus.java ---
package org.crosswire.jsword.book.search.basic;

import java.util.ArrayList;
import java.util.Collection;

import org.crosswire.jsword.book.BookException;
import org.crosswire.jsword.book.search.Thesaurus;

/**
 * An implementation of Thesaurus that simply returns the word that the user
 * wanted similies of.
 * Useful if there is no other source of similarity data.
 * 
 * <p><table border='1' cellPadding='3' cellSpacing='0'>
 * <tr><td bgColor='white' class='TableRowColor'><font size='-7'>
 *
 * Distribution Licence:<br />
 * JSword is free software; you can redistribute it
 * and/or modify it under the terms of the GNU General Public License,
 * version 2 as published by the Free Software Foundation.<br />
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.<br />
 * The License is available on the internet
 * <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, or by writing to:
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 * MA 02111-1307, USA<br />
 * The copyright to this program is held by it's authors.
 * </font></td></tr></table>
 * @see gnu.gpl.Licence
 * @author Joe Walker [joe at eireneh dot com]
 * @version $Id: NullThesaurus.java,v 1.1 2004/09/29 22:21:23 joe Exp $
 */
public class NullThesaurus implements Thesaurus
{
    /* (non-Javadoc)
     * @see org.crosswire.jsword.book.search.Thesaurus#getStartsWith(java.lang.String)
     */
    public Collection getSynonyms(String word) throws BookException
    {
        Collection reply = new ArrayList();
        reply.add(word);
        return reply;
    }
}



More information about the jsword-svn mailing list