net.sf.mpxj.utility
Class MPXJNumberFormat

java.lang.Object
  extended by java.text.Format
      extended by java.text.NumberFormat
          extended by java.text.DecimalFormat
              extended by net.sf.mpxj.utility.MPXJNumberFormat
All Implemented Interfaces:
Serializable, Cloneable

public final class MPXJNumberFormat
extends DecimalFormat

This class extends the functionality of the DecimalFormat class for use within MPXJ.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.NumberFormat
NumberFormat.Field
 
Field Summary
 
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
 
Constructor Summary
MPXJNumberFormat()
           
 
Method Summary
 void applyPattern(String primaryPattern, String[] alternativePatterns, char decimalSeparator, char groupingSeparator)
          This method is used to configure the primary and alternative format patterns.
 Number parse(String str, ParsePosition parsePosition)
          
 
Methods inherited from class java.text.DecimalFormat
applyLocalizedPattern, applyPattern, clone, equals, format, format, format, formatToCharacterIterator, getCurrency, getDecimalFormatSymbols, getGroupingSize, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMultiplier, getNegativePrefix, getNegativeSuffix, getPositivePrefix, getPositiveSuffix, getRoundingMode, hashCode, isDecimalSeparatorAlwaysShown, isParseBigDecimal, setCurrency, setDecimalFormatSymbols, setDecimalSeparatorAlwaysShown, setGroupingSize, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setMultiplier, setNegativePrefix, setNegativeSuffix, setParseBigDecimal, setPositivePrefix, setPositiveSuffix, setRoundingMode, toLocalizedPattern, toPattern
 
Methods inherited from class java.text.NumberFormat
format, format, getAvailableLocales, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setGroupingUsed, setParseIntegerOnly
 
Methods inherited from class java.text.Format
format, parseObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MPXJNumberFormat

public MPXJNumberFormat()
Method Detail

applyPattern

public void applyPattern(String primaryPattern,
                         String[] alternativePatterns,
                         char decimalSeparator,
                         char groupingSeparator)
This method is used to configure the primary and alternative format patterns.

Parameters:
primaryPattern - new format pattern
alternativePatterns - alternative format patterns
decimalSeparator - Locale specific decimal separator to replace placeholder
groupingSeparator - Locale specific grouping separator to replace placeholder

parse

public Number parse(String str,
                    ParsePosition parsePosition)

Overrides:
parse in class DecimalFormat


Copyright © 2012. All Rights Reserved.