|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.versification.OSISNames
public final class OSISNames
BibleNames is a static class that deals with Book name lookup conversions. We start counting at 1 for books (so Genesis=1, Revelation=66). However internally books start counting at 0 and go up to 65.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
(package private) static OSISNames |
instance
A singleton used to do initialization. |
private static String |
OSIS_KEY
|
private static Locale |
OSIS_LOCALE
The Locale of OSIS Names |
private static String[] |
osisBooks
Standard OSIS names for the book of the Bible, in mixed case |
private static Map |
osisMap
Standard OSIS names for the book of the Bible, in lowercase, generated at runtime |
Constructor Summary | |
---|---|
private |
OSISNames()
Ensure that we can not be instantiated |
Method Summary | |
---|---|
static String |
getName(int book)
Get the OSIS name for a book. |
static int |
getNumber(String find)
Get number of a book from its name. |
private static String |
getString(ResourceBundle resources,
String key)
|
private static void |
initialize()
Load up the resources for Bible book and section names, and cache the upper and lower versions of them. |
static 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 Locale OSIS_LOCALE
static final OSISNames instance
private static final String OSIS_KEY
private static String[] osisBooks
private static Map osisMap
Constructor Detail |
---|
private OSISNames()
Method Detail |
---|
public static String getName(int book) throws NoSuchVerseException
book
- The book number (1-66)
NoSuchVerseException
- If the book number is not validpublic static int getNumber(String find)
find
- The string to identify
public static boolean isBookName(String find)
find
- The string to identify
private static void initialize()
private static String getString(ResourceBundle resources, String key)
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |