Top Fields Constructors Methods
com.fasterxml.jackson.jr.ob.comp

public Class CollectionComposer<PARENT extends ComposerBase, C extends Collection<Object>>

extends ComposerBase
Class Inheritance
Imports
java.util.*, com.fasterxml.jackson.core.JsonGenerator

Field Summary

Modifier and TypeField and Description
protected C
protected final PARENT
Inherited from com.fasterxml.jackson.jr.ob.comp.ComposerBase:
_child_open

Constructor Summary

AccessConstructor and Description
public
CollectionComposer(PARENT parent)

public

Method Summary

Modifier and TypeMethod and Description
protected void
protected C
protected CollectionComposer<PARENT, C>
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>
public CollectionComposer<PARENT, C>
add(boolean value)

public CollectionComposer<PARENT, C>
public 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 com.fasterxml.jackson.core.ObjectCodec to use for serializer object.

protected C
public PARENT
end()

public C
public void
flush()

Implements java.io.Flushable.flush.

Flushes this stream by writing any buffered output to the underlying stream.

public static <T extends Collection<Object>> CollectionComposer<?, T>
rootComposer(T coll)

public CollectionComposer<CollectionComposer<PARENT, C>, ?>
public MapComposer<CollectionComposer<PARENT, C>>
Inherited from com.fasterxml.jackson.jr.ob.comp.ComposerBase:
_childClosed_illegalCall_safeFinish_startArray_startCollection_startMap_startObject

Field Detail

_collectionback to summary
protected C _collection
_parentback to summary
protected final PARENT _parent

Constructor Detail

CollectionComposerback to summary
public CollectionComposer(PARENT parent)
CollectionComposerback to summary
public CollectionComposer(C coll)

Method Detail

_closeChildback to summary
protected void _closeChild()
_finishback to summary
protected C _finish()

Implements abstract com.fasterxml.jackson.jr.ob.comp.ComposerBase._finish.

Annotations
@Override
_startback to summary
protected CollectionComposer<PARENT, C> _start()

Implements abstract com.fasterxml.jackson.jr.ob.comp.ComposerBase._start.

Annotations
@Override
addback to summary
public CollectionComposer<PARENT, C> add(int value)
addback to summary
public CollectionComposer<PARENT, C> add(long value)
addback to summary
public CollectionComposer<PARENT, C> add(double value)
addback to summary
public CollectionComposer<PARENT, C> add(String value)
addback to summary
public CollectionComposer<PARENT, C> add(CharSequence value)
addback to summary
public CollectionComposer<PARENT, C> add(boolean value)
addNullback to summary
public CollectionComposer<PARENT, C> addNull()
addObjectback to summary
public 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 com.fasterxml.jackson.core.ObjectCodec to use for serializer object.

constructCollectionback to summary
protected C constructCollection()
Annotations
@SuppressWarnings:unchecked
endback to summary
public PARENT end()
finishback to summary
public C finish()
flushback to summary
public void flush()

Implements java.io.Flushable.flush.

Doc from java.io.Flushable.flush.

Flushes this stream by writing any buffered output to the underlying stream.

Annotations
@Override
rootComposerback to summary
public static <T extends Collection<Object>> CollectionComposer<?, T> rootComposer(T coll)
startArrayback to summary
public CollectionComposer<CollectionComposer<PARENT, C>, ?> startArray()
startObjectback to summary
public MapComposer<CollectionComposer<PARENT, C>> startObject()