|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.format.datetime.joda.JodaTimeContext
public class JodaTimeContext
A context that holds user-specific Joda Time settings such as the user's Chronology (calendar system) and time zone.
A null
property value indicate the user has not specified a setting.
JodaTimeContextHolder
Field Summary | |
---|---|
private Chronology |
chronology
|
private DateTimeZone |
timeZone
|
Constructor Summary | |
---|---|
JodaTimeContext()
|
Method Summary | |
---|---|
Chronology |
getChronology()
The user's chronology (calendar system). |
DateTimeFormatter |
getFormatter(DateTimeFormatter formatter)
Gets the Formatter with the this context's settings applied to the base formatter . |
DateTimeZone |
getTimeZone()
The user's timezone. |
void |
setChronology(Chronology chronology)
Set the user's chronology. |
void |
setTimeZone(DateTimeZone timeZone)
Set the user's timezone. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Chronology chronology
private DateTimeZone timeZone
Constructor Detail |
---|
public JodaTimeContext()
Method Detail |
---|
public void setChronology(Chronology chronology)
public Chronology getChronology()
public void setTimeZone(DateTimeZone timeZone)
public DateTimeZone getTimeZone()
public DateTimeFormatter getFormatter(DateTimeFormatter formatter)
formatter
.
formatter
- the base formatter that establishes default formatting rules, generally context independent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |