org.apache.commons.i18n
Class LocalizedText

java.lang.Object
  extended byorg.apache.commons.i18n.LocalizedBundle
      extended byorg.apache.commons.i18n.LocalizedText
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LocalizedMessage

public class LocalizedText
extends LocalizedBundle

See Also:
Serialized Form

Field Summary
static String TEXT
           
 
Fields inherited from class org.apache.commons.i18n.LocalizedBundle
arguments, ARGUMENTS, id, ID
 
Constructor Summary
LocalizedText(String messageId)
           
LocalizedText(String messageId, Object[] arguments)
           
 
Method Summary
 String getText()
           
 String getText(Locale locale)
           
 String getText(Locale locale, String defaultText)
           
 String getText(String defaultText)
           
 
Methods inherited from class org.apache.commons.i18n.LocalizedBundle
getArguments, getId, getText, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT

public static final String TEXT
See Also:
Constant Field Values
Constructor Detail

LocalizedText

public LocalizedText(String messageId)

LocalizedText

public LocalizedText(String messageId,
                     Object[] arguments)
Method Detail

getText

public String getText()
               throws MessageNotFoundException
Throws:
MessageNotFoundException

getText

public String getText(Locale locale)
               throws MessageNotFoundException
Throws:
MessageNotFoundException

getText

public String getText(String defaultText)

getText

public String getText(Locale locale,
                      String defaultText)


Copyright © 2004-2005 The Apache Software Foundation. All Rights Reserved.