|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceMap
An interface to localized resource maps maintaining mappings between qualified object or package names and base names fo resource bundles. Resource mapping provides more flexibility to the localization mechanism than to apply the qualified name directly to the base name as the package structure of functional objects is usually inconvenient for organizing application specific localized resources.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.acorn.locale.Localizer |
|---|
ANY_NAME |
| Method Summary | |
|---|---|
void |
clearResourceBundleNames()
Clears all resource bundle names. |
String |
getDefaultBaseName()
Gets the default base name. |
ObjectName |
getFallbackResourcesName()
Gets the fallback resources of this map. |
String |
getPlugInBaseName(String key)
Gets the base name of the resource bundle class associated with the specified plug-in key. |
LookupResourceBundle |
getResourceBundle(String baseName)
Gets a resource bundle for the specified base name. |
LookupResourceBundle |
getResourceBundle(String baseName,
Locale locale)
Gets a resource bundle for the specified base name and locale. |
String |
getResourceBundleName(String qualifier)
Gets the qualified resource bundle name. |
ObjectName |
getResourceFinderName()
Gets the resource finder of this map. |
Set |
qualifierSet()
Returns a read-only set of resource qualifiers. |
void |
removeResourceBundleName(String qualifier)
Removes the resource bundle name of the qualified name. |
LookupResourceBundle |
resolveResourceBundle(String name)
Resolves a resource bundle for the qualified name. |
LookupResourceBundle |
resolveResourceBundle(String name,
Locale locale)
Resolves a resource bundle for the qualified name and locale. |
String |
resolveResourceBundleName(String name)
Resolves a resource bundle name for the qualified name. |
void |
setDefaultBaseName(String baseName)
Sets the default base name. |
void |
setFallbackResourcesName(ObjectName map)
Sets the fallback resources of this map. |
void |
setResourceBundleName(String qualifier,
String baseName)
Sets the resource bundle name of the qualified name. |
void |
setResourceFinderName(ObjectName finder)
Sets the resource finder of this map. |
| Methods inherited from interface org.norther.tammi.acorn.locale.Localizer |
|---|
resolveLocalizedObject, resolveLocalizedObject, resolveLocalizedResource, resolveLocalizedResource, resolveLocalizedString, resolveLocalizedString, resolveLocalizedStrings, resolveLocalizedStrings |
| Methods inherited from interface org.norther.tammi.core.cache.CacheClient |
|---|
clearCached, expireCached, expireFraction, getCache, isCachingDisabled, removeCache, setCachingDisabled |
| Methods inherited from interface org.norther.tammi.core.base.Refreshable |
|---|
getRefreshed, refresh |
| Method Detail |
|---|
ObjectName getResourceFinderName()
void setResourceFinderName(ObjectName finder)
finder - the object name of the resource finder or a query.String getPlugInBaseName(String key)
key - the plug-in key.
ObjectName getFallbackResourcesName()
void setFallbackResourcesName(ObjectName map)
map - the object name of the fallback resources or a query.String getDefaultBaseName()
void setDefaultBaseName(String baseName)
baseName - the base name of the default bundle.String getResourceBundleName(String qualifier)
qualifier - the resource qualifier.
void setResourceBundleName(String qualifier,
String baseName)
qualifier - the resource qualifier.baseName - the base name of the resource bundle.void removeResourceBundleName(String qualifier)
qualifier - the resource qualifier.void clearResourceBundleNames()
Set qualifierSet()
LookupResourceBundle getResourceBundle(String baseName)
baseName - the base name.
LookupResourceBundle getResourceBundle(String baseName,
Locale locale)
baseName - the base name.locale - the locale.
String resolveResourceBundleName(String name)
name - the qualified name.
LookupResourceBundle resolveResourceBundle(String name)
name - the qualified name.
LookupResourceBundle resolveResourceBundle(String name,
Locale locale)
name - the qualified name.locale - the locale.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||