net.sf.mpxj.mpx
Class LocaleData

java.lang.Object
  extended by java.util.ResourceBundle
      extended by java.util.ListResourceBundle
          extended by net.sf.mpxj.mpx.LocaleData

public final class LocaleData
extends ListResourceBundle

This class defines utility routines for handling resources, and also the default set of English resources used in MPX files.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
 
Field Summary
static String ACCRUE_TYPES
           
static String AM_TEXT
           
static String BAR_TEXT_DATE_FORMAT
           
static String CODE_PAGE
           
static String CONSTRAINT_TYPES
           
static String CURRENCY_DECIMAL_SEPARATOR
           
static String CURRENCY_DIGITS
           
static String CURRENCY_SYMBOL
           
static String CURRENCY_SYMBOL_POSITION
           
static String CURRENCY_THOUSANDS_SEPARATOR
           
static String DATE_FORMAT
           
static String DATE_ORDER
           
static String DATE_SEPARATOR
           
static String DEFAULT_START_TIME
           
static String FILE_DELIMITER
           
static String FILE_VERSION
           
static String NA
           
static String NO
           
static String PM_TEXT
           
static String PRIORITY_TYPES
           
static String PROGRAM_NAME
           
static String RELATION_TYPES
           
static String RESOURCE_NAMES
           
static String TASK_NAMES
           
static String TIME_FORMAT
           
static String TIME_SEPARATOR
           
static String TIME_UNITS_ARRAY
           
static String TIME_UNITS_MAP
           
static String YES
           
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
LocaleData()
           
 
Method Summary
static char getChar(Locale locale, String key)
          Convenience method for retrieving a char resource.
 Object[][] getContents()
          
static Integer getInteger(Locale locale, String key)
          Convenience method for retrieving an Integer resource.
static Map getMap(Locale locale, String key)
          Convenience method for retrieving a Map resource.
static Object getObject(Locale locale, String key)
          Convenience method for retrieving an Object resource.
static String getString(Locale locale, String key)
          Convenience method for retrieving a String resource.
static String[] getStringArray(Locale locale, String key)
          Convenience method for retrieving a String[] resource.
static String[][] getStringArrays(Locale locale, String key)
          Convenience method for retrieving a String[][] resource.
 
Methods inherited from class java.util.ListResourceBundle
getKeys, handleGetObject, handleKeySet
 
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, keySet, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_DELIMITER

public static final String FILE_DELIMITER
See Also:
Constant Field Values

PROGRAM_NAME

public static final String PROGRAM_NAME
See Also:
Constant Field Values

FILE_VERSION

public static final String FILE_VERSION
See Also:
Constant Field Values

CODE_PAGE

public static final String CODE_PAGE
See Also:
Constant Field Values

YES

public static final String YES
See Also:
Constant Field Values

NO

public static final String NO
See Also:
Constant Field Values

CURRENCY_SYMBOL

public static final String CURRENCY_SYMBOL
See Also:
Constant Field Values

CURRENCY_SYMBOL_POSITION

public static final String CURRENCY_SYMBOL_POSITION
See Also:
Constant Field Values

CURRENCY_DIGITS

public static final String CURRENCY_DIGITS
See Also:
Constant Field Values

CURRENCY_THOUSANDS_SEPARATOR

public static final String CURRENCY_THOUSANDS_SEPARATOR
See Also:
Constant Field Values

CURRENCY_DECIMAL_SEPARATOR

public static final String CURRENCY_DECIMAL_SEPARATOR
See Also:
Constant Field Values

DATE_ORDER

public static final String DATE_ORDER
See Also:
Constant Field Values

TIME_FORMAT

public static final String TIME_FORMAT
See Also:
Constant Field Values

DEFAULT_START_TIME

public static final String DEFAULT_START_TIME
See Also:
Constant Field Values

DATE_SEPARATOR

public static final String DATE_SEPARATOR
See Also:
Constant Field Values

TIME_SEPARATOR

public static final String TIME_SEPARATOR
See Also:
Constant Field Values

AM_TEXT

public static final String AM_TEXT
See Also:
Constant Field Values

PM_TEXT

public static final String PM_TEXT
See Also:
Constant Field Values

DATE_FORMAT

public static final String DATE_FORMAT
See Also:
Constant Field Values

BAR_TEXT_DATE_FORMAT

public static final String BAR_TEXT_DATE_FORMAT
See Also:
Constant Field Values

NA

public static final String NA
See Also:
Constant Field Values

TIME_UNITS_ARRAY

public static final String TIME_UNITS_ARRAY
See Also:
Constant Field Values

TIME_UNITS_MAP

public static final String TIME_UNITS_MAP
See Also:
Constant Field Values

ACCRUE_TYPES

public static final String ACCRUE_TYPES
See Also:
Constant Field Values

RELATION_TYPES

public static final String RELATION_TYPES
See Also:
Constant Field Values

PRIORITY_TYPES

public static final String PRIORITY_TYPES
See Also:
Constant Field Values

CONSTRAINT_TYPES

public static final String CONSTRAINT_TYPES
See Also:
Constant Field Values

TASK_NAMES

public static final String TASK_NAMES
See Also:
Constant Field Values

RESOURCE_NAMES

public static final String RESOURCE_NAMES
See Also:
Constant Field Values
Constructor Detail

LocaleData

public LocaleData()
Method Detail

getContents

public Object[][] getContents()

Specified by:
getContents in class ListResourceBundle

getString

public static final String getString(Locale locale,
                                     String key)
Convenience method for retrieving a String resource.

Parameters:
locale - locale identifier
key - resource key
Returns:
resource value

getStringArray

public static final String[] getStringArray(Locale locale,
                                            String key)
Convenience method for retrieving a String[] resource.

Parameters:
locale - locale identifier
key - resource key
Returns:
resource value

getStringArrays

public static final String[][] getStringArrays(Locale locale,
                                               String key)
Convenience method for retrieving a String[][] resource.

Parameters:
locale - locale identifier
key - resource key
Returns:
resource value

getObject

public static final Object getObject(Locale locale,
                                     String key)
Convenience method for retrieving an Object resource.

Parameters:
locale - locale identifier
key - resource key
Returns:
resource value

getMap

public static final Map getMap(Locale locale,
                               String key)
Convenience method for retrieving a Map resource.

Parameters:
locale - locale identifier
key - resource key
Returns:
resource value

getInteger

public static final Integer getInteger(Locale locale,
                                       String key)
Convenience method for retrieving an Integer resource.

Parameters:
locale - locale identifier
key - resource key
Returns:
resource value

getChar

public static final char getChar(Locale locale,
                                 String key)
Convenience method for retrieving a char resource.

Parameters:
locale - locale identifier
key - resource key
Returns:
resource value


Copyright © 2012. All Rights Reserved.