Class ObjectCodecService.DocumentAdapterCodec
- java.lang.Object
-
- org.nuxeo.ecm.automation.io.services.codec.ObjectCodec<BusinessAdapter>
-
- org.nuxeo.ecm.automation.io.services.codec.ObjectCodecService.DocumentAdapterCodec
-
- Enclosing class:
- ObjectCodecService
public static class ObjectCodecService.DocumentAdapterCodec extends ObjectCodec<BusinessAdapter>
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentAdapterDescriptor
descriptor
-
Fields inherited from class org.nuxeo.ecm.automation.io.services.codec.ObjectCodec
type
-
-
Constructor Summary
Constructors Constructor Description DocumentAdapterCodec(DocumentAdapterDescriptor descriptor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getType()
Get this codec type.BusinessAdapter
read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session)
When the object codec is called the stream is positioned on the first value.static void
register(ObjectCodecService service, DocumentAdapterService adapterService)
-
Methods inherited from class org.nuxeo.ecm.automation.io.services.codec.ObjectCodec
findParametrizedType, getJavaType, isBuiltin, write
-
-
-
-
Field Detail
-
descriptor
protected final DocumentAdapterDescriptor descriptor
-
-
Constructor Detail
-
DocumentAdapterCodec
public DocumentAdapterCodec(DocumentAdapterDescriptor descriptor)
-
-
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<BusinessAdapter>
-
register
public static void register(ObjectCodecService service, DocumentAdapterService adapterService)
-
read
public BusinessAdapter read(com.fasterxml.jackson.core.JsonParser jp, CoreSession session) throws IOException
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<BusinessAdapter>
- Throws:
IOException
-
-