Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

org.evolvica.core.terminate
Class Messages

java.lang.Object
  extended byorg.evolvica.core.terminate.Messages

public class Messages
extends java.lang.Object

Provides access to string resources. All string resources are held in a resource file and can be accessed via their appropriate key. A valid key looks like that: CallingClass.key. The calling class can be optionally omitted and is determined automatically if missing. Therefore getString( "MyClass.myKey" ) and getString( myKey ) will return the same values.

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

Method Summary
static java.lang.String getString(java.lang.String key)
          Returns the value of the given key from the resource bundle.
static java.lang.String getString(java.lang.String key, java.lang.String subst0)
          Returns the value of the given key from the resource bundle and substitutes %0 occurences.
static java.lang.String getString(java.lang.String key, java.lang.String[] subst)
          Returns the value of the given key from the resource bundle and substitutes %index occurences.
static java.lang.String getString(java.lang.String key, java.lang.String subst0, java.lang.String subst1)
          Returns the value of the given key from the resource bundle and substitutes %0 and %1 occurences.
static java.lang.String getString(java.lang.String key, java.lang.String subst0, java.lang.String subst1, java.lang.String subst2)
          Returns the value of the given key from the resource bundle and substitutes %0, %1 and %2 occurences.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static final java.lang.String getString(java.lang.String key)
Returns the value of the given key from the resource bundle.

Parameters:
key - key
Returns:
value

getString

public static final java.lang.String getString(java.lang.String key,
                                               java.lang.String subst0)
Returns the value of the given key from the resource bundle and substitutes %0 occurences.

Parameters:
key - key
subst0 - substitution for %0
Returns:
value

getString

public static final java.lang.String getString(java.lang.String key,
                                               java.lang.String subst0,
                                               java.lang.String subst1)
Returns the value of the given key from the resource bundle and substitutes %0 and %1 occurences.

Parameters:
key - key
subst0 - substitution for %0
subst1 - substitution for %1
Returns:
value

getString

public static final java.lang.String getString(java.lang.String key,
                                               java.lang.String subst0,
                                               java.lang.String subst1,
                                               java.lang.String subst2)
Returns the value of the given key from the resource bundle and substitutes %0, %1 and %2 occurences.

Parameters:
key - key
subst0 - substitution for %0
subst1 - substitution for %1
subst2 - substitution for %2
Returns:
value

getString

public static final java.lang.String getString(java.lang.String key,
                                               java.lang.String[] subst)
Returns the value of the given key from the resource bundle and substitutes %index occurences.

Parameters:
key - key
subst - substitutions for %0, %1, and so on
Returns:
value

Evolvica Core API Version 0.6.2
Last Modified: June 29 2004

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