public class JodaDateTimeHandler extends Object implements com.github.jeanmerelis.jeanson.typehandler.TypeHandler<org.joda.time.DateTime>
| Modifier and Type | Field and Description |
|---|---|
protected String |
pattern |
protected static String |
patternDefault |
protected static String |
patternDefaultForDate |
protected static String |
patternDefaultForDateTime |
protected static String |
patternDefaultForTime |
protected static boolean |
usesMills |
| Constructor and Description |
|---|
JodaDateTimeHandler() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getPatternDefault() |
static String |
getPatternDefaultForDate() |
static String |
getPatternDefaultForDateTime() |
static String |
getPatternDefaultForTime() |
static boolean |
isUsesMills() |
void |
setConfig(String[] params) |
static void |
setPatternDefault(String patternDefault) |
static void |
setPatternDefaultForDate(String patternDefaultForDate) |
static void |
setPatternDefaultForDateTime(String patternDefaultForDateTime) |
static void |
setPatternDefaultForTime(String patternDefaultForTime) |
static void |
setUsesMills(boolean usesMills) |
void |
write(Writer w,
org.joda.time.DateTime obj) |
protected String pattern
protected static String patternDefault
protected static String patternDefaultForDate
protected static String patternDefaultForTime
protected static String patternDefaultForDateTime
protected static boolean usesMills
public void write(Writer w, org.joda.time.DateTime obj) throws IOException
write in interface com.github.jeanmerelis.jeanson.typehandler.TypeHandler<org.joda.time.DateTime>IOExceptionpublic void setConfig(String[] params)
setConfig in interface com.github.jeanmerelis.jeanson.typehandler.TypeHandler<org.joda.time.DateTime>public static String getPatternDefault()
public static void setPatternDefault(String patternDefault)
public static String getPatternDefaultForDate()
public static void setPatternDefaultForDate(String patternDefaultForDate)
public static String getPatternDefaultForTime()
public static void setPatternDefaultForTime(String patternDefaultForTime)
public static String getPatternDefaultForDateTime()
public static void setPatternDefaultForDateTime(String patternDefaultForDateTime)
public static boolean isUsesMills()
public static void setUsesMills(boolean usesMills)
Copyright © 2015 Jeandeson O. Merelis. All rights reserved.