|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.doclets.internal.toolkit.util.MessageRetriever
public class MessageRetriever
Retrieve and format messages stored in a resource. This code is not part of an API. It is implementation that is subject to change. Do not use it as an API
| Field Summary | |
|---|---|
private Configuration |
configuration
The global configuration information for this run. |
private java.util.ResourceBundle |
messageRB
The lazily fetched resource.. |
private java.lang.String |
resourcelocation
The location from which to lazily fetch the resource.. |
| Constructor Summary | |
|---|---|
MessageRetriever(Configuration configuration,
java.lang.String resourcelocation)
Initilize the ResourceBundle with the given resource. |
|
MessageRetriever(java.util.ResourceBundle rb)
Initilize the ResourceBundle with the given resource. |
|
| Method Summary | |
|---|---|
void |
error(SourcePosition pos,
java.lang.String key,
java.lang.Object... args)
Print error message, increment error count. |
void |
error(java.lang.String key,
java.lang.Object... args)
Print error message, increment error count. |
java.lang.String |
getText(java.lang.String key,
java.lang.Object... args)
Get and format message string from resource |
void |
notice(SourcePosition pos,
java.lang.String key,
java.lang.Object... args)
Print a message. |
void |
notice(java.lang.String key,
java.lang.Object... args)
Print a message. |
private void |
printError(SourcePosition pos,
java.lang.String msg)
Print error message, increment error count. |
private void |
printError(java.lang.String msg)
Print error message, increment error count. |
private void |
printNotice(SourcePosition pos,
java.lang.String msg)
Print a message. |
private void |
printNotice(java.lang.String msg)
Print a message. |
private void |
printWarning(SourcePosition pos,
java.lang.String msg)
Print warning message, increment warning count. |
private void |
printWarning(java.lang.String msg)
Print warning message, increment warning count. |
void |
warning(SourcePosition pos,
java.lang.String key,
java.lang.Object... args)
Print warning message, increment warning count. |
void |
warning(java.lang.String key,
java.lang.Object... args)
Print warning message, increment warning count. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Configuration configuration
private final java.lang.String resourcelocation
private java.util.ResourceBundle messageRB
| Constructor Detail |
|---|
public MessageRetriever(java.util.ResourceBundle rb)
rb - the esource bundle to read.
public MessageRetriever(Configuration configuration,
java.lang.String resourcelocation)
configuration - the configurationresourcelocation - Resource.| Method Detail |
|---|
public java.lang.String getText(java.lang.String key,
java.lang.Object... args)
throws java.util.MissingResourceException
key - selects message from resourceargs - arguments to be replaced in the message.
java.util.MissingResourceException - when the key does not
exist in the properties file.
private void printError(SourcePosition pos,
java.lang.String msg)
pos - the position of the sourcemsg - message to printprivate void printError(java.lang.String msg)
msg - message to print
private void printWarning(SourcePosition pos,
java.lang.String msg)
pos - the position of the sourcemsg - message to printprivate void printWarning(java.lang.String msg)
msg - message to print
private void printNotice(SourcePosition pos,
java.lang.String msg)
pos - the position of the sourcemsg - message to printprivate void printNotice(java.lang.String msg)
msg - message to print
public void error(SourcePosition pos,
java.lang.String key,
java.lang.Object... args)
pos - the position of the sourcekey - selects message from resourceargs - arguments to be replaced in the message.
public void error(java.lang.String key,
java.lang.Object... args)
key - selects message from resourceargs - arguments to be replaced in the message.
public void warning(SourcePosition pos,
java.lang.String key,
java.lang.Object... args)
pos - the position of the sourcekey - selects message from resourceargs - arguments to be replaced in the message.
public void warning(java.lang.String key,
java.lang.Object... args)
key - selects message from resourceargs - arguments to be replaced in the message.
public void notice(SourcePosition pos,
java.lang.String key,
java.lang.Object... args)
pos - the position of the sourcekey - selects message from resourceargs - arguments to be replaced in the message.
public void notice(java.lang.String key,
java.lang.Object... args)
key - selects message from resourceargs - arguments to be replaced in the message.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||