public final class OsisParser extends Object
Modifier and Type | Field and Description |
---|---|
private static String |
START_CHAPTER_OR_VERSE |
Constructor and Description |
---|
OsisParser() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
isAnEmptyPart(List<String> parts)
Check no part of the Osis ref is empty
|
private Verse |
parseOsisID(Versification v11n,
List<String> osisIDParts) |
Verse |
parseOsisID(Versification v11n,
String osisID)
Strict OSIS ID parsers, case-sensitive
|
VerseRange |
parseOsisRef(Versification v11n,
String osisRef)
String OSIS Ref parser, assumes a - separating two osis IDs
|
private List<String> |
splitOsisId(String osisID1)
Split string like 'Gen.1.1' into a 3 element list
|
private static final String START_CHAPTER_OR_VERSE
public VerseRange parseOsisRef(Versification v11n, String osisRef)
v11n
- the v11nosisRef
- the refpublic Verse parseOsisID(Versification v11n, String osisID)
v11n
- the versification to use when constructing the verseosisID
- the ID we want to parseprivate Verse parseOsisID(Versification v11n, List<String> osisIDParts)
private List<String> splitOsisId(String osisID1)