public final class LionBundle
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LionBundle.Builder
Builder of Lion Bundles.
|
static class |
LionBundle.LionItem
Represents a single localization item.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dump()
Dump the contents of the bundle.
|
java.util.Set<LionBundle.LionItem> |
getItems()
Returns an immutable set of the items in this bundle.
|
java.lang.String |
getSafe(java.lang.Enum<?> enumConst)
Converts the given enum constant to lowercase and then uses that as the
key to invoke
getSafe(String). |
java.lang.String |
getSafe(java.lang.String key)
Returns the localized value for the given key, or, if no such mapping
exists, returns the key wrapped in '%' characters.
|
java.lang.String |
getValue(java.lang.String key)
Returns the localized value for the given key, or null if no such
mapping exists.
|
java.lang.String |
id()
Returns the bundle's identifier.
|
int |
size()
Returns the number of entries in this bundle.
|
java.lang.String |
toString() |
public java.lang.String id()
public int size()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getValue(java.lang.String key)
key - the keypublic java.lang.String getSafe(java.lang.String key)
key - the keypublic java.lang.String getSafe(java.lang.Enum<?> enumConst)
getSafe(String).enumConst - the constant to use as the keypublic java.util.Set<LionBundle.LionItem> getItems()
public java.lang.String dump()