Flushablepublic class MapComposer<PARENT extends ComposerBase> extends ComposerBase
| Modifier and Type | Field | Description |
|---|---|---|
protected String |
_fieldName |
|
protected Map<String,Object> |
_map |
|
protected PARENT |
_parent |
_child, _open| Constructor | Description |
|---|---|
MapComposer(Map<String,Object> map) |
|
MapComposer(PARENT parent) |
_childClosed, _illegalCall, _safeFinish, _startArray, _startCollection, _startMap, _startObjectprotected final PARENT extends ComposerBase _parent
protected String _fieldName
public MapComposer(PARENT parent)
public static MapComposer<?> rootComposer(Map<String,Object> map)
public void flush()
throws IOException
IOExceptionprotected MapComposer<PARENT> _start()
_start in class ComposerBaseprotected Map<String,Object> _finish()
_finish in class ComposerBasepublic CollectionComposer<MapComposer<PARENT>,?> startArrayField(String fieldName)
public CollectionComposer<MapComposer<PARENT>,?> startArrayField(com.fasterxml.jackson.core.SerializableString fieldName)
public MapComposer<MapComposer<PARENT>> startObjectField(String fieldName)
public MapComposer<MapComposer<PARENT>> startObjectField(com.fasterxml.jackson.core.SerializableString fieldName)
public PARENT end()
public MapComposer<PARENT> put(String fieldName, boolean value)
public MapComposer<PARENT> putNull(String fieldName)
public MapComposer<PARENT> put(String fieldName, int value)
public MapComposer<PARENT> put(String fieldName, long value)
public MapComposer<PARENT> put(String fieldName, double value)
public MapComposer<PARENT> put(String fieldName, String value)
public MapComposer<PARENT> put(String fieldName, CharSequence value)
protected void _closeChild()
Copyright © 2018. All rights reserved.