public final class VerseFactory extends Object
The GNU Lesser General Public License for details.| Modifier | Constructor and Description |
|---|---|
private |
VerseFactory()
Prevent a VerseFactory from being created.
|
| Modifier and Type | Method and Description |
|---|---|
static Verse |
fromString(Versification v11n,
String original)
Construct a Verse from a String - something like "Gen 1:1".
|
static Verse |
fromString(Versification v11n,
String original,
VerseRange verseRangeBasis)
Construct a Verse from a String and a VerseRange.
|
public static Verse fromString(Versification v11n, String original) throws NoSuchVerseException
v11n - the versification to which this reference pertainsoriginal - The text string to be convertedNoSuchVerseException - If the text can not be understoodpublic static Verse fromString(Versification v11n, String original, VerseRange verseRangeBasis) throws NoSuchVerseException
v11n - the versification to which this reference pertainsoriginal - The string describing the verse e.g "2:2"verseRangeBasis - The basis by which to understand the desc.NoSuchVerseException - If the reference is illegal