public class ObjectComposer<PARENT extends ComposerBase> extends ComposerBase
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.core.JsonGenerator |
_generator |
protected PARENT |
_parent |
_child, _open
Constructor and Description |
---|
ObjectComposer(PARENT parent,
com.fasterxml.jackson.core.JsonGenerator g) |
Modifier and Type | Method and Description |
---|---|
protected void |
_closeChild() |
protected Object |
_finish() |
protected ObjectComposer<PARENT> |
_start() |
PARENT |
end() |
void |
flush() |
ObjectComposer<PARENT> |
put(String fieldName,
boolean value) |
ObjectComposer<PARENT> |
put(String fieldName,
CharSequence value) |
ObjectComposer<PARENT> |
put(String fieldName,
double value) |
ObjectComposer<PARENT> |
put(String fieldName,
int value) |
ObjectComposer<PARENT> |
put(String fieldName,
long value) |
ObjectComposer<PARENT> |
put(String fieldName,
String value) |
ObjectComposer<PARENT> |
putNull(String fieldName) |
ObjectComposer<PARENT> |
putObject(String fieldName,
Object value)
Method used to put a Java Object ("POJO") value into Object being
composed: this requires that the underlying
JsonGenerator
has a properly configured ObjectCodec
to use for serializer object. |
ArrayComposer<ObjectComposer<PARENT>> |
startArrayField(com.fasterxml.jackson.core.SerializableString fieldName) |
ArrayComposer<ObjectComposer<PARENT>> |
startArrayField(String fieldName) |
ObjectComposer<ObjectComposer<PARENT>> |
startObjectField(com.fasterxml.jackson.core.SerializableString fieldName) |
ObjectComposer<ObjectComposer<PARENT>> |
startObjectField(String fieldName) |
_childClosed, _illegalCall, _safeFinish, _startArray, _startCollection, _startMap, _startObject
protected final PARENT extends ComposerBase _parent
protected final com.fasterxml.jackson.core.JsonGenerator _generator
public ObjectComposer(PARENT parent, com.fasterxml.jackson.core.JsonGenerator g)
public void flush() throws IOException
IOException
protected ObjectComposer<PARENT> _start() throws IOException, com.fasterxml.jackson.core.JsonProcessingException
_start
in class ComposerBase
IOException
com.fasterxml.jackson.core.JsonProcessingException
protected Object _finish() throws IOException, com.fasterxml.jackson.core.JsonProcessingException
_finish
in class ComposerBase
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ArrayComposer<ObjectComposer<PARENT>> startArrayField(String fieldName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ArrayComposer<ObjectComposer<PARENT>> startArrayField(com.fasterxml.jackson.core.SerializableString fieldName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ObjectComposer<ObjectComposer<PARENT>> startObjectField(String fieldName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ObjectComposer<ObjectComposer<PARENT>> startObjectField(com.fasterxml.jackson.core.SerializableString fieldName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public PARENT end() throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, boolean value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ObjectComposer<PARENT> putNull(String fieldName) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ObjectComposer<PARENT> putObject(String fieldName, Object value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
JsonGenerator
has a properly configured ObjectCodec
to use for serializer object.IOException
com.fasterxml.jackson.core.JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, int value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, long value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, double value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, String value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
public ObjectComposer<PARENT> put(String fieldName, CharSequence value) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
protected void _closeChild() throws IOException, com.fasterxml.jackson.core.JsonProcessingException
IOException
com.fasterxml.jackson.core.JsonProcessingException
Copyright © 2021 FasterXML. All rights reserved.