|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.japaki.kit.LeafParserMold<Date>
net.sf.japaki.kit.DateParserMold
public class DateParserMold
Parser mold based on a SimpleDateFormat
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sf.japaki.kit.ParserMold |
---|
ParserMold.Parameter |
Constructor Summary | |
---|---|
protected |
DateParserMold()
Creates a new date parser mold for the default locale. |
|
DateParserMold(DateFormatSymbols formatSymbols)
Creates a new date parser mold. |
|
DateParserMold(Locale locale)
Creates a new date parser mold. |
Method Summary | |
---|---|
protected Format |
getFormat(String pattern)
Returns the format of the parser to be created. |
static DateParserMold |
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 DateParserMold(DateFormatSymbols formatSymbols)
formatSymbols
- see
SimpleDateFormat
NullPointerException
- if formatSymbols is null
public DateParserMold(Locale locale)
locale
- see SimpleDateFormat
NullPointerException
- if locale is null
protected DateParserMold()
Method Detail |
---|
public static final DateParserMold getInstance()
protected Format getFormat(String pattern)
LeafParserMold
getFormat
in class LeafParserMold<Date>
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 |