|
||||||||||
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 for 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 |
addResourceBundleName(String qualifier,
String baseName)
Adds a resource bundle name for the qualified name. |
void |
addResourceBundleNames(String qualifier,
String[] baseNames)
Adds resource bundle names for the qualified name. |
void |
clearResourceBundleNames()
Clears all resource bundle names. |
void |
clearResourceBundleNames(String qualifier)
Clears all resource bundle names of the qualified name. |
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. |
String[] |
getResourceBundleNames(String qualifier)
Gets the qualified resource bundle names. |
ObjectName |
getResourceFinderName()
Gets the resource finder of this map. |
Set<String> |
qualifierSet()
Returns a read-only set of resource qualifiers. |
void |
removeResourceBundleName(String qualifier,
String baseName)
Removes a resource bundle name of 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 a resource bundle name for the qualified name. |
void |
setResourceBundleNames(String qualifier,
String[] baseNames)
Sets the resource bundle names 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, resolveLocalizedResource, resolveLocalizedString, resolveLocalizedStrings |
Methods inherited from interface org.norther.tammi.core.cache.CacheClient |
---|
clearCached, expireCached, expireFraction, getCache, getSharedCacheName, isCachingDisabled, removeCache, setCachingDisabled, setSharedCacheName |
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[] getResourceBundleNames(String qualifier)
qualifier
- the resource qualifier.
void setResourceBundleNames(String qualifier, String[] baseNames)
qualifier
- the resource qualifier.baseNames
- the base names of the resource bundles.void setResourceBundleName(String qualifier, String baseName)
qualifier
- the resource qualifier.baseName
- the base name of the resource bundle.void addResourceBundleNames(String qualifier, String[] baseNames)
qualifier
- the resource qualifier.baseNames
- the base names of the resource bundles.void addResourceBundleName(String qualifier, String baseName)
qualifier
- the resource qualifier.baseName
- the base name of the resource bundle.void removeResourceBundleName(String qualifier, String baseName)
qualifier
- the resource qualifier.baseName
- the base name of the resource bundle.void clearResourceBundleNames(String qualifier)
qualifier
- the resource qualifier.void clearResourceBundleNames()
Set<String> qualifierSet()
String resolveResourceBundleName(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 |