| org.blojsom.util.resources.ResourceManager
All known Subclasses: org.blojsom.util.resources.ResourceBundleResourceManager,
ResourceManager | public interface ResourceManager (Code) | | ResourceManager
author: David Czarnecki version: $Id: ResourceManager.java,v 1.2 2007/01/17 02:35:21 czarneckid Exp $ since: blojsom 3.0 |
Method Summary | |
public String | format(String pattern, Object[] arguments) | public String | getString(String resourceID, String resource, String fallback) Retrieve a string from a given resource bundle for the default locale. | public String | getString(String resourceID, String resource, String fallback, String language) Retrieve a string from a given resource bundle for the particular language and country locale. | public String | getString(String resourceID, String resource, String fallback, String language, String country) Retrieve a string from a given resource bundle for the particular language and country locale. | public String | getString(String resourceID, String resource, String fallback, Locale locale) Retrieve a string from a given resource bundle for the particular language and country locale. | public void | init() Initialize the ResourceManager. |
getString | public String getString(String resourceID, String resource, String fallback)(Code) | | Retrieve a string from a given resource bundle for the default locale.
Parameters: resourceID - Resource ID to retrieve from the resource bundle Parameters: resource - Full-qualified resource bundle from which to retrieve the resource ID Parameters: fallback - Fallback string to use if the given resource ID cannot be found resourceID from resource bundle resource or fallback if the given resource ID cannot be found |
getString | public String getString(String resourceID, String resource, String fallback, String language)(Code) | | Retrieve a string from a given resource bundle for the particular language and country locale.
Parameters: resourceID - Resource ID to retrieve from the resource bundle Parameters: resource - Full-qualified resource bundle from which to retrieve the resource ID Parameters: fallback - Fallback string to use if the given resource ID cannot be found Parameters: language - Language code resourceID from resource bundle resource or fallback if the given resource ID cannot be found |
getString | public String getString(String resourceID, String resource, String fallback, String language, String country)(Code) | | Retrieve a string from a given resource bundle for the particular language and country locale.
Parameters: resourceID - Resource ID to retrieve from the resource bundle Parameters: resource - Full-qualified resource bundle from which to retrieve the resource ID Parameters: fallback - Fallback string to use if the given resource ID cannot be found Parameters: language - Language code Parameters: country - Country code resourceID from resource bundle resource or fallback if the given resource ID cannot be found |
getString | public String getString(String resourceID, String resource, String fallback, Locale locale)(Code) | | Retrieve a string from a given resource bundle for the particular language and country locale.
Parameters: resourceID - Resource ID to retrieve from the resource bundle Parameters: resource - Full-qualified resource bundle from which to retrieve the resource ID Parameters: fallback - Fallback string to use if the given resource ID cannot be found Parameters: locale - Locale object to use when retrieving the resource bundle resourceID from resource bundle resource or fallback if the given resource ID cannot be found |
|
|