|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.versification.SectionNames
public final class SectionNames
SectionNames deals with traditional sections of the Bible.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
static byte |
GOSPELS_AND_ACTS
|
static byte |
HISTORY
|
static byte |
LETTERS
|
static byte |
MAJOR_PROPHETS
|
static byte |
MINOR_PROPHETS
|
static byte |
PENTATEUCH
Handy section finder. |
static byte |
POETRY
|
static byte |
REVELATION
|
private static String |
SECTION_KEY
|
private String[] |
sections
Standard names for the sections |
private static int |
SECTIONS_IN_BIBLE
Constant for the number of sections in the Bible |
Constructor Summary | |
---|---|
SectionNames()
Create a SectionNames object |
Method Summary | |
---|---|
static int |
getSection(int book)
What section is this book a part of? |
String |
getSectionName(int section)
Get the full 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. |
static boolean |
isGospel(int book)
Is this book part of the Gospels? |
static boolean |
isGospelOrActs(int book)
Is this book part of the Gospels or Acts? |
static boolean |
isHistory(int book)
Is this book part of the OT History? |
static boolean |
isLetter(int book)
Is this book part of the letters? |
static boolean |
isMajorProphet(int book)
Is this book part of the major prophets? |
static boolean |
isMinorProphet(int book)
Is this book part of the minor prophets? |
static boolean |
isPentateuch(int book)
Is this book part of the Pentateuch? |
static boolean |
isPoetry(int book)
Is this book part of the OT History? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String SECTION_KEY
public static final byte PENTATEUCH
public static final byte HISTORY
public static final byte POETRY
public static final byte MAJOR_PROPHETS
public static final byte MINOR_PROPHETS
public static final byte GOSPELS_AND_ACTS
public static final byte LETTERS
public static final byte REVELATION
private String[] sections
private static final int SECTIONS_IN_BIBLE
Constructor Detail |
---|
public SectionNames()
Method Detail |
---|
public static boolean isPentateuch(int book)
book
- The book to test
public static boolean isHistory(int book)
book
- The book to test
public static boolean isPoetry(int book)
book
- The book to test
public static boolean isMajorProphet(int book)
book
- The book to test
public static boolean isMinorProphet(int book)
book
- The book to test
public static boolean isGospel(int book)
book
- The book to test
public static boolean isGospelOrActs(int book)
book
- The book to test
public static boolean isLetter(int book)
book
- The book to test
public static int getSection(int book)
book
- The book to test
public String getSectionName(int section) throws NoSuchVerseException
section
- The book number (1-66)
NoSuchVerseException
- If the book number is not validprivate void initialize()
private 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 |