public abstract class JodaConvert extends Object
| Constructor and Description |
|---|
JodaConvert() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.joda.time.DateMidnight |
deserializeDateMidnight(String text,
org.joda.time.DateTimeZone zone)
Deserialize date value as a midnight date in the specified time zone.
|
static org.joda.time.LocalDate |
deserializeLocalDate(String text)
Deserialize date value from text as local date without time zone.
|
static org.joda.time.DateMidnight |
deserializeLocalDateMidnight(String text)
Deserialize date value from text as midnight date in default (local) time zone.
|
static org.joda.time.DateTime |
deserializeLocalDateTime(String text)
Deserialize date/time value from text into the local (default) time zone.
|
static org.joda.time.LocalTime |
deserializeLocalTime(String text)
Deserialize time value from text as local time.
|
static org.joda.time.DateTime |
deserializeStrictLocalDateTime(String text)
Deserialize local (default zone) date/time value from text with time zone required.
|
static org.joda.time.DateTime |
deserializeStrictUTCDateTime(String text)
Deserialize UTC date/time value from text with time zone required.
|
static org.joda.time.DateMidnight |
deserializeUTCDateMidnight(String text)
Deserialize date value from text as midnight date in UTC time zone.
|
static org.joda.time.DateTime |
deserializeUTCDateTime(String text)
Deserialize UTC date/time value from text into the UTC time zone.
|
static org.joda.time.DateMidnight |
deserializeZonedDateMidnight(String text)
Deserialize date value from text as midnight date in specified (or default) time zone.
|
static org.joda.time.DateTime |
deserializeZonedDateTime(String text)
Deserialize date/time value from text in specified (or default) time zone.
|
protected static org.joda.time.DateTimeZone |
findZone(String text,
org.joda.time.DateTimeZone dflt)
Find the date/time zone for an xs:date or xs:dateTime text representation.
|
protected static org.joda.time.DateTime |
parseDateTime(String text,
boolean full,
org.joda.time.DateTimeZone zone)
Parse date/time value from text.
|
static String |
serializeLocalDate(org.joda.time.LocalDate date)
Serialize local date value to general date text without time zone.
|
static String |
serializeUnzonedDateMidnight(org.joda.time.DateMidnight date)
Serialize midnight date value to general date text without time zone.
|
static String |
serializeUnzonedLocalTime(org.joda.time.LocalTime time)
Serialize local time value to general date text without time zone.
|
static String |
serializeUTCDateMidnight(org.joda.time.DateMidnight date)
Serialize midnight date value to general date text with UTC time zone.
|
static String |
serializeUTCDateTime(org.joda.time.DateTime time)
Serialize date/time to general dateTime text.
|
static String |
serializeUTCLocalTime(org.joda.time.LocalTime time)
Serialize local time value to general date text with UTC time zone.
|
static String |
serializeZonedDateMidnight(org.joda.time.DateMidnight date)
Serialize midnight date value to general date text with time zone offset.
|
static String |
serializeZonedDateTime(org.joda.time.DateTime time)
Serialize date/time to general dateTime text.
|
public static org.joda.time.LocalDate deserializeLocalDate(String text) throws JiBXException
null input.text - text to be parsed (may be null)null if passed null inputJiBXException - on parse errorpublic static String serializeLocalDate(org.joda.time.LocalDate date)
date - date to be convertedprotected static org.joda.time.DateMidnight deserializeDateMidnight(String text, org.joda.time.DateTimeZone zone) throws JiBXException
text - zone - JiBXExceptionprotected static org.joda.time.DateTimeZone findZone(String text, org.joda.time.DateTimeZone dflt) throws JiBXException
text - xs:date or xs:dateTime valuedflt - default zone to be returned if no zone specifiedJiBXExceptionpublic static org.joda.time.DateMidnight deserializeZonedDateMidnight(String text) throws JiBXException
null
input.text - text to be parsed (may be null)null if passed null inputJiBXException - on parse errorpublic static org.joda.time.DateMidnight deserializeLocalDateMidnight(String text) throws JiBXException
null input.text - text to be parsed (may be null)null if passed null inputJiBXException - on parse errorpublic static org.joda.time.DateMidnight deserializeUTCDateMidnight(String text) throws JiBXException
null input.text - text to be parsed (may be null)null if passed null inputJiBXException - on parse errorpublic static String serializeUnzonedDateMidnight(org.joda.time.DateMidnight date)
date - date to be convertedpublic static String serializeZonedDateMidnight(org.joda.time.DateMidnight date)
date - date to be convertedpublic static String serializeUTCDateMidnight(org.joda.time.DateMidnight date)
date - date to be convertedpublic static org.joda.time.LocalTime deserializeLocalTime(String text) throws JiBXException
null input.text - text to be parsed (may be null)null if passed null inputJiBXException - on parse errorpublic static String serializeUnzonedLocalTime(org.joda.time.LocalTime time)
time - time to be convertedpublic static String serializeUTCLocalTime(org.joda.time.LocalTime time)
time - time to be convertedprotected static org.joda.time.DateTime parseDateTime(String text, boolean full, org.joda.time.DateTimeZone zone) throws JiBXException
text - full - zoned time required flag (exception thrown if missing)zone - time zone used for returned date/timeJiBXExceptionpublic static org.joda.time.DateTime deserializeZonedDateTime(String text) throws JiBXException
null
input.text - text to be parsed (may be null)null if passed null inputJiBXException - on parse errorpublic static org.joda.time.DateTime deserializeUTCDateTime(String text) throws JiBXException
null input.text - text to be parsed (may be null)null if passed null inputJiBXException - on parse errorpublic static org.joda.time.DateTime deserializeLocalDateTime(String text) throws JiBXException
null
input.text - text to be parsed (may be null)null if passed null inputJiBXException - on parse errorpublic static org.joda.time.DateTime deserializeStrictUTCDateTime(String text) throws JiBXException
null input.text - text to be parsed (may be null)null if passed null inputJiBXException - on parse errorpublic static org.joda.time.DateTime deserializeStrictLocalDateTime(String text) throws JiBXException
null input.text - text to be parsed (may be null)null if passed null inputJiBXException - on parse errorpublic static String serializeZonedDateTime(org.joda.time.DateTime time)
time - date/time to be convertedpublic static String serializeUTCDateTime(org.joda.time.DateTime time)
time - date/time to be convertedCopyright © 2005-2014 jibx.org. All Rights Reserved.