| java.lang.Object org.apache.xml.res.XMLMessages
All known Subclasses: org.apache.xpath.res.XPATHMessages,
XMLMessages | public class XMLMessages (Code) | | A utility class for issuing XML error messages.
|
Field Summary | |
final protected static String | BAD_CODE String to use if a bad message code is used. | final protected static String | FORMAT_FAILED String to use if the message format operation failed. | protected Locale | fLocale The local object to use. |
Method Summary | |
final public static String | createMsg(ListResourceBundle fResourceBundle, String msgKey, Object args) Creates a message from the specified key and replacement
arguments, localized to the given locale.
Parameters: fResourceBundle - The resource bundle to use. Parameters: msgKey - The message key to use. Parameters: args - The arguments to be used as replacement textin the message created. | final public static String | createXMLMessage(String msgKey, Object args) Creates a message from the specified key and replacement
arguments, localized to the given locale.
Parameters: msgKey - The key for the message text. Parameters: args - The arguments to be used as replacement textin the message created. | public Locale | getLocale() Get the Locale object that is being used. | protected static String | getResourceSuffix(Locale locale) Return the resource file suffic for the indicated locale
For most locales, this will be based the language code. | public static ListResourceBundle | loadResourceBundle(String className) Return a named ResourceBundle for a particular locale. | public void | setLocale(Locale locale) Set the Locale object to use. |
BAD_CODE | final protected static String BAD_CODE(Code) | | String to use if a bad message code is used.
|
FORMAT_FAILED | final protected static String FORMAT_FAILED(Code) | | String to use if the message format operation failed.
|
fLocale | protected Locale fLocale(Code) | | The local object to use.
|
createMsg | final public static String createMsg(ListResourceBundle fResourceBundle, String msgKey, Object args)(Code) | | Creates a message from the specified key and replacement
arguments, localized to the given locale.
Parameters: fResourceBundle - The resource bundle to use. Parameters: msgKey - The message key to use. Parameters: args - The arguments to be used as replacement textin the message created. The formatted message string. |
createXMLMessage | final public static String createXMLMessage(String msgKey, Object args)(Code) | | Creates a message from the specified key and replacement
arguments, localized to the given locale.
Parameters: msgKey - The key for the message text. Parameters: args - The arguments to be used as replacement textin the message created. The formatted message string. |
getLocale | public Locale getLocale()(Code) | | Get the Locale object that is being used.
non-null reference to Locale object. |
getResourceSuffix | protected static String getResourceSuffix(Locale locale)(Code) | | Return the resource file suffic for the indicated locale
For most locales, this will be based the language code. However
for Chinese, we do distinguish between Taiwan and PRC
Parameters: locale - the locale an String suffix which can be appended to a resource name |
setLocale | public void setLocale(Locale locale)(Code) | | Set the Locale object to use.
Parameters: locale - non-null reference to Locale object. |
|
|