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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Configuration
Deprecated.The global configuration information for this run.private ResourceBundle
Deprecated.The lazily fetched resource..private final String
Deprecated.The location from which to lazily fetch the resource.. -
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 TypeMethodDescriptionboolean
containsKey
(String key) Deprecated.Determines whether the givenkey
can be retrieved from thisMessageRetriever
void
error
(SourcePosition pos, String key, Object... args) Deprecated.Print error message, increment error count.void
Deprecated.Print error message, increment error count.Deprecated.Get and format message string from resourceprivate ResourceBundle
initRB()
Deprecated.void
notice
(SourcePosition pos, String key, Object... args) Deprecated.Print a message.void
Deprecated.Print a message.private void
printError
(SourcePosition pos, String msg) Deprecated.Print error message, increment error count.private void
printError
(String msg) Deprecated.Print error message, increment error count.private void
printNotice
(SourcePosition pos, String msg) Deprecated.Print a message.private void
printNotice
(String msg) Deprecated.Print a message.private void
printWarning
(SourcePosition pos, String msg) Deprecated.Print warning message, increment warning count.private void
printWarning
(String msg) Deprecated.Print warning message, increment warning count.void
warning
(SourcePosition pos, String key, Object... args) Deprecated.Print warning message, increment warning count.void
Deprecated.Print warning message, increment warning count.
-
Field Details
-
configuration
Deprecated.The global configuration information for this run. -
resourcelocation
Deprecated.The location from which to lazily fetch the resource.. -
messageRB
Deprecated.The lazily fetched resource..
-
-
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
-
initRB
Deprecated. -
containsKey
Deprecated.Determines whether the givenkey
can be retrieved from thisMessageRetriever
- Parameters:
key
- the resourcekey
- Returns:
true
if the givenkey
is 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.
-
printError
Deprecated.Print error message, increment error count.- Parameters:
pos
- the position of the sourcemsg
- message to print
-
printError
Deprecated.Print error message, increment error count.- Parameters:
msg
- message to print
-
printWarning
Deprecated.Print warning message, increment warning count.- Parameters:
pos
- the position of the sourcemsg
- message to print
-
printWarning
Deprecated.Print warning message, increment warning count.- Parameters:
msg
- message to print
-
printNotice
Deprecated.Print a message.- Parameters:
pos
- the position of the sourcemsg
- message to print
-
printNotice
Deprecated.Print a message.- Parameters:
msg
- message to print
-
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.
-