MPXJ: Microsoft Project Exchange

net.sf.mpxj.utility
Class MPXJFormats

java.lang.Object
  extended by net.sf.mpxj.utility.MPXJFormats

public final class MPXJFormats
extends java.lang.Object

This class manages the various objects required to parse and format data items in MPX files.


Constructor Summary
MPXJFormats(java.util.Locale locale, java.lang.String nullText, ProjectFile file)
          Constructor.
 
Method Summary
 java.text.NumberFormat getCurrencyFormat()
          Retrieve the currency format.
 java.text.DateFormat getDateFormat()
          Retrieve the date format.
 java.text.DateFormat getDateTimeFormat()
          Retrieve the date time format.
 java.text.NumberFormat getDecimalFormat()
          Retrieve the decimal format.
 java.text.NumberFormat getDurationDecimalFormat()
          Retrieve the duration decimal format.
 java.lang.String getNullText()
          Retrieve the text representing a null value.
 java.text.NumberFormat getPercentageDecimalFormat()
          Retrieve the percentage decimal format.
 java.text.DateFormat getTimeFormat()
          Retrieve the time format.
 java.text.NumberFormat getUnitsDecimalFormat()
          Retrieve the units decimal format.
 void update()
          Called to update the cached formats when something changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPXJFormats

public MPXJFormats(java.util.Locale locale,
                   java.lang.String nullText,
                   ProjectFile file)
Constructor.

Parameters:
locale - target locale
nullText - locale specific text to represent a value which has not been set, normally "NA"
file - parent file
Method Detail

update

public void update()
Called to update the cached formats when something changes.


getUnitsDecimalFormat

public java.text.NumberFormat getUnitsDecimalFormat()
Retrieve the units decimal format.

Returns:
units decimal format

getDecimalFormat

public java.text.NumberFormat getDecimalFormat()
Retrieve the decimal format.

Returns:
decimal format

getCurrencyFormat

public java.text.NumberFormat getCurrencyFormat()
Retrieve the currency format.

Returns:
currency format

getDurationDecimalFormat

public java.text.NumberFormat getDurationDecimalFormat()
Retrieve the duration decimal format.

Returns:
duration decimal format

getPercentageDecimalFormat

public java.text.NumberFormat getPercentageDecimalFormat()
Retrieve the percentage decimal format.

Returns:
percentage decimal format

getDateTimeFormat

public java.text.DateFormat getDateTimeFormat()
Retrieve the date time format.

Returns:
date time format

getDateFormat

public java.text.DateFormat getDateFormat()
Retrieve the date format.

Returns:
date format

getTimeFormat

public java.text.DateFormat getTimeFormat()
Retrieve the time format.

Returns:
time format

getNullText

public java.lang.String getNullText()
Retrieve the text representing a null value.

Returns:
null text


Copyright © 2000-2014 Packwood Software. All Rights Reserved.