public class Dom4jDocumentJsonSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<org.dom4j.Document>
Document.
The following are the conversion patterns used between XML and JSON:
XML JSON Access
--- ---- ------
| Modifier and Type | Field and Description |
|---|---|
static String[] |
IGNORABLE_ATTRIBUTES |
static String |
ITEM_LIST_ATTRIBUTE_NAME |
static String |
TEXT_JSON_KEY |
| Constructor and Description |
|---|
Dom4jDocumentJsonSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Class<org.dom4j.Document> |
handledType() |
void |
serialize(org.dom4j.Document doc,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
com.fasterxml.jackson.databind.SerializerProvider provider) |
public static final String ITEM_LIST_ATTRIBUTE_NAME
public static final String[] IGNORABLE_ATTRIBUTES
public static final String TEXT_JSON_KEY
public void serialize(org.dom4j.Document doc,
com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
com.fasterxml.jackson.databind.SerializerProvider provider)
throws IOException
serialize in class com.fasterxml.jackson.databind.JsonSerializer<org.dom4j.Document>IOExceptionpublic Class<org.dom4j.Document> handledType()
handledType in class com.fasterxml.jackson.databind.JsonSerializer<org.dom4j.Document>Copyright © 2018 CrafterCMS. All rights reserved.