public static class CalendarSwap.ISO8601DTPZ extends CalendarSwap.ISO8601DTZ
CalendarSwap.ISO8601DTZ
except serializes to millisecond precision.
CalendarSwap.DateFull, CalendarSwap.DateLong, CalendarSwap.DateMedium, CalendarSwap.DateShort, CalendarSwap.DateSimple, CalendarSwap.DateTimeFull, CalendarSwap.DateTimeLong, CalendarSwap.DateTimeMedium, CalendarSwap.DateTimeShort, CalendarSwap.DateTimeSimple, CalendarSwap.ISO8601D, CalendarSwap.ISO8601DT, CalendarSwap.ISO8601DTL, CalendarSwap.ISO8601DTP, CalendarSwap.ISO8601DTPZ, CalendarSwap.ISO8601DTZ, CalendarSwap.RFC2822D, CalendarSwap.RFC2822DT, CalendarSwap.RFC2822DTZ, CalendarSwap.TimeFull, CalendarSwap.TimeLong, CalendarSwap.TimeMedium, CalendarSwap.TimeShort, CalendarSwap.TimeSimple, CalendarSwap.ToString
Constructor and Description |
---|
ISO8601DTPZ() |
Modifier and Type | Method and Description |
---|---|
String |
swap(BeanSession session,
Calendar o)
If this transform is to be used to serialize non-serializable POJOs, it must implement this method.
|
unswap
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, withTemplate, withTemplate
public ISO8601DTPZ()
public String swap(BeanSession session, Calendar o) throws Exception
PojoSwap
The object must be converted into one of the following serializable types:
String
Number
Boolean
Collection
containing anything on this list.
Map
containing anything on this list.
swap
in class CalendarSwap.ISO8601DTZ
session
- The bean session to use to get the class meta.
This is always going to be the same bean context that created this swap.o
- The object to be transformed.Exception
- If a problem occurred trying to convert the output.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.