@Setup(mode=SINGLETON, priority=2000) public class DocumentRouteWriter extends ExtensibleEntityJsonWriter<DocumentRoute>
Modifier and Type | Field and Description |
---|---|
static String |
ATTACHED_DOCUMENT_IDS |
static String |
ENTITY_TYPE |
static String |
FETCH_ATTACHED_DOCUMENTS |
static String |
FETCH_INITATIOR |
ctx, registry
Constructor and Description |
---|
DocumentRouteWriter() |
Modifier and Type | Method and Description |
---|---|
protected void |
writeEntityBody(DocumentRoute item,
org.codehaus.jackson.JsonGenerator jg)
Implement this method to write the entity body.
|
static void |
writeVariables(DocumentRoute item,
org.codehaus.jackson.JsonGenerator jg,
MarshallerRegistry registry,
RenderingContext ctx,
SchemaManager schemaManager) |
extend, write
accept, getGenerator, write, writeEntity, writeEntity, writeEntityField
public static final String ATTACHED_DOCUMENT_IDS
public static final String FETCH_ATTACHED_DOCUMENTS
public static final String ENTITY_TYPE
public static final String FETCH_INITATIOR
public DocumentRouteWriter()
protected void writeEntityBody(DocumentRoute item, org.codehaus.jackson.JsonGenerator jg) throws IOException
ExtensibleEntityJsonWriter
writeEntityBody
in class ExtensibleEntityJsonWriter<DocumentRoute>
item
- The Java entity.jg
- A JsonGenerator
ready to write your entity as Json.IOException
public static void writeVariables(DocumentRoute item, org.codehaus.jackson.JsonGenerator jg, MarshallerRegistry registry, RenderingContext ctx, SchemaManager schemaManager) throws IOException, org.codehaus.jackson.JsonGenerationException
IOException
org.codehaus.jackson.JsonGenerationException
Copyright © 2016 Nuxeo SA. All rights reserved.