|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.versification.system.Versifications
public final class Versifications
The Versifications class manages the creation of Versifications as needed. It delays the construction of the Versification until getVersification(String name) is called.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
static String |
DEFAULT_V11N
The default Versification for JSword is the KJV. |
private Map<String,Versification> |
fluffed
The map of instantiated Versifications, given by their names. |
private static Versifications |
instance
|
private Set<String> |
known
The set of v11n names. |
Constructor Summary | |
---|---|
private |
Versifications()
This class is a singleton, enforced by a private constructor. |
Method Summary | |
---|---|
private Versification |
fluff(String name)
|
Versification |
getDefaultVersification()
Deprecated. Use getVersification(String) instead. |
Versification |
getVersification(String name)
Get the Versification by its name. |
static Versifications |
instance()
Get the singleton instance of Versifications. |
boolean |
isDefined(String name)
Determine whether the named Versification is known. |
void |
register(Versification rs)
Add a Versification that is not predefined by JSword. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_V11N
private Set<String> known
private Map<String,Versification> fluffed
private static final Versifications instance
Constructor Detail |
---|
private Versifications()
Method Detail |
---|
public static Versifications instance()
@Deprecated public Versification getDefaultVersification()
getVersification(String)
instead.
public Versification getVersification(String name)
name
- the name of the Versification
public boolean isDefined(String name)
name
- the name of the Versification
private Versification fluff(String name)
public void register(Versification rs)
rs
- the Versification to register
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |