public final class BookFilters extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Class and Description |
---|---|
(package private) static class |
BookFilters.AllBookFilter
Filter for all books
|
(package private) static class |
BookFilters.BookCategoryFilter
Filter for books by category
|
static class |
BookFilters.BookFeatureFilter
Filter for books by feature
|
(package private) static class |
BookFilters.CustomBookFilter
Custom Filter
|
(package private) static class |
BookFilters.NotBookCategoryFilter
Filter for books by category
|
Modifier and Type | Field and Description |
---|---|
private static boolean |
commentariesWithBibles
Whether biblesBookFilter includes commentaries.
|
Modifier | Constructor and Description |
---|---|
private |
BookFilters()
Ensure we can't be created
|
Modifier and Type | Method and Description |
---|---|
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 or Commentary,
when commentaries are listed with Bibles.
|
static BookFilter |
getBooksByDriver(BookDriver driver)
A filter that accepts Books that match by book driver.
|
static BookFilter |
getCommentaries()
A filter that accepts everything that implements Commentary
|
static BookFilter |
getCustom(String match)
A simple default filter that returns everything.
|
static BookFilter |
getDailyDevotionals()
A filter that accepts everything that implements DailyDevotionals
|
static BookFilter |
getDictionaries()
A filter that accepts everything that implements Dictionary
|
static BookFilter |
getGeneralBooks()
A filter that accepts everything that implements GeneralBook
|
static BookFilter |
getGlossaries()
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
|
static BookFilter |
getMaps()
A filter that accepts everything that implements Maps
|
static BookFilter |
getNonBibles()
A filter that accepts everything that's not a Bible or a Commentary, when
commentaries are listed with Bibles.
|
static BookFilter |
getOnlyBibles()
A filter that accepts everything that implements Bible.
|
static boolean |
isCommentariesWithBibles()
Determine whether the getBible should return the current Bible or the
user's chosen default.
|
static void |
setCommentariesWithBibles(boolean current)
Establish whether the getBible should return the current Bible or the
user's chosen default.
|
private static boolean commentariesWithBibles
public static BookFilter getAll()
public static BookFilter getBibles()
public static BookFilter getOnlyBibles()
public static BookFilter getNonBibles()
public static BookFilter getDictionaries()
public static BookFilter getGlossaries()
public static BookFilter getDailyDevotionals()
public static BookFilter getCommentaries()
public static BookFilter getGeneralBooks()
public static BookFilter getMaps()
public static BookFilter getGreekDefinitions()
public static BookFilter getGreekParse()
public static BookFilter getHebrewDefinitions()
public static BookFilter getHebrewParse()
public static boolean isCommentariesWithBibles()
public static void setCommentariesWithBibles(boolean current)
current
- whether commentaries should be returned together with Biblespublic static BookFilter both(BookFilter b1, BookFilter b2)
b1
- the first filter criteriab2
- the second filter criteriapublic static BookFilter either(BookFilter b1, BookFilter b2)
b1
- the first filter criteriab2
- the second filter criteriapublic static BookFilter getBooksByDriver(BookDriver driver)
driver
- the driver to matchpublic static BookFilter getCustom(String match)
initials=ESV;type=Bible;driverName=Sword
match
- a ; separated list of properties (of Book) to matchBook