public abstract class AbstractMarshallingRegistryCodec<EntityType> extends ObjectCodec<EntityType>
type| Constructor and Description |
|---|
AbstractMarshallingRegistryCodec(Class<EntityType> clazz,
String entityType,
Class<? extends AbstractJsonReader<EntityType>> reader,
Class<? extends AbstractJsonWriter<EntityType>> writer) |
| Modifier and Type | Method and Description |
|---|---|
String |
getType()
Get this codec type.
|
boolean |
isBuiltin()
Whether this codec is a builtin codec
|
EntityType |
read(com.fasterxml.jackson.core.JsonParser jp,
CoreSession session)
When the object codec is called the stream is positioned on the first value.
|
void |
write(com.fasterxml.jackson.core.JsonGenerator jg,
EntityType value) |
findParametrizedType, getJavaTypepublic AbstractMarshallingRegistryCodec(Class<EntityType> clazz, String entityType, Class<? extends AbstractJsonReader<EntityType>> reader, Class<? extends AbstractJsonWriter<EntityType>> writer)
public String getType()
ObjectCodecgetType in class ObjectCodec<EntityType>public boolean isBuiltin()
ObjectCodecisBuiltin in class ObjectCodec<EntityType>public void write(com.fasterxml.jackson.core.JsonGenerator jg, EntityType value) throws IOException
write in class ObjectCodec<EntityType>IOExceptionpublic EntityType read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) throws IOException
ObjectCodecread in class ObjectCodec<EntityType>IOExceptionCopyright © 2019 Nuxeo. All rights reserved.