public class LocalDateTimeConverter extends TemporalAccessConverter<java.time.LocalDateTime>
PROPERTY_DATE_TIME_FORMATTER| Constructor and Description |
|---|
LocalDateTimeConverter()
Creates a LocalDateTimeConverter.
|
| Modifier and Type | Method and Description |
|---|---|
java.time.LocalDateTime |
fromString(java.lang.String string,
ConverterContext context)
Converts from a String to a LocalDateTime.
|
protected java.time.format.DateTimeFormatter |
getFullDateTimeFormatter() |
protected java.time.format.DateTimeFormatter |
getLongDateTimeFormatter() |
protected java.time.format.DateTimeFormatter |
getMediumDateTimeFormatter() |
protected java.time.format.DateTimeFormatter |
getShortDateTimeFormatter() |
getDefaultDateTimeFormatter, setDefaultDateTimeFormatter, temporalFromString, toStringfromString, getObjectConverterManager, toString, toStringConverterpublic LocalDateTimeConverter()
public java.time.LocalDateTime fromString(java.lang.String string,
ConverterContext context)
fromString in interface ObjectConverter<java.time.LocalDateTime>fromString in class DefaultObjectConverter<java.time.LocalDateTime>string - the string to be converted.context - the converter context.protected java.time.format.DateTimeFormatter getFullDateTimeFormatter()
getFullDateTimeFormatter in class TemporalAccessConverter<java.time.LocalDateTime>protected java.time.format.DateTimeFormatter getLongDateTimeFormatter()
getLongDateTimeFormatter in class TemporalAccessConverter<java.time.LocalDateTime>protected java.time.format.DateTimeFormatter getMediumDateTimeFormatter()
getMediumDateTimeFormatter in class TemporalAccessConverter<java.time.LocalDateTime>protected java.time.format.DateTimeFormatter getShortDateTimeFormatter()
getShortDateTimeFormatter in class TemporalAccessConverter<java.time.LocalDateTime>