Class AbstractLayoutJsonWriter<EntityType>
java.lang.Object
org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter<EntityType>
org.nuxeo.ecm.platform.forms.layout.export.AbstractLayoutJsonWriter<EntityType>
- All Implemented Interfaces:
Marshaller<EntityType>
,Writer<EntityType>
- Direct Known Subclasses:
LayoutDefinitionJsonWriter
,WidgetDefinitionJsonWriter
,WidgetTypeConfigurationJsonWriter
- Since:
- 10.1
-
Field Summary
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SortedMap<String,
Map<String, Serializable>> cleanAndSort
(Map<String, Map<String, Serializable>> map) protected void
writeSerializableMapMapField
(String fieldName, Map<String, Map<String, Serializable>> map, com.fasterxml.jackson.core.JsonGenerator jg) Writes a map whose values are a map.Methods inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
accept, getGenerator, write, write, writeEntity, writeEntity, writeEntityField, writeSerializable, writeSerializableField, writeSerializableListField, writeSerializableMapField
-
Constructor Details
-
AbstractLayoutJsonWriter
public AbstractLayoutJsonWriter()
-
-
Method Details
-
cleanAndSort
protected SortedMap<String,Map<String, cleanAndSortSerializable>> (Map<String, Map<String, Serializable>> map) -
writeSerializableMapMapField
protected void writeSerializableMapMapField(String fieldName, Map<String, Map<String, throws IOExceptionSerializable>> map, com.fasterxml.jackson.core.JsonGenerator jg) Writes a map whose values are a map.- Parameters:
fieldName
- The name of the Json field in which the maps will be written.map
- The map to write.jg
- TheJsonGenerator
used to write the given map.- Throws:
IOException
-