org.apache.cactus.eclipse.webapp.internal.ui
Class WebappMessages

java.lang.Object
  extended by org.apache.cactus.eclipse.webapp.internal.ui.WebappMessages

public final class WebappMessages
extends java.lang.Object

Helper class to format text messages from the Cactus property resource bundle.

Version:
$Id: WebappMessages.java 238816 2004-02-29 16:36:46Z vmassol $

Method Summary
static java.lang.String getFormattedString(java.lang.String theKey, java.lang.Object theArg)
          Gets a string from the resource bundle and formats it with one argument.
static java.lang.String getFormattedString(java.lang.String theKey, java.lang.Object[] theArgs)
          Gets a string from the resource bundle and formats it with arguments.
static java.lang.String getString(java.lang.String theKey)
          Gets an unformatted string from the resource bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFormattedString

public static java.lang.String getFormattedString(java.lang.String theKey,
                                                  java.lang.Object theArg)
Gets a string from the resource bundle and formats it with one argument.

Parameters:
theKey - the string used to get the bundle value, must not be null
theArg - the object to use when constructing the message
Returns:
the formatted string

getFormattedString

public static java.lang.String getFormattedString(java.lang.String theKey,
                                                  java.lang.Object[] theArgs)
Gets a string from the resource bundle and formats it with arguments.

Parameters:
theKey - the string used to get the bundle value, must not be null
theArgs - the objects to use when constructing the message
Returns:
the formatted string

getString

public static java.lang.String getString(java.lang.String theKey)
Gets an unformatted string from the resource bundle.

Parameters:
theKey - the string used to get the bundle value, must not be null
Returns:
the string from the resource bundle or "![key name]!" if the key does not exist in the resource bundle


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.