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, getJavaType
public AbstractMarshallingRegistryCodec(Class<EntityType> clazz, String entityType, Class<? extends AbstractJsonReader<EntityType>> reader, Class<? extends AbstractJsonWriter<EntityType>> writer)
public String getType()
ObjectCodec
getType
in class ObjectCodec<EntityType>
public boolean isBuiltin()
ObjectCodec
isBuiltin
in class ObjectCodec<EntityType>
public void write(com.fasterxml.jackson.core.JsonGenerator jg, EntityType value) throws IOException
write
in class ObjectCodec<EntityType>
IOException
public EntityType read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) throws IOException
ObjectCodec
read
in class ObjectCodec<EntityType>
IOException
Copyright © 2019 Nuxeo. All rights reserved.