public class CollectionComposer<PARENT extends ComposerBase,C extends Collection<Object>> extends ComposerBase
Modifier and Type | Field and Description |
---|---|
protected C |
_collection |
protected PARENT |
_parent |
_child, _open
Constructor and Description |
---|
CollectionComposer(C coll) |
CollectionComposer(PARENT parent) |
Modifier and Type | Method and Description |
---|---|
protected void |
_closeChild() |
protected C |
_finish() |
protected CollectionComposer<PARENT,C> |
_start() |
CollectionComposer<PARENT,C> |
add(boolean value) |
CollectionComposer<PARENT,C> |
add(CharSequence value) |
CollectionComposer<PARENT,C> |
add(double value) |
CollectionComposer<PARENT,C> |
add(int value) |
CollectionComposer<PARENT,C> |
add(long value) |
CollectionComposer<PARENT,C> |
add(String value) |
CollectionComposer<PARENT,C> |
addNull() |
CollectionComposer<PARENT,C> |
addObject(Object pojo)
Method used to add Java Object ("POJO") into sequence being
composed: this requires that the underlying
JsonGenerator
has a properly configured ObjectCodec
to use for serializer object. |
protected C |
constructCollection() |
PARENT |
end() |
C |
finish() |
void |
flush() |
static <T extends Collection<Object>> |
rootComposer(T coll) |
CollectionComposer<CollectionComposer<PARENT,C>,?> |
startArray() |
MapComposer<CollectionComposer<PARENT,C>> |
startObject() |
_childClosed, _illegalCall, _safeFinish, _startArray, _startCollection, _startMap, _startObject
protected final PARENT extends ComposerBase _parent
protected C extends Collection<Object> _collection
public CollectionComposer(PARENT parent)
public CollectionComposer(C coll)
public static <T extends Collection<Object>> CollectionComposer<?,T> rootComposer(T coll)
public void flush()
protected CollectionComposer<PARENT,C> _start()
_start
in class ComposerBase
protected C _finish()
_finish
in class ComposerBase
public CollectionComposer<CollectionComposer<PARENT,C>,?> startArray()
public MapComposer<CollectionComposer<PARENT,C>> startObject()
public C finish()
public CollectionComposer<PARENT,C> add(int value)
public CollectionComposer<PARENT,C> add(long value)
public CollectionComposer<PARENT,C> add(double value)
public CollectionComposer<PARENT,C> add(String value)
public CollectionComposer<PARENT,C> add(CharSequence value)
public CollectionComposer<PARENT,C> addNull()
public CollectionComposer<PARENT,C> add(boolean value)
public CollectionComposer<PARENT,C> addObject(Object pojo)
JsonGenerator
has a properly configured ObjectCodec
to use for serializer object.public PARENT end()
protected C constructCollection()
protected void _closeChild()
Copyright © 2016 FasterXML. All rights reserved.