org.geotools.renderer.i18n
Class Logging

java.lang.Object
  extended by java.util.ResourceBundle
      extended by org.geotools.resources.IndexedResourceBundle
          extended by org.geotools.renderer.i18n.Logging

public class Logging
extends IndexedResourceBundle

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
Version:
$Id: Logging.java 30649 2008-06-12 19:44:08Z acuster $
Author:
Martin Desruisseaux (IRD), Simone Giannecchini (GeoSolutions)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.ResourceBundle
java.util.ResourceBundle.Control
 
Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
Logging()
           
 
Method Summary
static java.util.logging.LogRecord format(java.util.logging.Level level, int key)
          Gets a log record for the given key from this resource bundle or one of its parents.
static java.util.logging.LogRecord format(java.util.logging.Level level, int key, java.lang.Object arg0)
          Gets a log record for the given key.
static java.util.logging.LogRecord format(java.util.logging.Level level, int key, java.lang.Object arg0, java.lang.Object arg1)
          Gets a log record for the given key.
static java.util.logging.LogRecord format(java.util.logging.Level level, int key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
          Gets a log record for the given key.
static java.util.logging.LogRecord format(java.util.logging.Level level, int key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
          Gets a log record for the given key.
static Logging getResources(java.util.Locale locale)
          Returns resources in the given locale.
 
Methods inherited from class org.geotools.resources.IndexedResourceBundle
format, getKeys, getLabel, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getMenuLabel, getString, getString, getString, getString, getString, getString, handleGetObject, list, toString
 
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Logging

public Logging()
Method Detail

getResources

public static Logging getResources(java.util.Locale locale)
                            throws java.util.MissingResourceException
Returns resources in the given locale.

Parameters:
locale - The locale, or null for the default locale.
Returns:
Resources in the given locale.
Throws:
java.util.MissingResourceException - if resources can't be found.

format

public static java.util.logging.LogRecord format(java.util.logging.Level level,
                                                 int key)
                                          throws java.util.MissingResourceException
Gets a log record for the given key from this resource bundle or one of its parents.

Parameters:
level - The log record level.
key - The key for the desired string.
Returns:
The string for the given key.
Throws:
java.util.MissingResourceException - If no object for the given key can be found.

format

public static java.util.logging.LogRecord format(java.util.logging.Level level,
                                                 int key,
                                                 java.lang.Object arg0)
                                          throws java.util.MissingResourceException
Gets a log record for the given key. Replaces all occurence of "{0}" with values of arg0.

Parameters:
level - The log record level.
key - The key for the desired string.
arg0 - Value to substitute to "{0}".
Returns:
The formatted string for the given key.
Throws:
java.util.MissingResourceException - If no object for the given key can be found.

format

public static java.util.logging.LogRecord format(java.util.logging.Level level,
                                                 int key,
                                                 java.lang.Object arg0,
                                                 java.lang.Object arg1)
                                          throws java.util.MissingResourceException
Gets a log record for the given key. Replaces all occurence of "{0}", "{1}", with values of arg0, arg1.

Parameters:
level - The log record level.
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:
java.util.MissingResourceException - If no object for the given key can be found.

format

public static java.util.logging.LogRecord format(java.util.logging.Level level,
                                                 int key,
                                                 java.lang.Object arg0,
                                                 java.lang.Object arg1,
                                                 java.lang.Object arg2)
                                          throws java.util.MissingResourceException
Gets a log record for the given key. Replaces all occurence of "{0}", "{1}", with values of arg0, arg1, etc.

Parameters:
level - The log record level.
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:
java.util.MissingResourceException - If no object for the given key can be found.

format

public static java.util.logging.LogRecord format(java.util.logging.Level level,
                                                 int key,
                                                 java.lang.Object arg0,
                                                 java.lang.Object arg1,
                                                 java.lang.Object arg2,
                                                 java.lang.Object arg3)
                                          throws java.util.MissingResourceException
Gets a log record for the given key. Replaces all occurence of "{0}", "{1}", with values of arg0, arg1, etc.

Parameters:
level - The log record level.
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}".
arg3 - Value to substitute to "{3}".
Returns:
The formatted string for the given key.
Throws:
java.util.MissingResourceException - If no object for the given key can be found.


Copyright © 1996-2010 Geotools. All Rights Reserved.