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

jswordcvs at crosswire.org jswordcvs at crosswire.org
Mon May 16 17:43:17 MST 2005


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

Modified Files:
	Index.java Searcher.java SearchSyntaxFactory.java 
	IndexManagerFactory.java IndexManager.java SearchType.java 
	SearchRequest.java SearcherFactory.java SearchSyntax.java 
	SearchModifier.java 
Log Message:
Added support for CheckStyle plugin.
Added a few more CheckStyle rules.
Fixed a spelling mistake.

Index: SearchSyntax.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/SearchSyntax.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SearchSyntax.java	10 May 2005 02:39:21 -0000	1.4
--- SearchSyntax.java	17 May 2005 00:43:15 -0000	1.5
***************
*** 26,30 ****
   * appropriate for the Searcher.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [ dmsmith555 at yahoo dot com]
--- 26,30 ----
   * appropriate for the Searcher.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [ dmsmith555 at yahoo dot com]

Index: SearchRequest.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/SearchRequest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SearchRequest.java	10 May 2005 02:39:21 -0000	1.4
--- SearchRequest.java	17 May 2005 00:43:15 -0000	1.5
***************
*** 25,29 ****
   * A SearchRequest consists of a string and modifiers for the search.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
--- 25,29 ----
   * A SearchRequest consists of a string and modifiers for the search.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
***************
*** 34,42 ****
       * @return the modifications to this SearchRequest
       */
!     public SearchModifier getSearchModifier();
  
      /**
       * @return the request that is being operated upon
       */
!     public String getRequest();
  }
--- 34,42 ----
       * @return the modifications to this SearchRequest
       */
!     SearchModifier getSearchModifier();
  
      /**
       * @return the request that is being operated upon
       */
!     String getRequest();
  }

Index: SearchSyntaxFactory.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/SearchSyntaxFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SearchSyntaxFactory.java	10 May 2005 02:39:21 -0000	1.4
--- SearchSyntaxFactory.java	17 May 2005 00:43:15 -0000	1.5
***************
*** 28,36 ****
   * A Factory class for SearchSyntax.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
   */
! public class SearchSyntaxFactory
  {
      /**
--- 28,36 ----
   * A Factory class for SearchSyntax.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
   */
! public final class SearchSyntaxFactory
  {
      /**

Index: IndexManagerFactory.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/IndexManagerFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** IndexManagerFactory.java	10 May 2005 02:39:21 -0000	1.4
--- IndexManagerFactory.java	17 May 2005 00:43:15 -0000	1.5
***************
*** 28,37 ****
   * A Factory class for IndexManagers.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
  
   */
! public class IndexManagerFactory
  {
      /**
--- 28,37 ----
   * A Factory class for IndexManagers.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
  
   */
! public final class IndexManagerFactory
  {
      /**

Index: Searcher.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/Searcher.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Searcher.java	10 May 2005 02:39:21 -0000	1.9
--- Searcher.java	17 May 2005 00:43:15 -0000	1.10
***************
*** 28,32 ****
   * The central interface to all searching.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 28,32 ----
   * The central interface to all searching.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
***************
*** 38,42 ****
       * @param index The Index to query for words
       */
!     public void init(Index index);
  
      /**
--- 38,42 ----
       * @param index The Index to query for words
       */
!     void init(Index index);
  
      /**
***************
*** 45,49 ****
       * @return The matching verses
       */
!     public Key search(SearchRequest request) throws BookException;
  
      /**
--- 45,49 ----
       * @return The matching verses
       */
!     Key search(SearchRequest request) throws BookException;
  
      /**
***************
*** 52,55 ****
       * @return The matching verses
       */
!     public Key search(String request) throws BookException;
  }
--- 52,55 ----
       * @return The matching verses
       */
!     Key search(String request) throws BookException;
  }

Index: IndexManager.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/IndexManager.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** IndexManager.java	10 May 2005 02:39:21 -0000	1.7
--- IndexManager.java	17 May 2005 00:43:15 -0000	1.8
***************
*** 30,34 ****
   * A way of managing a way of creating a search index for a book.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 30,34 ----
   * A way of managing a way of creating a search index for a book.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
***************
*** 39,48 ****
       * Detects if index data has been stored for this Bible already
       */
!     public boolean isIndexed(Book book);
  
      /**
       * Create a new Searcher.
       */
!     public Index getIndex(Book book) throws BookException;
  
      /**
--- 39,48 ----
       * Detects if index data has been stored for this Bible already
       */
!     boolean isIndexed(Book book);
  
      /**
       * Create a new Searcher.
       */
!     Index getIndex(Book book) throws BookException;
  
      /**
***************
*** 50,54 ****
       * of this method the index should be usable.
       */
!     public void scheduleIndexCreation(Book book);
  
      /**
--- 50,54 ----
       * of this method the index should be usable.
       */
!     void scheduleIndexCreation(Book book);
  
      /**
***************
*** 58,62 ****
       * @param tempDest The URL of a zip file to install
       */
!     public void installDownloadedIndex(Book book, URL tempDest) throws BookException;
  
      /**
--- 58,62 ----
       * @param tempDest The URL of a zip file to install
       */
!     void installDownloadedIndex(Book book, URL tempDest) throws BookException;
  
      /**
***************
*** 64,67 ****
       * you created.
       */
!     public void deleteIndex(Book book) throws BookException;
  }
--- 64,67 ----
       * you created.
       */
!     void deleteIndex(Book book) throws BookException;
  }

