Uploaded image for project: 'JSword'
  1. JSword
  2. JS-94

Request Public API for VerseRange (OT and NT VerseRange)

    Details

      Description

      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.

      This is the patch (very trivial)

      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
        Unknown macro: { 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
        Unknown macro: { 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

        Attachments

          Activity

            People

            • Assignee:
              dmsmith DM Smith
              Reporter:
              kiyut Tonny Kohar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: