org.geotools.resources.i18n
Class Vocabulary

java.lang.Object
  extended byjava.util.ResourceBundle
      extended byorg.geotools.resources.ResourceBundle
          extended byorg.geotools.resources.i18n.Vocabulary
Direct Known Subclasses:
Vocabulary_de, Vocabulary_el, Vocabulary_en, Vocabulary_fr, Vocabulary_pt, Vocabulary_sp

public class Vocabulary
extends ResourceBundle

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: Vocabulary.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
Vocabulary()
           
 
Method Summary
static java.lang.String format(int key)
          Gets a string for the given key from this resource bundle or one of its parents.
static java.lang.String format(int key, java.lang.Object arg0)
          Gets a string for the given key are replace all occurence of "{0}" with values of .
static java.lang.String format(int key, java.lang.Object arg0, java.lang.Object arg1)
          Gets a string for the given key are replace all occurence of "{0}", "{1}", with values of , .
static java.lang.String format(int key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
          Gets a string for the given key are replace all occurence of "{0}", "{1}", with values of , , etc.
static org.opengis.util.InternationalString formatInternational(int key)
          Gets an international string for the given key.
static org.opengis.util.InternationalString formatInternational(int key, java.lang.Object arg0)
          Gets an international string for the given key.
static org.opengis.util.InternationalString formatInternational(int key, java.lang.Object arg0, java.lang.Object arg1)
          Gets an international string for the given key.
static org.opengis.util.InternationalString formatInternational(int key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
          Gets an international string for the given key.
static Vocabulary getResources(java.util.Locale locale)
          Returns resources in the given locale.
 
Methods inherited from class org.geotools.resources.ResourceBundle
getKeys, getLabel, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getLogRecord, getMenuLabel, getString, getString, getString, getString, getString, getString, handleGetObject, list, toString
 
Methods inherited from class java.util.ResourceBundle
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Vocabulary

public Vocabulary()
Method Detail

getResources

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

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

formatInternational

public static org.opengis.util.InternationalString formatInternational(int key)
Gets an international string for the given key. This method does not check for the key validity. If the key is invalid, then a MissingResourceException may be thrown when a InternationalString.toString(java.util.Locale) method is invoked.

Parameters:
key - The key for the desired string.
Returns:
An international string for the given key.

formatInternational

public static org.opengis.util.InternationalString formatInternational(int key,
                                                                       java.lang.Object arg0)
Gets an international string for the given key. This method does not check for the key validity. If the key is invalid, then a MissingResourceException may be thrown when a InternationalString.toString(java.util.Locale) method is invoked.

Parameters:
key - The key for the desired string.
arg0 - Value to substitute to "{0}".
Returns:
An international string for the given key.
To Do:
Current implementation just invokes format(int). Need to format only when is invoked.

formatInternational

public static org.opengis.util.InternationalString formatInternational(int key,
                                                                       java.lang.Object arg0,
                                                                       java.lang.Object arg1)
Gets an international string for the given key. This method does not check for the key validity. If the key is invalid, then a MissingResourceException may be thrown when a InternationalString.toString(java.util.Locale) method is invoked.

Parameters:
key - The key for the desired string.
arg0 - Value to substitute to "{0}".
arg1 - Value to substitute to "{1}".
Returns:
An international string for the given key.
To Do:
Current implementation just invokes format(int). Need to format only when is invoked.

formatInternational

public static org.opengis.util.InternationalString formatInternational(int key,
                                                                       java.lang.Object arg0,
                                                                       java.lang.Object arg1,
                                                                       java.lang.Object arg2)
Gets an international string for the given key. This method does not check for the key validity. If the key is invalid, then a MissingResourceException may be thrown when a InternationalString.toString(java.util.Locale) method is invoked.

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:
An international string for the given key.
To Do:
Current implementation just invokes format(int). Need to format only when is invoked.

format

public static java.lang.String format(int key)
                               throws java.util.MissingResourceException
Gets 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:
java.util.MissingResourceException - If no object for the given key can be found.

format

public static java.lang.String format(int key,
                                      java.lang.Object arg0)
                               throws java.util.MissingResourceException
Gets a string for the given key are replace all occurence of "{0}" with values of .

Parameters:
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.lang.String format(int key,
                                      java.lang.Object arg0,
                                      java.lang.Object arg1)
                               throws java.util.MissingResourceException
Gets a string for the given key are replace all occurence of "{0}", "{1}", with values of , .

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

format

public static java.lang.String format(int key,
                                      java.lang.Object arg0,
                                      java.lang.Object arg1,
                                      java.lang.Object arg2)
                               throws java.util.MissingResourceException
Gets a string for the given key are replace all occurence of "{0}", "{1}", with values of , , 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:
java.util.MissingResourceException - If no object for the given key can be found.


Copyright © GeoTools. All Rights Reserved.