org.gxml.i18n
Interface ResourceBundleMessage


public interface ResourceBundleMessage

This ResourceBundleMessage interface guarantees that a message can be localized using a locale. This interface provides no more and no less than what is required for performing standard internationalization as described in the official Java Tutorials. This interface also performs no translation of the arguments. It merely collects together what is required for composite messages (the most general case).


Method Summary
 java.lang.Object[] getArguments(java.util.ResourceBundle messages)
          Returns an argument array that can be passed to MessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition).
 java.text.Format[] getFormat(java.util.ResourceBundle messages)
          Returns an Format array that can be passed to MessageFormat.setFormats(java.text.Format[]).
 java.lang.String getPatternKey()
          Returns the key that will be used to uniquely identify the message.
 

Method Detail

getPatternKey

java.lang.String getPatternKey()
Returns the key that will be used to uniquely identify the message.
This will be used as the key into a resource bundle.

Returns:
The resouce bundle pattern key.

getArguments

java.lang.Object[] getArguments(java.util.ResourceBundle messages)
Returns an argument array that can be passed to MessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition).

Parameters:
messages - The resource bundle name.
Returns:
Argument parameters.

getFormat

java.text.Format[] getFormat(java.util.ResourceBundle messages)
Returns an Format array that can be passed to MessageFormat.setFormats(java.text.Format[]).

Parameters:
messages - The resource bundle name.
Returns:
Format array used by MessageFormat.setFormats(). May be null.


Copyright © 2009 Cloud Software Group, Inc. All Rights Reserved.