T
- The type of VerseKey that reversify returns.public interface VerseKey<T extends VerseKey> extends Key
The GNU Lesser General Public License for details.
Modifier and Type | Method and Description |
---|---|
Versification |
getVersification()
Get the Versification that defines the Verses in this VerseKey.
|
T |
getWhole()
Convert this reference into one without a sub-identifier.
|
boolean |
isWhole()
A VerseKey that does not have an OSIS sub identifier is a whole reference.
|
T |
reversify(Versification newVersification)
Cast this VerseKey into another Versification.
|
addAll, blur, canHaveChildren, clear, clone, contains, equals, get, getCardinality, getChildCount, getName, getName, getOsisID, getOsisRef, getParent, getRootName, hashCode, indexOf, isEmpty, removeAll, retainAll
compareTo
Versification getVersification()
T reversify(Versification newVersification)
Note: This is dangerous as it does not consider chapter boundaries or whether the verses in this VerseKey are actually part of the new versification. It should only be used when the start and end verses are in both Versifications. You have been warned.
newVersification
- boolean isWhole()
T getWhole()