|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.versification.BibleInfo
@Deprecated public final class BibleInfo
BibleInfo is a static class that deals with Bible book names, and conversion to and from ordinal number and Verse.
This class is likely to be reworked in it's entirety. It is really only true of the KJV Bible. It is not true of other versifications such as Luther's.
for license details.
The copyright to this program is held by it's authors.| Field Summary | |
|---|---|
static int |
TESTAMENT_NEW
Deprecated. use Testament.NEW instead. |
static int |
TESTAMENT_OLD
Deprecated. use Testament.OLD instead. |
private static Versification |
v11n
Deprecated. |
| Constructor Summary | |
|---|---|
private |
BibleInfo()
Deprecated. Ensure that we can not be instantiated |
| Method Summary | |
|---|---|
static int |
booksInBible()
Deprecated. use Versification.getBooks() and BibleBookList.getBookCount() instead |
static int |
chaptersInBible()
Deprecated. do not use |
static int |
chaptersInBook(BibleBook book)
Deprecated. use Versification.getLastChapter(BibleBook) instead |
static Verse |
decodeOrdinal(int ordinal)
Deprecated. use Versification.decodeOrdinal(int) instead |
static BibleBook |
getBook(String find)
Deprecated. use BibleBook.getBook(String) |
static BookName |
getBookName(BibleBook book)
Deprecated. Use BibleBook.getBookName() instead. |
static BibleBook[] |
getBooks()
Deprecated. use Versification.getBooks() instead |
static int |
getCase()
Deprecated. use BookName.getCase() |
static int |
getCount(Testament testament)
Deprecated. use Versification.getCount(Testament) instead |
static CaseType |
getDefaultCase()
Deprecated. use BookName.getDefaultCase() |
static String |
getLongBookName(BibleBook book)
Deprecated. Use BibleBook.getLongName() instead. |
static BibleBook |
getNextBook(BibleBook book)
Deprecated. use Versification.getBooks().getNextBook(BibleBook) instead see Versification.getBooks() and BibleBookList.getNextBook(BibleBook). |
static int |
getOrdinal(Verse verse)
Deprecated. use Versification#getOrdinal() instead |
static String |
getOSISName(BibleBook book)
Deprecated. Use BibleBook.getOSIS() instead. |
static String |
getPreferredBookName(BibleBook book)
Deprecated. Use BibleBook.getPreferredName() instead. |
static BibleBook |
getPreviousBook(BibleBook book)
Deprecated. use Versification.getBooks().getPreviousBook(BibleBook) instead see Versification.getBooks() and BibleBookList.getPreviousBook(BibleBook). |
static String |
getShortBookName(BibleBook book)
Deprecated. Use BibleBook.getShortName() instead. |
static Testament |
getTestament(int ordinal)
Deprecated. use Versification.getTestament(int) instead |
static int |
getTestamentOrdinal(int ordinal)
Deprecated. use Versification#getTestamentOrdinal() instead |
static boolean |
isBookName(String find)
Deprecated. use BibleBook.isBook(String) |
static boolean |
isFullBookName()
Deprecated. use BookName.isFullBookName() |
static int |
maximumOrdinal()
Deprecated. use Versification.maximumOrdinal() instead |
static Verse |
patch(BibleBook book,
int chapter,
int verse)
Deprecated. use Versification.patch(BibleBook, int, int) instead |
static void |
setCase(CaseType newBookCase)
Deprecated. use BookName.setCase(CaseType) |
static void |
setCase(int bookCase)
Deprecated. use BookName.setCase(int) |
static void |
setFullBookName(boolean fullName)
Deprecated. use BookName.setFullBookName(boolean) |
static void |
validate(BibleBook book,
int chapter,
int verse)
Deprecated. use Versification.validate(BibleBook, int, int) instead |
static int |
verseCount(Verse verse1,
Verse verse2)
Deprecated. Use Versification#subtract(Verse, Verse) instead. |
static int |
versesInBible()
Deprecated. use maximumOrdinal() |
static int |
versesInChapter(BibleBook book,
int chapter)
Deprecated. use Versification.getLastVerse(BibleBook, int) instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final int TESTAMENT_OLD
Testament.OLD instead.
@Deprecated public static final int TESTAMENT_NEW
Testament.NEW instead.
private static Versification v11n
| Constructor Detail |
|---|
private BibleInfo()
| Method Detail |
|---|
@Deprecated public static BibleBook getNextBook(BibleBook book)
Versification.getBooks() and BibleBookList.getNextBook(BibleBook).
book -
@Deprecated public static BibleBook getPreviousBook(BibleBook book)
Versification.getBooks() and BibleBookList.getPreviousBook(BibleBook).
book -
@Deprecated public static BibleBook[] getBooks()
Versification.getBooks() instead
@Deprecated public static int chaptersInBook(BibleBook book)
Versification.getLastChapter(BibleBook) instead
book - The book part of the reference.
@Deprecated
public static int versesInChapter(BibleBook book,
int chapter)
Versification.getLastVerse(BibleBook, int) instead
book - The book part of the reference.chapter - The current chapter
@Deprecated public static int maximumOrdinal()
Versification.maximumOrdinal() instead
@Deprecated public static int getOrdinal(Verse verse)
Versification#getOrdinal() instead
verse - The verse to convert
@Deprecated public static int getTestamentOrdinal(int ordinal)
Versification#getTestamentOrdinal() instead
verse - The verse to convert
@Deprecated public static Testament getTestament(int ordinal)
Versification.getTestament(int) instead
@Deprecated public static int getCount(Testament testament)
Versification.getCount(Testament) instead
testament - The testament to count. If null, then all testaments.
@Deprecated public static Verse decodeOrdinal(int ordinal)
Versification.decodeOrdinal(int) instead
ordinal - The ordinal number of the verse
NoSuchVerseException - If the reference is illegal
@Deprecated
public static void validate(BibleBook book,
int chapter,
int verse)
throws NoSuchVerseException
Versification.validate(BibleBook, int, int) instead
book - The book part of the reference.chapter - The chapter part of the reference.verse - The verse part of the reference.
NoSuchVerseException - If the reference is illegal
@Deprecated
public static Verse patch(BibleBook book,
int chapter,
int verse)
Versification.patch(BibleBook, int, int) instead
There is another patch system that allows us to use large numbers to mean "the end of" so "Gen 1:32".otherPatch() gives "Gen 1:31". This could be useful to allow the user to enter things like "Gen 1:99" meaning the end of the chapter. Or "Isa 99:1" to mean the last chapter in Isaiah verse 1 or even "Rev 99:99" to mean the last verse in the Bible.
However I have not implemented this because I've used a different convention: "Gen 1:$" (OLB compatible) or "Gen 1:ff" (common commentary usage) to mean the end of the chapter - So the functionality is there anyway.
I think that getting into the habit of typing "Gen 1:99" is bad. It could be the source of surprises "Psa 119:99" is not what you'd might expect, and neither is "Psa 99:1" is you wanted the last chapter in Psalms - expecting us to type "Psa 999:1" seems like we're getting silly.
However despite this maybe we should provide the functionality anyway.
book - the book to obtainchapter - the supposed chapterverse - the supposed verse
@Deprecated public static int booksInBible()
Versification.getBooks() and BibleBookList.getBookCount() instead
@Deprecated
public static BookName getBookName(BibleBook book)
throws NoSuchVerseException
BibleBook.getBookName() instead.
book - The book of the Bible
NoSuchVerseException - If the book is not valid@Deprecated public static BibleBook getBook(String find)
BibleBook.getBook(String)
find - The string to identify
@Deprecated public static boolean isBookName(String find)
BibleBook.isBook(String)
find - The string to identify
@Deprecated public static int chaptersInBible()
@Deprecated public static int versesInBible()
maximumOrdinal()
@Deprecated
public static String getPreferredBookName(BibleBook book)
throws NoSuchVerseException
BibleBook.getPreferredName() instead.
book - The book of the Bible
NoSuchVerseException - If the book is not valid
@Deprecated
public static String getLongBookName(BibleBook book)
throws NoSuchVerseException
BibleBook.getLongName() instead.
book - The book of the Bible
NoSuchVerseException - If the book is not valid
@Deprecated
public static String getShortBookName(BibleBook book)
throws NoSuchVerseException
BibleBook.getShortName() instead.
book - The book of the Bible
NoSuchVerseException - If the book is not valid
@Deprecated
public static String getOSISName(BibleBook book)
throws NoSuchVerseException
BibleBook.getOSIS() instead.
book - The book of the Bible
NoSuchVerseException - If the book is not valid
@Deprecated
public static int verseCount(Verse verse1,
Verse verse2)
throws NoSuchVerseException
Versification#subtract(Verse, Verse) instead.
verse1 - The earlier verse.verse2 - The later verse.
NoSuchVerseException - If either reference is illegal@Deprecated public static void setCase(int bookCase)
BookName.setCase(int)
bookCase - The new case to use for reporting book names
IllegalArgumentException - If the case is not between 0 and 2getCase()@Deprecated public static int getCase()
BookName.getCase()
setCase(CaseType)@Deprecated public static void setCase(CaseType newBookCase)
BookName.setCase(CaseType)
newBookCase - The new case to use for reporting book names
IllegalArgumentException - If the case is not between 0 and 2getCase()@Deprecated public static boolean isFullBookName()
BookName.isFullBookName()
setFullBookName(boolean)@Deprecated public static void setFullBookName(boolean fullName)
BookName.setFullBookName(boolean)
fullName - The new case to use for reporting book namesisFullBookName()@Deprecated public static CaseType getDefaultCase()
BookName.getDefaultCase()
setCase(int)
|
Copyright ? 2003-2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||