org.codehaus.plexus.redback.users
Class Messages

java.lang.Object
  extended by org.codehaus.plexus.redback.users.Messages

public class Messages
extends java.lang.Object

Localized Message Handling.

Version:
$Id: Messages.java 81 2007-02-22 20:20:56Z jesse $
Author:
Joakim Erdfelt

Method Summary
static java.lang.String getString(java.lang.String key)
          Get a Message as-is from the Resource Bundle.
static java.lang.String getString(java.lang.String key, java.lang.Object arg)
          Gets a Message from the Resource Bundle, with {1} and {2} style arguments.
static java.lang.String getString(java.lang.String key, java.lang.Object[] args)
          Gets a Message from the Resource Bundle, with {1} and {2} style arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static java.lang.String getString(java.lang.String key)
Get a Message as-is from the Resource Bundle.

Parameters:
key - the key for the message to get.
Returns:
the value of the key, or "!key!" if the key is not found.

getString

public static java.lang.String getString(java.lang.String key,
                                         java.lang.Object arg)
Gets a Message from the Resource Bundle, with {1} and {2} style arguments.

Parameters:
key - the key for the message to get.
arg - the argument to pass in.
Returns:
the value of the key, or "!key!" if the key is not found.

getString

public static java.lang.String getString(java.lang.String key,
                                         java.lang.Object[] args)
Gets a Message from the Resource Bundle, with {1} and {2} style arguments.

Parameters:
key - the key for the message to get.
args - the arguments to pass in.
Returns:
the value of the key, or "!key!" if the key is not found.


Copyright © 2006-2008 Codehaus. All Rights Reserved.