|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.versification.BibleNames
public final class BibleNames
BibleNames deals with locale sensitive BibleBook name lookup conversions.
The GNU Lesser General Public License for details.| Nested Class Summary | |
|---|---|
private class |
BibleNames.NameList
NameList is the internal, internationalize list of names for a locale. |
| Field Summary | |
|---|---|
private static BibleNames.NameList |
englishBibleNames
English BibleNames, or null when using the program's default locale |
private static BibleNames |
instance
|
private Map<Locale,BibleNames.NameList> |
localizedBibleNames
we cache the Localized Bible Names because there is quite a bit of processing going on for each individual Locale |
| Constructor Summary | |
|---|---|
private |
BibleNames()
This class is a singleton, enforced by a private constructor. |
| Method Summary | |
|---|---|
private static boolean |
containsLetter(String text)
This is simply a convenience function to wrap Character.isLetter() |
private BibleNames.NameList |
getBibleNamesForLocale(Locale locale)
Gets the bible names for a specific locale. |
BibleBook |
getBook(String find)
Get a book from its name. |
BookName |
getBookName(BibleBook book)
Get the BookName. |
private BibleNames.NameList |
getLocalizedBibleNames()
Gets the localized bible names, based on the LocaleProviderManager |
String |
getLongName(BibleBook book)
Get the full name of a book (e.g. |
String |
getPreferredName(BibleBook book)
Get the preferred name of a book. |
String |
getShortName(BibleBook book)
Get the short name of a book (e.g. |
static BibleNames |
instance()
Get the singleton instance of BibleNames. |
boolean |
isBook(String find)
Is the given string a valid book name. |
(package private) void |
load(Locale locale)
Load name information for BibleNames for a given locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private transient Map<Locale,BibleNames.NameList> localizedBibleNames
private static BibleNames.NameList englishBibleNames
private static final BibleNames instance
| Constructor Detail |
|---|
private BibleNames()
| Method Detail |
|---|
public static BibleNames instance()
public BookName getBookName(BibleBook book)
book - the desired book
public String getPreferredName(BibleBook book)
book - the desired book
public String getLongName(BibleBook book)
book - the book
public String getShortName(BibleBook book)
book - the book
public BibleBook getBook(String find)
find - The string to identify
public boolean isBook(String find)
find - The string to identify
void load(Locale locale)
locale - private BibleNames.NameList getLocalizedBibleNames()
LocaleProviderManager
private BibleNames.NameList getBibleNamesForLocale(Locale locale)
locale - the locale
private static boolean containsLetter(String text)
text - The string to be parsed
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||