public final class LionBundle extends 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 | 
|---|---|
String | 
dump()
Dump the contents of the bundle. 
 | 
Set<LionBundle.LionItem> | 
getItems()
Returns an immutable set of the items in this bundle. 
 | 
String | 
getSafe(Enum<?> enumConst)
Converts the given enum constant to lowercase and then uses that as the
 key to invoke  
getSafe(String). | 
String | 
getSafe(String key)
Returns the localized value for the given key, or, if no such mapping
 exists, returns the key wrapped in '%' characters. 
 | 
String | 
getValue(String key)
Returns the localized value for the given key, or null if no such
 mapping exists. 
 | 
String | 
id()
Returns the bundle's identifier. 
 | 
int | 
size()
Returns the number of entries in this bundle. 
 | 
String | 
toString()  | 
public String id()
public int size()
public String getValue(String key)
key - the keypublic String getSafe(String key)
key - the keypublic String getSafe(Enum<?> enumConst)
getSafe(String).enumConst - the constant to use as the keypublic Set<LionBundle.LionItem> getItems()
public String dump()