public final class Versifications extends Object
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier | Constructor and Description |
---|---|
private |
Versifications()
This class is a singleton, enforced by a private constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
Iterator<String> |
iterator()
Get an iterator over all known versifications.
|
void |
register(Versification rs)
Add a Versification that is not predefined by JSword.
|
int |
size() |
public static final String DEFAULT_V11N
private Map<String,Versification> fluffed
private static final Versifications instance
private Versifications()
public static Versifications instance()
@Deprecated public Versification getDefaultVersification()
getVersification(String)
instead.public Versification getVersification(String name)
name
- the name of the Versificationpublic boolean isDefined(String name)
name
- the name of the Versificationprivate Versification fluff(String name)
public void register(Versification rs)
rs
- the Versification to registerpublic Iterator<String> iterator()
public int size()