Package org.geotools.metadata.i18n
Class Descriptions
Object
ResourceBundle
IndexedResourceBundle
Descriptions
- Direct Known Subclasses:
- Descriptions_en,- Descriptions_fr
Base class for locale-dependent resources. Instances of this class should never been created directly. Use the
 factory method 
getResources(java.util.Locale) or use static convenience methods instead.- Since:
- 2.2
- Author:
- Martin Desruisseaux (IRD)
- 
Nested Class SummaryNested classes/interfaces inherited from class ResourceBundleResourceBundle.Control
- 
Field SummaryFields inherited from class ResourceBundleparent
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Stringformat(int key) Gets a string for the given key from this resource bundle or one of its parents.static StringGets a string for the given key are replace all occurence of "{0}" with values ofarg0.static StringGets a string for the given key are replace all occurence of "{0}", "{1}", with values ofarg0,arg1.static StringGets a string for the given key are replace all occurence of "{0}", "{1}", with values ofarg0,arg1, etc.static DescriptionsgetResources(Locale locale) Returns resources in the given locale.Methods inherited from class IndexedResourceBundleformat, getKeys, getLabel, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getMenuLabel, getString, getString, getString, getString, getString, getString, handleGetObject, list, toStringMethods inherited from class ResourceBundleclearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
- 
Constructor Details- 
Descriptionspublic Descriptions()
 
- 
- 
Method Details- 
getResourcesReturns resources in the given locale.- Parameters:
- locale- The locale, or- nullfor the default locale.
- Returns:
- Resources in the given locale.
- Throws:
- MissingResourceException- if resources can't be found.
 
- 
formatGets a string for the given key from this resource bundle or one of its parents.- Parameters:
- key- The key for the desired string.
- Returns:
- The string for the given key.
- Throws:
- MissingResourceException- If no object for the given key can be found.
 
- 
formatGets a string for the given key are replace all occurence of "{0}" with values ofarg0.- Parameters:
- key- The key for the desired string.
- arg0- Value to substitute to "{0}".
- Returns:
- The formatted string for the given key.
- Throws:
- MissingResourceException- If no object for the given key can be found.
 
- 
formatGets a string for the given key are replace all occurence of "{0}", "{1}", with values ofarg0,arg1.- Parameters:
- key- The key for the desired string.
- arg0- Value to substitute to "{0}".
- arg1- Value to substitute to "{1}".
- Returns:
- The formatted string for the given key.
- Throws:
- MissingResourceException- If no object for the given key can be found.
 
- 
formatpublic static String format(int key, Object arg0, Object arg1, Object arg2) throws MissingResourceException Gets a string for the given key are replace all occurence of "{0}", "{1}", with values ofarg0,arg1, etc.- Parameters:
- key- The key for the desired string.
- arg0- Value to substitute to "{0}".
- arg1- Value to substitute to "{1}".
- arg2- Value to substitute to "{2}".
- Returns:
- The formatted string for the given key.
- Throws:
- MissingResourceException- If no object for the given key can be found.
 
 
-