Class MessageRetriever
java.lang.Object
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.util.MessageRetriever
Deprecated.
Retrieve and format messages stored in a resource.
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
- Since:
- 1.2
- Author:
- Atul M Dambalkar, Robert Field
-
Constructor Summary
ConstructorsConstructorDescriptionMessageRetriever(Configuration configuration, String resourcelocation) Deprecated.Initialize the ResourceBundle with the given resource.Deprecated.Initialize the ResourceBundle with the given resource. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) Deprecated.Determines whether the givenkeycan be retrieved from thisMessageRetrievervoiderror(SourcePosition pos, String key, Object... args) Deprecated.Print error message, increment error count.voidDeprecated.Print error message, increment error count.Deprecated.Get and format message string from resourcevoidnotice(SourcePosition pos, String key, Object... args) Deprecated.Print a message.voidDeprecated.Print a message.voidwarning(SourcePosition pos, String key, Object... args) Deprecated.Print warning message, increment warning count.voidDeprecated.Print warning message, increment warning count.
-
Constructor Details
-
MessageRetriever
Deprecated.Initialize the ResourceBundle with the given resource.- Parameters:
rb- the resource bundle to read.
-
MessageRetriever
Deprecated.Initialize the ResourceBundle with the given resource.- Parameters:
configuration- the configurationresourcelocation- Resource.
-
-
Method Details
-
containsKey
Deprecated.Determines whether the givenkeycan be retrieved from thisMessageRetriever- Parameters:
key- the resourcekey- Returns:
trueif the givenkeyis contained in the underlyingResourceBundle.
-
getText
Deprecated.Get and format message string from resource- Parameters:
key- selects message from resourceargs- arguments to be replaced in the message.- Throws:
MissingResourceException- when the key does not exist in the properties file.
-
error
Deprecated.Print error message, increment error count.- Parameters:
pos- the position of the sourcekey- selects message from resourceargs- arguments to be replaced in the message.
-
error
Deprecated.Print error message, increment error count.- Parameters:
key- selects message from resourceargs- arguments to be replaced in the message.
-
warning
Deprecated.Print warning message, increment warning count.- Parameters:
pos- the position of the sourcekey- selects message from resourceargs- arguments to be replaced in the message.
-
warning
Deprecated.Print warning message, increment warning count.- Parameters:
key- selects message from resourceargs- arguments to be replaced in the message.
-
notice
Deprecated.Print a message.- Parameters:
pos- the position of the sourcekey- selects message from resourceargs- arguments to be replaced in the message.
-
notice
Deprecated.Print a message.- Parameters:
key- selects message from resourceargs- arguments to be replaced in the message.
-