Scripture Core provides tools for working with scripture references. It provides the ScriptureReference class to model different types of scripture references (e.g. an entire book, chapter(s), ranges of chapters, verse(s), and ranges of verses).
A ScriptureReference can be parsed from a String using the ScriptureReferenceUtil class.
Parse a ScriptureReference from a String:
A ScriptureReference can be just a Book:
ScriptureReferenceUtil.parse("Romans")The Book can be parsed from an abbreviation:
ScriptureReferenceUtil.parse("Ro")It can be a Book and a chapter:
ScriptureReferenceUtil.parse("Romans 8")It can be a Book, a chapter, and a verse:
ScriptureReferenceUtil.parse("Romans 8:1")It can be a Book, a chapter, and a range of verses:
ScriptureReferenceUtil.parse("Romans 8:1-3")It can be a Book, a chapter, and a set of ranges of verses:
ScriptureReferenceUtil.parse("Romans 8:1-3, 4-5")It can be a Book and a set of ranges of chapters:
ScriptureReferenceUtil.parse("Romans 8-9, 11")Download the latest JAR or grab via jCenter:
compile 'com.exsilicium.scripture:scripture-core:0.1.2'