ValueParser<Date>public class DateValueParser extends Object implements ValueParser<Date>
| Constructor | Description |
|---|---|
DateValueParser() |
| Modifier and Type | Method | Description |
|---|---|---|
static Map<String,SimpleDateFormat> |
getFormats() |
|
Object[] |
getSupportedTypes() |
Get the types supported by this value parser
|
Date |
parse(Object value) |
Coerce an object into the generic type
|
static void |
registerFormat(String pattern) |
Register a new date format pattern
|
static void |
unregisterFormat(String pattern) |
Unregister a date format pattern
|
static void |
unregisterFormats() |
Unregister all formats
|
public Object[] getSupportedTypes()
ValueParsergetSupportedTypes in interface ValueParser<Date>public static Map<String,SimpleDateFormat> getFormats()
public static void registerFormat(String pattern)
pattern - the pattern to registerpublic static void unregisterFormat(String pattern)
pattern - the pattern to unregisterpublic static void unregisterFormats()
public Date parse(Object value)
ValueParserparse in interface ValueParser<Date>value - the value to convertCopyright © 2018 Institut Laue-Langevin. All rights reserved.