Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

GDSParserI18NFactory Class Reference

Collaboration diagram for GDSParserI18NFactory:

Collaboration graph
[legend]
List of all members.

Detailed Description

A storage class for internationalization constants.

These constants correspond to resource bundle keys that can be used to retrieve localized application messages.

Author:
Author
tvaline
Version:
Revision
1.5
,
Date
2005/03/12 08:11:09

Definition at line 31 of file GDSParserI18NFactory.java.

Public Member Functions

String toString ()
 Returns a string representation of this class.

Static Public Member Functions

static String getString (String key)
 Returns the internationalized string for a given key.
static String sprintf (String format, Object...args)
 A sprintf method implementation.

Static Public Attributes

static final String i18n_APP_COPY = "I18N_APP_COPY"
 Internationalized APP_COPY message.
static final String i18n_APP_TITLE = "I18N_APP_TITLE"
 Internationalized APP_TITLE message.
static final String i18n_APP_VERSION = "I18N_APP_VERSION"
 Internationalized APP_VERSION message.
static final String i18n_ERROR = "I18N_ERROR"
 Internationalized ERROR message.
static final String i18n_ERROR_TITLE = "I18N_ERROR_TITLE"
 Internationalized ERROR_TITLE message.
static final String i18n_INFO = "I18N_INFO"
 Internationalized INFO message.
static final String i18n_INFO_DONE = "I18N_INFO_DONE"
 Internationalized INFO_DONE message.
static final String i18n_INFO_GDS_SET_TO
 Internationalized INFO_GDS_SET_TO message.
static final String i18n_INFO_LOG_SET_TO
 Internationalized INFO_LOG_SET_TO message.
static final String i18n_USAGE_START = "I18N_USAGE_START"
 Internationalized USAGE_START message.

Static Protected Attributes

static final String res
 The resource bundle path.


Member Function Documentation

static String getString String  key  )  [static]
 

Returns the internationalized string for a given key.

Parameters:
key The key for the string.
Returns:
The internationalized string.

Definition at line 75 of file GDSParserI18NFactory.java.

References GDSParserI18NFactory.res.

Referenced by GDSParserView.GDSParserView(), GDSParserController.processEvent(), and GDSParserController.startController().

00075                                              {
00076     return ResourceBundle.getBundle(res).getString(key);
00077   }

static String sprintf String  format,
Object...  args
[static]
 

A sprintf method implementation.

Parameters:
format The format control string
args The format token values
Returns:
The corresponding formatted string

Definition at line 87 of file GDSParserI18NFactory.java.

00087                                                               {
00088     StringWriter s = new StringWriter(format.length() * 2);
00089     PrintWriter  p = new PrintWriter(s);
00090     p.printf(format, args);
00091     p.flush();
00092     String result = s.toString();
00093     p.close();
00094     try {
00095       s.close();
00096     } catch(IOException e) {
00097       /* Can't do anything now */
00098     }
00099 
00100     return result;
00101   }

String toString  ) 
 

Returns a string representation of this class.

Returns:
The physical address of this instance

Definition at line 108 of file GDSParserI18NFactory.java.

00108 {return super.toString();}


Member Data Documentation

final String i18n_APP_COPY = "I18N_APP_COPY" [static]
 

Internationalized APP_COPY message.

Definition at line 60 of file GDSParserI18NFactory.java.

final String i18n_APP_TITLE = "I18N_APP_TITLE" [static]
 

Internationalized APP_TITLE message.

Definition at line 63 of file GDSParserI18NFactory.java.

Referenced by GDSParserView.GDSParserView().

final String i18n_APP_VERSION = "I18N_APP_VERSION" [static]
 

Internationalized APP_VERSION message.

Definition at line 57 of file GDSParserI18NFactory.java.

final String i18n_ERROR = "I18N_ERROR" [static]
 

Internationalized ERROR message.

Definition at line 40 of file GDSParserI18NFactory.java.

Referenced by GDSParserController.processEvent().

final String i18n_ERROR_TITLE = "I18N_ERROR_TITLE" [static]
 

Internationalized ERROR_TITLE message.

Definition at line 66 of file GDSParserI18NFactory.java.

final String i18n_INFO = "I18N_INFO" [static]
 

Internationalized INFO message.

Definition at line 37 of file GDSParserI18NFactory.java.

Referenced by GDSParserController.processEvent().

final String i18n_INFO_DONE = "I18N_INFO_DONE" [static]
 

Internationalized INFO_DONE message.

Definition at line 51 of file GDSParserI18NFactory.java.

final String i18n_INFO_GDS_SET_TO [static]
 

Initial value:

    "I18N_INFO_GDS_SET_TO"
Internationalized INFO_GDS_SET_TO message.

Definition at line 47 of file GDSParserI18NFactory.java.

Referenced by GDSParserController.startController().

final String i18n_INFO_LOG_SET_TO [static]
 

Initial value:

    "I18N_INFO_LOG_SET_TO"
Internationalized INFO_LOG_SET_TO message.

Definition at line 43 of file GDSParserI18NFactory.java.

Referenced by GDSParserController.startController().

final String i18n_USAGE_START = "I18N_USAGE_START" [static]
 

Internationalized USAGE_START message.

Definition at line 54 of file GDSParserI18NFactory.java.

final String res [static, protected]
 

Initial value:

    "com/ohrasys/app/gdsparser/GDSParserProperties"
The resource bundle path.

Definition at line 33 of file GDSParserI18NFactory.java.

Referenced by GDSParserI18NFactory.getString().


The documentation for this class was generated from the following file:
Generated on Mon May 23 13:48:57 2005 for Java GDS Parser (JGDSParser) by  doxygen 1.4.2