|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.japaki.kit.LeafParserMold<Number>
net.sf.japaki.kit.DecimalParserMold
public class DecimalParserMold
Parser mold based on a DecimalFormat.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.sf.japaki.kit.ParserMold |
|---|
ParserMold.Parameter |
| Constructor Summary | |
|---|---|
protected |
DecimalParserMold()
Creates a new decimal parser mold for the default locale. |
|
DecimalParserMold(DecimalFormatSymbols formatSymbols)
Creates a new decimal parser mold. |
|
DecimalParserMold(Locale locale)
Creates a new decimal parser mold. |
| Method Summary | |
|---|---|
protected Format |
getFormat(String pattern)
Returns the format of the parser to be created. |
static DecimalParserMold |
getInstance()
Returns an instance of this class for the default locale. |
| Methods inherited from class net.sf.japaki.kit.LeafParserMold |
|---|
getErrorMessage, getFormat, getName, getParser, getTargetType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DecimalParserMold(DecimalFormatSymbols formatSymbols)
formatSymbols - see
DecimalFormat
NullPointerException - if formatSymbols is nullpublic DecimalParserMold(Locale locale)
locale - the locale whose decimal format symbols should be used
NullPointerException - if locale is nullprotected DecimalParserMold()
| Method Detail |
|---|
public static final DecimalParserMold getInstance()
protected Format getFormat(String pattern)
LeafParserMold
getFormat in class LeafParserMold<Number>pattern - the pattern describing the format
NullPointerException - if the given pattern is null
IllegalArgumentException - if the given pattern is invalid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||