Class AbstractMarshallingRegistryCodec<EntityType>
java.lang.Object
org.nuxeo.ecm.automation.io.services.codec.ObjectCodec<EntityType>
org.nuxeo.ecm.automation.io.services.codec.AbstractMarshallingRegistryCodec<EntityType>
- Direct Known Subclasses:
 BulkCodec,DocumentModelCodec,NuxeoPrincipalCodec
- Since:
 - 7.3
 
- 
Field Summary
Fields inherited from class org.nuxeo.ecm.automation.io.services.codec.ObjectCodec
type - 
Constructor Summary
ConstructorsConstructorDescriptionAbstractMarshallingRegistryCodec(Class<EntityType> clazz, String entityType, Class<? extends AbstractJsonReader<EntityType>> reader, Class<? extends AbstractJsonWriter<EntityType>> writer)  - 
Method Summary
Modifier and TypeMethodDescriptiongetType()Get this codec type.booleanWhether this codec is a builtin codecread(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) When the object codec is called the stream is positioned on the first value.voidwrite(com.fasterxml.jackson.core.JsonGenerator jg, EntityType value) Methods inherited from class org.nuxeo.ecm.automation.io.services.codec.ObjectCodec
findParametrizedType, getJavaType 
- 
Constructor Details
- 
AbstractMarshallingRegistryCodec
public AbstractMarshallingRegistryCodec(Class<EntityType> clazz, String entityType, Class<? extends AbstractJsonReader<EntityType>> reader, Class<? extends AbstractJsonWriter<EntityType>> writer)  
 - 
 - 
Method Details
- 
getType
Description copied from class:ObjectCodecGet this codec type. Implementors can override to return a short name. The default name is the object type name.- Overrides:
 getTypein classObjectCodec<EntityType>
 - 
isBuiltin
public boolean isBuiltin()Description copied from class:ObjectCodecWhether this codec is a builtin codec- Overrides:
 isBuiltinin classObjectCodec<EntityType>
 - 
write
- Overrides:
 writein classObjectCodec<EntityType>- Throws:
 IOException
 - 
read
public EntityType read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) throws IOException Description copied from class:ObjectCodecWhen 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:
 readin classObjectCodec<EntityType>- Throws:
 IOException
 
 -