|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.model.BigDecimalPM.Format
public static class BigDecimalPM.Format
The BigDecimalPM.Format
is a IFormat
for converting
between BigDecimal
and String
.
Constructor Summary | |
---|---|
BigDecimalPM.Format(java.text.DecimalFormat format)
Creates a BigDecimalPM.Format using the given
DecimalFormat . |
|
BigDecimalPM.Format(java.text.DecimalFormat aStrictFormat,
java.text.DecimalFormat aSimplifiedFormat)
Creates a BigDecimalPM.Format using the given two formats. |
Method Summary | |
---|---|
java.text.DecimalFormat |
createSimplifiedNumberFormat(java.text.DecimalFormat aFormat)
Creates a simplified version of the given format. |
java.lang.String |
format(java.math.BigDecimal value)
Formats the given value to a String representation. |
java.text.DecimalFormat |
getSimplifiedFormat()
|
java.text.DecimalFormat |
getStrictFormat()
|
java.math.BigDecimal |
parse(java.lang.String text)
Parses the given text and returns an instance of T that is represented by the text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BigDecimalPM.Format(java.text.DecimalFormat format)
BigDecimalPM.Format
using the given
DecimalFormat
.
format
- public BigDecimalPM.Format(java.text.DecimalFormat aStrictFormat, java.text.DecimalFormat aSimplifiedFormat)
BigDecimalPM.Format
using the given two formats.
aStrictFormat
- the strict format defines, how to format a
BigDecimal into a String and how to parse itaSimplifiedFormat
- the simplified format defines, how to parse
a String if the strict format fails to parse itMethod Detail |
---|
public java.text.DecimalFormat getStrictFormat()
public java.text.DecimalFormat getSimplifiedFormat()
public java.math.BigDecimal parse(java.lang.String text) throws ConversionException
parse
in interface IFormat<java.math.BigDecimal>
ConversionException
public java.lang.String format(java.math.BigDecimal value)
format
in interface IFormat<java.math.BigDecimal>
public java.text.DecimalFormat createSimplifiedNumberFormat(java.text.DecimalFormat aFormat)
aFormat
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |