Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.resources
Class ResourceUtils

java.lang.Object
  extended byorg.evolvica.resources.ResourceUtils

public class ResourceUtils
extends java.lang.Object

Resource handling utilities.

Since:
0.4.0
Version:
$Revision: 1.5 $ $Date: 2004/05/26 11:58:33 $
Author:
Andreas Rummler

Field Summary
static java.util.Locale DEFAULT
          Default locale.
static java.util.Locale LOCALE
          Current locale.
 
Method Summary
static java.lang.String getDefault(java.lang.String key)
          Returns the default resource string for the given key.
static java.lang.String locale(java.lang.String key)
          Returns the locale resource string for the given key.
static java.lang.String locale(java.lang.String key, java.lang.String subst0)
          Returns the locale resource string for the given key and substitutes %0.
static java.lang.String locale(java.lang.String key, java.lang.String[] subst)
          Returns the locale resource string for the given key and substitutes %0 to %n.
static java.lang.String locale(java.lang.String key, java.lang.String subst0, java.lang.String subst1)
          Returns the locale resource string for the given key and substitutes %0 and %1.
static java.lang.String locale(java.lang.String key, java.lang.String subst0, java.lang.String subst1, java.lang.String subst2)
          Returns the locale resource string for the given key and substitutes %0, %1 and %2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALE

public static final java.util.Locale LOCALE
Current locale.


DEFAULT

public static final java.util.Locale DEFAULT
Default locale.

Method Detail

getDefault

public static java.lang.String getDefault(java.lang.String key)
Returns the default resource string for the given key.

Parameters:
key - resource key
Returns:
resource string

locale

public static java.lang.String locale(java.lang.String key)
Returns the locale resource string for the given key.

Parameters:
key - resource key
Returns:
resource string

locale

public static java.lang.String locale(java.lang.String key,
                                      java.lang.String subst0)
Returns the locale resource string for the given key and substitutes %0.

Parameters:
key - resource key
subst0 - substitution 0
Returns:
resource string

locale

public static java.lang.String locale(java.lang.String key,
                                      java.lang.String subst0,
                                      java.lang.String subst1)
Returns the locale resource string for the given key and substitutes %0 and %1.

Parameters:
key - resource key
subst0 - substitution 0
subst1 - substitution 1
Returns:
resource string

locale

public static java.lang.String locale(java.lang.String key,
                                      java.lang.String subst0,
                                      java.lang.String subst1,
                                      java.lang.String subst2)
Returns the locale resource string for the given key and substitutes %0, %1 and %2.

Parameters:
key - resource key
subst0 - substitution 0
subst1 - substitution 1
subst2 - substitution 2
Returns:
resource string

locale

public static java.lang.String locale(java.lang.String key,
                                      java.lang.String[] subst)
Returns the locale resource string for the given key and substitutes %0 to %n.

Parameters:
key - resource key
subst - array with substitution string
Returns:
resource string

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

Copyright © 2000-2004 Technical University of Ilmenau, Department Electronic Circuits and Systems