[jsword-devel] Request Public API for VerseRange (OT and NT VerseRange)
Tonny Kohar
tonny.kohar at gmail.com
Sun Nov 30 22:28:04 MST 2008
Hi,
I would like to request Public API for VerseRange to get Old Testament
and New Testament as public static methods for easy usage.
Currently, the VerseRange only have public API for
getWholeBibleVerseRange(). It does not have OT and NT.
org.crosswire.jsword.passage.VerseRange
public static VerseRange getOldTestamentVerseRange()
{
return otRange;
}
public static VerseRange getNewTestamentVerseRange()
{
return ntRange;
}
/**
* The Old Testatment VerseRange
*/
private static transient VerseRange otRange;
static
{
try
{
otRange = new VerseRange(new Verse(1, 1, 1), new Verse(39, 4, 6));
}
catch (NoSuchVerseException ex)
{
assert false : ex;
otRange = new VerseRange();
}
}
/**
* The New Testament VerseRange
*/
private static transient VerseRange ntRange;
static
{
try
{
ntRange = new VerseRange(new Verse(40, 1, 1), new
Verse(66, 22, 21));
}
catch (NoSuchVerseException ex)
{
assert false : ex;
ntRange = new VerseRange();
}
}
Cheers
Tonny Kohar
--
Alkitab Bible Study
imagine, design, create ...
http://www.kiyut.com
More information about the jsword-devel
mailing list