APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.res

public Class XMLMessages

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xpath.internal.res.XPATHMessages
Imports
java.util.Locale, .ResourceBundle, jdk.xml.internal.SecuritySupport

A utility class for issuing XML error messages.

Field Summary

Modifier and TypeField and Description
protected static final String
BAD_CODE

String to use if a bad message code is used.

protected Locale
fLocale

The local object to use.

protected static final String
FORMAT_FAILED

String to use if the message format operation failed.

private static final String
XML_ERROR_RESOURCES

The class name of the XML error message string table.

private static ResourceBundle
XMLBundle

The language specific resource object for XML messages.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static final String

Returns:

The formatted message string.
createMsg
(ResourceBundle
The resource bundle to use.
fResourceBundle
,
String
The message key to use.
msgKey
,
Object[]
The arguments to be used as replacement text in the message created.
args
)

Creates a message from the specified key and replacement arguments, localized to the given locale.

public static final String

Returns:

The formatted message string.
createXMLMessage
(String
The key for the message text.
msgKey
,
Object[]
The arguments to be used as replacement text in the message created.
args
)

Creates a message from the specified key and replacement arguments, localized to the given locale.

public Locale

Returns:

non-null reference to Locale object.
getLocale
()

Get the Locale object that is being used.

public void
setLocale(Locale
non-null reference to Locale object.
locale
)

Set the Locale object to use.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BAD_CODEback to summary
protected static final String BAD_CODE

String to use if a bad message code is used.

fLocaleback to summary
protected Locale fLocale

The local object to use.

FORMAT_FAILEDback to summary
protected static final String FORMAT_FAILED

String to use if the message format operation failed.

XML_ERROR_RESOURCESback to summary
private static final String XML_ERROR_RESOURCES

The class name of the XML error message string table.

XMLBundleback to summary
private static ResourceBundle XMLBundle

The language specific resource object for XML messages.

Constructor Detail

XMLMessagesback to summary
public XMLMessages()

Method Detail

createMsgback to summary
public static final String createMsg(ResourceBundle fResourceBundle, String msgKey, Object[] args)

Creates a message from the specified key and replacement arguments, localized to the given locale.

Parameters
fResourceBundle:ResourceBundle

The resource bundle to use.

msgKey:String

The message key to use.

args:Object[]

The arguments to be used as replacement text in the message created.

Returns:String

The formatted message string.

createXMLMessageback to summary
public static final String createXMLMessage(String msgKey, Object[] args)

Creates a message from the specified key and replacement arguments, localized to the given locale.

Parameters
msgKey:String

The key for the message text.

args:Object[]

The arguments to be used as replacement text in the message created.

Returns:String

The formatted message string.

getLocaleback to summary
public Locale getLocale()

Get the Locale object that is being used.

Returns:Locale

non-null reference to Locale object.

setLocaleback to summary
public void setLocale(Locale locale)

Set the Locale object to use.

Parameters
locale:Locale

non-null reference to Locale object.