Index: SearchType.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/SearchType.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** SearchType.java	10 May 2005 02:39:21 -0000	1.5
--- SearchType.java	17 May 2005 00:43:15 -0000	1.6
***************
*** 27,31 ****
   * An Enumeration of the possible types of Searches.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
--- 27,31 ----
   * An Enumeration of the possible types of Searches.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
***************
*** 254,258 ****
          START_WORDS,
          SPELL_WORDS,
!         RANGE
      };
  
--- 254,258 ----
          START_WORDS,
          SPELL_WORDS,
!         RANGE,
      };
  

Index: Index.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/Index.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Index.java	10 May 2005 02:39:21 -0000	1.13
--- Index.java	17 May 2005 00:43:15 -0000	1.14
***************
*** 29,33 ****
   * An index into a body of text that knows what words exist and where they are.
   *
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
--- 29,33 ----
   * An index into a body of text that knows what words exist and where they are.
   *
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
***************
*** 45,49 ****
       * @return The references to the word
       */
!     public Key find(String query) throws BookException;
  
      /**
--- 45,49 ----
       * @return The references to the word
       */
!     Key find(String query) throws BookException;
  
      /**
***************
*** 55,59 ****
       * @see org.crosswire.jsword.passage.KeyFactory#getKey(String)
       */
!     public Key getKey(String name) throws NoSuchKeyException;
  
      /**
--- 55,59 ----
       * @see org.crosswire.jsword.passage.KeyFactory#getKey(String)
       */
!     Key getKey(String name) throws NoSuchKeyException;
  
      /**
***************
*** 63,67 ****
       * @param modifier how to modify the search and its results.
       */
!     public void setSearchModifier(SearchModifier modifier);
  
      /**
--- 63,67 ----
       * @param modifier how to modify the search and its results.
       */
!     void setSearchModifier(SearchModifier modifier);
  
      /**
***************
*** 69,72 ****
       * @return the current search modifier, or null if there is not one.
       */
!     public SearchModifier getSearchModifier();
  }
--- 69,72 ----
       * @return the current search modifier, or null if there is not one.
       */
!     SearchModifier getSearchModifier();
  }

Index: SearchModifier.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/SearchModifier.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SearchModifier.java	10 May 2005 02:39:21 -0000	1.4
--- SearchModifier.java	17 May 2005 00:43:15 -0000	1.5
***************
*** 26,30 ****
   * can be done to a search.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
--- 26,30 ----
   * can be done to a search.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author DM Smith [dmsmith555 at yahoo dot com]
***************
*** 35,38 ****
       * @return true if the results of the search request should be ranked
       */
!     public boolean isRanked();
  }
--- 35,38 ----
       * @return true if the results of the search request should be ranked
       */
!     boolean isRanked();
  }

Index: SearcherFactory.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/SearcherFactory.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SearcherFactory.java	10 May 2005 02:39:21 -0000	1.4
--- SearcherFactory.java	17 May 2005 00:43:15 -0000	1.5
***************
*** 29,37 ****
   * Factory method for creating a new Searcher.
   * 
!  * @see gnu.gpl.Licence for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public class SearcherFactory
  {
      /**
--- 29,37 ----
   * Factory method for creating a new Searcher.
   * 
!  * @see gnu.gpl.License for license details.
   *      The copyright to this program is held by it's authors.
   * @author Joe Walker [joe at eireneh dot com]
   */
! public final class SearcherFactory
  {
      /**



More information about the jsword-svn mailing list