Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.clra.web
Class Text  view Text download Text.java

java.lang.Object
  extended bycom.clra.web.Text
All Implemented Interfaces:
java.io.Serializable

public final class Text
extends java.lang.Object
implements java.io.Serializable

A thin wrapper around the Jakarta MessageResources class. This saves very GUI class from having to reproduce the same code.


Field Summary
private static java.lang.String messages
           
private static org.apache.struts.util.MessageResources resources
           
 
Constructor Summary
private Text()
           
 
Method Summary
static java.lang.String getMessage(java.lang.String key)
          Returns a text message for the specified key, for the default Locale.
static java.lang.String getMessage(java.lang.String key, java.lang.Object arg0)
          Returns a text message after parametric replacement of the specified parameter placeholders.
static java.lang.String getMessage(java.lang.String key, java.lang.Object[] args)
          Returns a text message after parametric replacement of the specified parameter placeholders.
static java.lang.String getMessage(java.lang.String key, java.lang.Object arg0, java.lang.Object arg1)
          Returns a text message after parametric replacement of the specified parameter placeholders.
static java.lang.String getMessage(java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2)
          Returns a text message after parametric replacement of the specified parameter placeholders.
static java.lang.String getMessage(java.lang.String key, java.lang.Object arg0, java.lang.Object arg1, java.lang.Object arg2, java.lang.Object arg3)
          Returns a text message after parametric replacement of the specified parameter placeholders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messages

private static final java.lang.String messages
See Also:
Constant Field Values

resources

private static final org.apache.struts.util.MessageResources resources
Constructor Detail

Text

private Text()
Method Detail

getMessage

public static java.lang.String getMessage(java.lang.String key)
Returns a text message for the specified key, for the default Locale.


getMessage

public static java.lang.String getMessage(java.lang.String key,
                                          java.lang.Object[] args)
Returns a text message after parametric replacement of the specified parameter placeholders.


getMessage

public static java.lang.String getMessage(java.lang.String key,
                                          java.lang.Object arg0)
Returns a text message after parametric replacement of the specified parameter placeholders.


getMessage

public static java.lang.String getMessage(java.lang.String key,
                                          java.lang.Object arg0,
                                          java.lang.Object arg1)
Returns a text message after parametric replacement of the specified parameter placeholders.


getMessage

public static java.lang.String getMessage(java.lang.String key,
                                          java.lang.Object arg0,
                                          java.lang.Object arg1,
                                          java.lang.Object arg2)
Returns a text message after parametric replacement of the specified parameter placeholders.


getMessage

public static java.lang.String getMessage(java.lang.String key,
                                          java.lang.Object arg0,
                                          java.lang.Object arg1,
                                          java.lang.Object arg2,
                                          java.lang.Object arg3)
Returns a text message after parametric replacement of the specified parameter placeholders.