站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档

MessageBundle (JAXRPC API) - JBoss 4.0.1 sp1 jaxrpc API Documentation 英文版文档


org.apache.axis.i18n
Class MessageBundle

java.lang.Object
  extended byorg.apache.axis.i18n.MessageBundle

public class MessageBundle
extends Object

Accept parameters for ProjectResourceBundle, but defer object instantiation (and therefore resource bundle loading) until required.

Author:
Richard A. Sitze (rsitze@us.ibm.com), Karl Moss (kmoss@macromedia.com), Glen Daniels (gdaniels@macromedia.com)

Constructor Summary
MessageBundle(String projectName, String packageName, String resourceName, Locale locale, ClassLoader classLoader, ResourceBundle parent)
          Construct a new ExtendMessages
 
Method Summary
 String getMessage(String key)
          Gets a string message from the resource bundle for the given key
 String getMessage(String key, String arg0)
          Gets a string message from the resource bundle for the given key.
 String getMessage(String key, String[] array)
          Gets a string message from the resource bundle for the given key.
 String getMessage(String key, String arg0, String arg1)
          Gets a string message from the resource bundle for the given key.
 String getMessage(String key, String arg0, String arg1, String arg2)
          Gets a string message from the resource bundle for the given key.
 String getMessage(String key, String arg0, String arg1, String arg2, String arg3)
          Gets a string message from the resource bundle for the given key.
 String getMessage(String key, String arg0, String arg1, String arg2, String arg3, String arg4)
          Gets a string message from the resource bundle for the given key.
 ProjectResourceBundle getResourceBundle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageBundle

public MessageBundle(String projectName,
                     String packageName,
                     String resourceName,
                     Locale locale,
                     ClassLoader classLoader,
                     ResourceBundle parent)
              throws MissingResourceException
Construct a new ExtendMessages

Method Detail

getResourceBundle

public final ProjectResourceBundle getResourceBundle()

getMessage

public String getMessage(String key)
                  throws MissingResourceException
Gets a string message from the resource bundle for the given key

Parameters:
key - The resource key
Returns:
The message
Throws:
MissingResourceException

getMessage

public String getMessage(String key,
                         String arg0)
                  throws MissingResourceException

Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:

This message has two variables: {0} and {1}

Parameters:
key - The resource key
arg0 - The argument to place in variable {0}
Returns:
The message
Throws:
MissingResourceException

getMessage

public String getMessage(String key,
                         String arg0,
                         String arg1)
                  throws MissingResourceException

Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:

This message has two variables: {0} and {1}

Parameters:
key - The resource key
arg0 - The argument to place in variable {0}
arg1 - The argument to place in variable {1}
Returns:
The message
Throws:
MissingResourceException

getMessage

public String getMessage(String key,
                         String arg0,
                         String arg1,
                         String arg2)
                  throws MissingResourceException

Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:

This message has two variables: {0} and {1}

Parameters:
key - The resource key
arg0 - The argument to place in variable {0}
arg1 - The argument to place in variable {1}
arg2 - The argument to place in variable {2}
Returns:
The message
Throws:
MissingResourceException

getMessage

public String getMessage(String key,
                         String arg0,
                         String arg1,
                         String arg2,
                         String arg3)
                  throws MissingResourceException

Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:

This message has two variables: {0} and {1}

Parameters:
key - The resource key
arg0 - The argument to place in variable {0}
arg1 - The argument to place in variable {1}
arg2 - The argument to place in variable {2}
arg3 - The argument to place in variable {3}
Returns:
The message
Throws:
MissingResourceException

getMessage

public String getMessage(String key,
                         String arg0,
                         String arg1,
                         String arg2,
                         String arg3,
                         String arg4)
                  throws MissingResourceException

Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:

This message has two variables: {0} and {1}

Parameters:
key - The resource key
arg0 - The argument to place in variable {0}
arg1 - The argument to place in variable {1}
arg2 - The argument to place in variable {2}
arg3 - The argument to place in variable {3}
arg4 - The argument to place in variable {4}
Returns:
The message
Throws:
MissingResourceException

getMessage

public String getMessage(String key,
                         String[] array)
                  throws MissingResourceException

Gets a string message from the resource bundle for the given key. The message may contain variables that will be substituted with the given arguments. Variables have the format:

This message has two variables: {0} and {1}

Parameters:
key - The resource key
array - An array of objects to place in corresponding variables
Returns:
The message
Throws:
MissingResourceException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.