|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.versification.BibleNames
final class BibleNames
BibleNames deals with locale sensitive BibleBook name lookup conversions.
for license details.
The copyright to this program is held by it's authors.| Field Summary | |
|---|---|
private static String |
ALT_KEY
|
private Map<String,BookName> |
altBooksMap
Alternative shortened names for the book of the Bible, normalized, generated at runtime |
private BookName[] |
books
|
private static String |
FULL_KEY
|
private Map<String,BookName> |
fullBooksMap
The full names of the book of the Bible, normalized, generated at runtime |
private Locale |
locale
The locale for the Bible Names |
private static String |
SHORT_KEY
|
private Map<String,BookName> |
shortBooksMap
Standard shortened names for the book of the Bible, normalized, generated at runtime. |
| Constructor Summary | |
|---|---|
BibleNames(Locale locale)
Create BibleNames for the given locale |
|
| Method Summary | |
|---|---|
(package private) BibleBook |
getBook(String find)
Get number of a book from its name. |
(package private) BookName |
getBookName(BibleBook book)
|
(package private) String |
getLongName(BibleBook book)
Get the full name of a book (e.g. |
(package private) String |
getPreferredName(BibleBook book)
Get the preferred name of a book. |
(package private) String |
getShortName(BibleBook book)
Get the short name of a book (e.g. |
private String |
getString(ResourceBundle resources,
String key)
|
private void |
initialize()
Load up the resources for Bible book and section names, and cache the upper and lower versions of them. |
(package private) boolean |
isBookName(String find)
Is the given string a valid book name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String FULL_KEY
private static final String SHORT_KEY
private static final String ALT_KEY
private BookName[] books
private Locale locale
private Map<String,BookName> fullBooksMap
private Map<String,BookName> shortBooksMap
private Map<String,BookName> altBooksMap
| Constructor Detail |
|---|
BibleNames(Locale locale)
| Method Detail |
|---|
BookName getBookName(BibleBook book)
String getPreferredName(BibleBook book)
book - The book of the Bible
String getLongName(BibleBook book)
book - The book of the Bible
String getShortName(BibleBook book)
book - The book of the Bible
BibleBook getBook(String find)
find - The string to identify
boolean isBookName(String find)
find - The string to identify
private void initialize()
private String getString(ResourceBundle resources,
String key)
|
Copyright ? 2003-2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||