org.crosswire.jsword.book
Class BookFilters

java.lang.Object
  extended by org.crosswire.jsword.book.BookFilters

public class BookFilters
extends Object

Some common implementations of BookFilter.

Distribution Licence:
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.
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.
The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
The copyright to this program is held by it's authors.

Version:
$Id: BookFilters.java,v 1.10 2005/03/23 02:05:38 dmsmith Exp $
Author:
Joe Walker [joe at eireneh dot com]
See Also:
Licence

Nested Class Summary
private static class BookFilters.AllBookFilter
          Filter for all books
private static class BookFilters.BiblesBookFilter
          Filter for all Bibles
private static class BookFilters.CommentariesBookFilter
          Filter for all commentaries
private static class BookFilters.DictionariesBookFilter
          Filter for all dictionaries
private static class BookFilters.GreekDefinitionsBookFilter
          Filter for all Greek Definition Dictionaries
private static class BookFilters.GreekParseBookFilter
          Filter for all Greek Parse/Morphology Dictionaries
private static class BookFilters.HebrewDefinitionsBookFilter
          Filter for all Hebrew Definition Dictionaries
private static class BookFilters.HebrewParseBookFilter
          Filter for all Hebrew Parse/Morphology Dictionaries
 
Field Summary
private static BookFilter allBookFilter
          Filter for all books
private static BookFilter biblesBookFilter
          Filter for all Bibles
private static BookFilter commentariesBookFilter
          Filter for all commentaries
private static BookFilter dictionariesBookFilter
          Filter for all dictionaries
private static BookFilter greekDefinitionsBookFilter
          Filter for all Greek Definition Dictionaries
private static BookFilter greekParseBookFilter
          Filter for all Greek Parse/Morphology Dictionaries
private static BookFilter hebrewDefinitionsBookFilter
          Filter for all Hebrew Definition Dictionaries
private static BookFilter hebrewParseBookFilter
          Filter for all Hebrew Parse/Morphology Dictionaries
 
Constructor Summary
private BookFilters()
          Ensure we cant be created
 
Method Summary
static BookFilter both(BookFilter b1, BookFilter b2)
          A filter that accepts Books that match two criteria.
static BookFilter either(BookFilter b1, BookFilter b2)
          A filter that accepts Books that match either of two criteria.
static BookFilter getAll()
          A simple default filter that returns everything
static BookFilter getBibles()
          A filter that accepts everything that implements Bible
static BookFilter getBooksByDriver(BookDriver driver)
          A filter that accepts Books that match either of two criteria.
static BookFilter getCommentaries()
          A filter that accepts everything that implements Commentary
static BookFilter getDictionaries()
          A filter that accepts everything that implements Dictionary
static BookFilter getGreekDefinitions()
          A filter that accepts everything that is a Greek Definition Dictionary
static BookFilter getGreekParse()
          A filter that accepts everything that is a Greek Parse/Morphology Dictionary
static BookFilter getHebrewDefinitions()
          A filter that accepts everything that is a Hebrew Definition Dictionary
static BookFilter getHebrewParse()
          A filter that accepts everything that is a Hebrew Parse/Morphology Dictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

allBookFilter

private static BookFilter allBookFilter
Filter for all books


biblesBookFilter

private static BookFilter biblesBookFilter
Filter for all Bibles


dictionariesBookFilter

private static BookFilter dictionariesBookFilter
Filter for all dictionaries


commentariesBookFilter

private static BookFilter commentariesBookFilter
Filter for all commentaries


greekDefinitionsBookFilter

private static BookFilter greekDefinitionsBookFilter
Filter for all Greek Definition Dictionaries


greekParseBookFilter

private static BookFilter greekParseBookFilter
Filter for all Greek Parse/Morphology Dictionaries


hebrewDefinitionsBookFilter

private static BookFilter hebrewDefinitionsBookFilter
Filter for all Hebrew Definition Dictionaries


hebrewParseBookFilter

private static BookFilter hebrewParseBookFilter
Filter for all Hebrew Parse/Morphology Dictionaries

Constructor Detail

BookFilters

private BookFilters()
Ensure we cant be created

Method Detail

getAll

public static BookFilter getAll()
A simple default filter that returns everything


getBibles

public static BookFilter getBibles()
A filter that accepts everything that implements Bible


getDictionaries

public static BookFilter getDictionaries()
A filter that accepts everything that implements Dictionary


getCommentaries

public static BookFilter getCommentaries()
A filter that accepts everything that implements Commentary


getGreekDefinitions

public static BookFilter getGreekDefinitions()
A filter that accepts everything that is a Greek Definition Dictionary


getGreekParse

public static BookFilter getGreekParse()
A filter that accepts everything that is a Greek Parse/Morphology Dictionary


getHebrewDefinitions

public static BookFilter getHebrewDefinitions()
A filter that accepts everything that is a Hebrew Definition Dictionary


getHebrewParse

public static BookFilter getHebrewParse()
A filter that accepts everything that is a Hebrew Parse/Morphology Dictionary


both

public static BookFilter both(BookFilter b1,
                              BookFilter b2)
A filter that accepts Books that match two criteria.


either

public static BookFilter either(BookFilter b1,
                                BookFilter b2)
A filter that accepts Books that match either of two criteria.


getBooksByDriver

public static BookFilter getBooksByDriver(BookDriver driver)
A filter that accepts Books that match either of two criteria.


Copyright ? 2003-2004