Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/eireneh/bible/control/dictionary/Dictionary.java


1   
2   package com.eireneh.bible.control.dictionary;
3   
4   import com.eireneh.bible.book.*;
5   import com.eireneh.bible.book.raw.*;
6   
7   /**
8   * The Dictionary class is the beginnings of a powerful base of knowedge
9   * about various Languages. We need to move the data from RawBible.Word
10  * to here, but I'm not clear how to do that in a version independant
11  * way. 
12  * 
13  * <table border='1' cellPadding='3' cellSpacing='0' width="100%">
14  * <tr><td bgColor='white'class='TableRowColor'><font size='-7'>
15  * Distribution Licence:<br />
16  * Project B is free software; you can redistribute it
17  * and/or modify it under the terms of the GNU General Public License,
18  * version 2 as published by the Free Software Foundation.<br />
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * General Public License for more details.<br />
23  * The License is available on the internet
24  * <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, by writing to
25  * <i>Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
26  * MA 02111-1307, USA</i>, Or locally at the Licence link below.<br />
27  * The copyright to this program is held by it's authors.
28  * </font></td></tr></table>
29  * @see <a href='http://www.eireneh.com/servlets/Web'>Project B Home</a>
30  * @see docs.Licence
31  * @author Joe Walker
32  * @version D0.I0.T0
33  */
34  public class Dictionary
35  {
36      /**
37      * Basic constructor
38      */
39      public Dictionary()
40      {
41      }
42  
43      /**
44      * Find a list of words that start with the given word. I've made this
45      * private for the time being until we can make this work sensibly.
46      * @param word The word to search for
47      * @return An array of matches
48      */
49      private String[] getStartsWith(String word) throws BookException
50      {
51          Bible bible = Bibles.getDefaultBible();
52          return bible.getStartsWith(word);
53      }
54  }