com.combex.e.edoc
Class ERes

java.lang.Object
  |
  +--com.combex.e.edoc.ERes

class ERes
extends Object

Utility for integrating with javadoc tools and for localization.

Handle Resources. Access to error and warning counts. Message formatting.

Author:
mods by Mark Miller of combex.com subject to the terms of Sun's SCSL license.
See Also:
java.util.ResourceBundle, java.text.MessageFormat

Field Summary
private static ResourceBundle messageRB
           
 
Constructor Summary
(package private) ERes()
           
 
Method Summary
(package private) static void error(String key)
          Print error message, increment error count.
(package private) static void error(String key, String a1)
          Print error message, increment error count.
(package private) static void error(String key, String a1, String a2)
          Print error message, increment error count.
(package private) static void error(String key, String a1, String a2, String a3)
          Print error message, increment error count.
(package private) static String getText(String key)
          get and format message string from resource
(package private) static String getText(String key, String a1)
          get and format message string from resource
(package private) static String getText(String key, String a1, String a2)
          get and format message string from resource
(package private) static String getText(String key, String a1, String a2, String a3)
          get and format message string from resource
(package private) static String getText(String key, String a1, String a2, String a3, String a4)
          get and format message string from resource
(package private) static void initResource()
          Initialize ResourceBundle
(package private) static void notice(String key)
          Print a message.
(package private) static void notice(String key, String a1)
          Print a message.
(package private) static void notice(String key, String a1, String a2)
          Print a message.
(package private) static void notice(String key, String a1, String a2, String a3)
          Print a message.
(package private) static void printError(String msg)
          Print error message, increment error count.
(package private) static void printNotice(String msg)
          Print a message.
(package private) static void printWarning(String msg)
          Print warning message, increment warning count.
(package private) static void warning(String key)
          Print warning message, increment warning count.
(package private) static void warning(String key, String a1)
          Print warning message, increment warning count.
(package private) static void warning(String key, String a1, String a2)
          Print warning message, increment warning count.
(package private) static void warning(String key, String a1, String a2, String a3)
          Print warning message, increment warning count.
(package private) static void warning(String key, String a1, String a2, String a3, String a4)
          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

messageRB

private static ResourceBundle messageRB
Constructor Detail

ERes

ERes()
Method Detail

initResource

static void initResource()
Initialize ResourceBundle


getText

static String getText(String key)
get and format message string from resource

Parameters:
key - selects message from resource

getText

static String getText(String key,
                      String a1)
get and format message string from resource

Parameters:
key - selects message from resource
a1 - first argument

getText

static String getText(String key,
                      String a1,
                      String a2)
get and format message string from resource

Parameters:
key - selects message from resource
a1 - first argument
a2 - second argument

getText

static String getText(String key,
                      String a1,
                      String a2,
                      String a3)
get and format message string from resource

Parameters:
key - selects message from resource
a1 - first argument
a2 - second argument
a3 - third argument

getText

static String getText(String key,
                      String a1,
                      String a2,
                      String a3,
                      String a4)
get and format message string from resource

Parameters:
key - selects message from resource
a1 - first argument
a2 - second argument
a3 - third argument
a4 - fourth argument

printError

static void printError(String msg)
Print error message, increment error count.

Parameters:
msg - message to print

printWarning

static void printWarning(String msg)
Print warning message, increment warning count.

Parameters:
msg - message to print

printNotice

static void printNotice(String msg)
Print a message.

Parameters:
msg - message to print

error

static void error(String key)
Print error message, increment error count.

Parameters:
key - selects message from resource

error

static void error(String key,
                  String a1)
Print error message, increment error count.

Parameters:
key - selects message from resource
a1 - first argument

error

static void error(String key,
                  String a1,
                  String a2)
Print error message, increment error count.

Parameters:
key - selects message from resource
a1 - first argument
a2 - second argument

error

static void error(String key,
                  String a1,
                  String a2,
                  String a3)
Print error message, increment error count.

Parameters:
key - selects message from resource
a1 - first argument
a2 - second argument
a3 - third argument

warning

static void warning(String key)
Print warning message, increment warning count.

Parameters:
key - selects message from resource

warning

static void warning(String key,
                    String a1)
Print warning message, increment warning count.

Parameters:
key - selects message from resource
a1 - first argument

warning

static void warning(String key,
                    String a1,
                    String a2)
Print warning message, increment warning count.

Parameters:
key - selects message from resource
a1 - first argument
a2 - second argument

warning

static void warning(String key,
                    String a1,
                    String a2,
                    String a3)
Print warning message, increment warning count.

Parameters:
key - selects message from resource
a1 - first argument
a2 - second argument
a3 - third argument

warning

static void warning(String key,
                    String a1,
                    String a2,
                    String a3,
                    String a4)
Print warning message, increment warning count.

Parameters:
key - selects message from resource
a1 - first argument
a2 - second argument
a3 - third argument

notice

static void notice(String key)
Print a message.

Parameters:
key - selects message from resource

notice

static void notice(String key,
                   String a1)
Print a message.

Parameters:
key - selects message from resource
a1 - first argument

notice

static void notice(String key,
                   String a1,
                   String a2)
Print a message.

Parameters:
key - selects message from resource
a1 - first argument
a2 - second argument

notice

static void notice(String key,
                   String a1,
                   String a2,
                   String a3)
Print a message.

Parameters:
key - selects message from resource
a1 - first argument
a2 - second argument
a3 - third argument


comments?