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
public abstract class AbstractLayoutJsonWriter<EntityType> extends AbstractJsonWriter<EntityType>
- Since:
- 10.1
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter
ctx, registry
-
-
Constructor Summary
Constructors Constructor Description AbstractLayoutJsonWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
cleanAndSort
protected SortedMap<String,Map<String,Serializable>> cleanAndSort(Map<String,Map<String,Serializable>> map)
-
writeSerializableMapMapField
protected void writeSerializableMapMapField(String fieldName, Map<String,Map<String,Serializable>> map, com.fasterxml.jackson.core.JsonGenerator jg) throws IOException
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
-
-