public class ObjectAppendingMarker extends SingleFieldAppendingMarker
For example, to append a string field, use a String object as the object. To append a numeric field, use a Number object as the object. To append an array field, use an array as the object. To append an object field, use some other Object as the object.
An ObjectMapper is used to convert/write the value, so as long as the ObjectMapper can convert the object, you're good.
| Modifier and Type | Field and Description |
|---|---|
static String |
MARKER_NAME |
MARKER_NAME_PREFIX| Constructor and Description |
|---|
ObjectAppendingMarker(String fieldName,
Object object) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
protected void |
writeFieldValue(com.fasterxml.jackson.core.JsonGenerator generator)
Writes the field value to the generator.
|
getFieldName, writeFieldName, writeToand, withpublic static final String MARKER_NAME
protected void writeFieldValue(com.fasterxml.jackson.core.JsonGenerator generator)
throws IOException
SingleFieldAppendingMarkerwriteFieldValue in class SingleFieldAppendingMarkerIOExceptionpublic boolean equals(Object obj)
equals in interface org.slf4j.Markerequals in class SingleFieldAppendingMarkerpublic int hashCode()
hashCode in interface org.slf4j.MarkerhashCode in class SingleFieldAppendingMarkerCopyright © 2014. All Rights Reserved.