java.lang.Object
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.util.MessageRetriever

@Deprecated public class MessageRetriever extends Object
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 Details

    • configuration

      private final Configuration configuration
      Deprecated.
      The global configuration information for this run.
    • resourcelocation

      private final String resourcelocation
      Deprecated.
      The location from which to lazily fetch the resource..
    • messageRB

      private ResourceBundle messageRB
      Deprecated.
      The lazily fetched resource..
  • Constructor Details

    • MessageRetriever

      public MessageRetriever(ResourceBundle rb)
      Deprecated.
      Initialize the ResourceBundle with the given resource.
      Parameters:
      rb - the resource bundle to read.
    • MessageRetriever

      public MessageRetriever(Configuration configuration, String resourcelocation)
      Deprecated.
      Initialize the ResourceBundle with the given resource.
      Parameters:
      configuration - the configuration
      resourcelocation - Resource.
  • Method Details

    • initRB

      private ResourceBundle initRB()
      Deprecated.
    • containsKey

      public boolean containsKey(String key)
      Deprecated.
      Determines whether the given key can be retrieved from this MessageRetriever
      Parameters:
      key - the resource key
      Returns:
      true if the given key is contained in the underlying ResourceBundle.
    • getText

      public String getText(String key, Object... args) throws MissingResourceException
      Deprecated.
      Get and format message string from resource
      Parameters:
      key - selects message from resource
      args - arguments to be replaced in the message.
      Throws:
      MissingResourceException - when the key does not exist in the properties file.
    • printError

      private void printError(SourcePosition pos, String msg)
      Deprecated.
      Print error message, increment error count.
      Parameters:
      pos - the position of the source
      msg - message to print
    • printError

      private void printError(String msg)
      Deprecated.
      Print error message, increment error count.
      Parameters:
      msg - message to print
    • printWarning

      private void printWarning(SourcePosition pos, String msg)
      Deprecated.
      Print warning message, increment warning count.
      Parameters:
      pos - the position of the source
      msg - message to print
    • printWarning

      private void printWarning(String msg)
      Deprecated.
      Print warning message, increment warning count.
      Parameters:
      msg - message to print
    • printNotice

      private void printNotice(SourcePosition pos, String msg)
      Deprecated.
      Print a message.
      Parameters:
      pos - the position of the source
      msg - message to print
    • printNotice

      private void printNotice(String msg)
      Deprecated.
      Print a message.
      Parameters:
      msg - message to print
    • error

      public void error(SourcePosition pos, String key, Object... args)
      Deprecated.
      Print error message, increment error count.
      Parameters:
      pos - the position of the source
      key - selects message from resource
      args - arguments to be replaced in the message.
    • error

      public void error(String key, Object... args)
      Deprecated.
      Print error message, increment error count.
      Parameters:
      key - selects message from resource
      args - arguments to be replaced in the message.
    • warning

      public void warning(SourcePosition pos, String key, Object... args)
      Deprecated.
      Print warning message, increment warning count.
      Parameters:
      pos - the position of the source
      key - selects message from resource
      args - arguments to be replaced in the message.
    • warning

      public void warning(String key, Object... args)
      Deprecated.
      Print warning message, increment warning count.
      Parameters:
      key - selects message from resource
      args - arguments to be replaced in the message.
    • notice

      public void notice(SourcePosition pos, String key, Object... args)
      Deprecated.
      Print a message.
      Parameters:
      pos - the position of the source
      key - selects message from resource
      args - arguments to be replaced in the message.
    • notice

      public void notice(String key, Object... args)
      Deprecated.
      Print a message.
      Parameters:
      key - selects message from resource
      args - arguments to be replaced in the message.