|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.format.datetime.joda.JodaTimeFormattingConfigurer
public class JodaTimeFormattingConfigurer
Configures Joda Time's Formatting system for use with Spring.
setDateStyle(java.lang.String)
,
setTimeStyle(java.lang.String)
,
setDateTimeStyle(java.lang.String)
,
setUseIsoFormat(boolean)
,
installJodaTimeFormatting(org.springframework.format.FormatterRegistry)
Field Summary | |
---|---|
private java.lang.String |
dateStyle
|
private java.lang.String |
dateTimeStyle
|
private java.lang.String |
timeStyle
|
private boolean |
useIsoFormat
|
Constructor Summary | |
---|---|
JodaTimeFormattingConfigurer()
|
Method Summary | |
---|---|
private DateTimeFormatter |
getJodaDateFormatter()
|
private DateTimeFormatter |
getJodaDateTimeFormatter()
|
private DateTimeFormatter |
getJodaTimeFormatter()
|
void |
installJodaTimeFormatting(FormatterRegistry formatterRegistry)
Install Joda Time formatters given the current configuration of this JodaTimeFormattingConfigurer . |
void |
setDateStyle(java.lang.String dateStyle)
Set the default format style of Joda LocalDate objects. |
void |
setDateTimeStyle(java.lang.String dateTimeStyle)
Set the default format style of Joda LocalDateTime and DateTime objects,
as well as JDK Date and Calendar objects. |
void |
setTimeStyle(java.lang.String timeStyle)
Set the default format style of Joda LocalTime objects. |
void |
setUseIsoFormat(boolean useIsoFormat)
Set whether standard ISO formatting should be applied to all Date/Time types. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String dateStyle
private java.lang.String timeStyle
private java.lang.String dateTimeStyle
private boolean useIsoFormat
Constructor Detail |
---|
public JodaTimeFormattingConfigurer()
Method Detail |
---|
public void setDateStyle(java.lang.String dateStyle)
LocalDate
objects.
Default is DateTimeFormat#shortDate()
.
public void setTimeStyle(java.lang.String timeStyle)
LocalTime
objects.
Default is DateTimeFormat#shortTime()
.
public void setDateTimeStyle(java.lang.String dateTimeStyle)
LocalDateTime
and DateTime
objects,
as well as JDK Date
and Calendar
objects.
Default is DateTimeFormat#shortDateTime()
.
public void setUseIsoFormat(boolean useIsoFormat)
public void installJodaTimeFormatting(FormatterRegistry formatterRegistry)
JodaTimeFormattingConfigurer
.
private DateTimeFormatter getJodaDateFormatter()
private DateTimeFormatter getJodaTimeFormatter()
private DateTimeFormatter getJodaDateTimeFormatter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |