public abstract class PropertyWriter extends Object
Map
serializers, and invoked
by filtering functionality.Constructor and Description |
---|
PropertyWriter() |
Modifier and Type | Method and Description |
---|---|
abstract void |
depositSchemaProperty(JsonObjectFormatVisitor objectVisitor)
Traversal method used for things like JSON Schema generation, or
POJO introspection.
|
abstract void |
depositSchemaProperty(ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
Since 2.2
|
abstract PropertyName |
getFullName() |
abstract String |
getName() |
abstract void |
serializeAsElement(Object pojo,
JsonGenerator jgen,
SerializerProvider prov)
Serialization method called when output is to be done as an array,
that is, not using property names.
|
abstract void |
serializeAsField(Object pojo,
JsonGenerator jgen,
SerializerProvider prov)
The main serialization method called by filter when property is to be written normally.
|
abstract void |
serializeAsOmittedField(Object pojo,
JsonGenerator jgen,
SerializerProvider prov)
Serialization method that filter needs to call in cases where property is to be
filtered, but the underlying data format requires a placeholder of some kind.
|
abstract void |
serializeAsPlaceholder(Object pojo,
JsonGenerator jgen,
SerializerProvider prov)
Serialization method called when doing tabular (positional) output from databind,
but then value is to be omitted.
|
public abstract String getName()
public abstract PropertyName getFullName()
public abstract void serializeAsField(Object pojo, JsonGenerator jgen, SerializerProvider prov) throws Exception
Exception
public abstract void serializeAsOmittedField(Object pojo, JsonGenerator jgen, SerializerProvider prov) throws Exception
Exception
public abstract void serializeAsElement(Object pojo, JsonGenerator jgen, SerializerProvider prov) throws Exception
Collection
, array) types,
or POJOs using tabular
("as array") output format.
Note that this mode of operation is independent of underlying data format; so it is typically NOT called for fully tabular formats such as CSV, where logical output is still as form of POJOs.
Exception
public abstract void serializeAsPlaceholder(Object pojo, JsonGenerator jgen, SerializerProvider prov) throws Exception
serializeAsOmittedField(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)
.Exception
public abstract void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor) throws JsonMappingException
JsonMappingException
@Deprecated public abstract void depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider) throws JsonMappingException
JsonMappingException
Copyright © 2014 FasterXML. All Rights Reserved.