Class ObjectCodecService.CalendarCodec
- java.lang.Object
-
- org.nuxeo.ecm.automation.io.services.codec.ObjectCodec<Calendar>
-
- org.nuxeo.ecm.automation.io.services.codec.ObjectCodecService.CalendarCodec
-
- Enclosing class:
- ObjectCodecService
public static class ObjectCodecService.CalendarCodec extends ObjectCodec<Calendar>
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.automation.io.services.codec.ObjectCodec
type
-
-
Constructor Summary
Constructors Constructor Description CalendarCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getType()
Get this codec type.boolean
isBuiltin()
Whether this codec is a builtin codecCalendar
read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session)
When the object codec is called the stream is positioned on the first value.void
register(ObjectCodecService service)
void
write(com.fasterxml.jackson.core.JsonGenerator jg, Calendar value)
-
Methods inherited from class org.nuxeo.ecm.automation.io.services.codec.ObjectCodec
findParametrizedType, getJavaType
-
-
-
-
Constructor Detail
-
CalendarCodec
public CalendarCodec()
-
-
Method Detail
-
getType
public String getType()
Description copied from class:ObjectCodec
Get this codec type. Implementors can override to return a short name. The default name is the object type name.- Overrides:
getType
in classObjectCodec<Calendar>
-
write
public void write(com.fasterxml.jackson.core.JsonGenerator jg, Calendar value) throws IOException
- Overrides:
write
in classObjectCodec<Calendar>
- Throws:
IOException
-
read
public Calendar read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) throws IOException
Description copied from class:ObjectCodec
When the object codec is called the stream is positioned on the first value. For inlined objects this is the first value after the "entity-type" property. For non inlined objects this will be the object itself (i.e. '{' or '[')- Overrides:
read
in classObjectCodec<Calendar>
- Throws:
IOException
-
isBuiltin
public boolean isBuiltin()
Description copied from class:ObjectCodec
Whether this codec is a builtin codec- Overrides:
isBuiltin
in classObjectCodec<Calendar>
-
register
public void register(ObjectCodecService service)
-
-