public final class KeyUtil extends Object
The GNU Lesser General Public License for details.| Modifier | Constructor and Description |
|---|---|
private |
KeyUtil()
Prevent instantiation
|
| Modifier and Type | Method and Description |
|---|---|
static Passage |
getPassage(Key key)
Cast a Key to a Passage.
|
static Verse |
getVerse(Key key)
Cast a Key to a Verse.
|
static Versification |
getVersification(Key key)
Get the versification for the key or the default versification.
|
static void |
visit(Key key,
KeyVisitor visitor)
Walk through a tree visiting the nodes and branches in the tree
|
public static void visit(Key key, KeyVisitor visitor)
key - The node tree to walk throughvisitor - The visitor to notify whenever a node is foundpublic static Verse getVerse(Key key)
key - The key to castClassCastExceptionpublic static Passage getPassage(Key key)
key - The key to castClassCastExceptionpublic static Versification getVersification(Key key)
key - the key that should provide for the Versification