public static class JsonObjectFormatVisitor.Base extends Object implements JsonObjectFormatVisitor
JsonObjectFormatVisitor.Base
Modifier and Type | Field and Description |
---|---|
protected SerializerProvider |
_provider |
Constructor and Description |
---|
JsonObjectFormatVisitor.Base() |
JsonObjectFormatVisitor.Base(SerializerProvider p) |
Modifier and Type | Method and Description |
---|---|
SerializerProvider |
getProvider() |
void |
optionalProperty(BeanProperty prop) |
void |
optionalProperty(String name,
JsonFormatVisitable handler,
JavaType propertyTypeHint) |
void |
property(BeanProperty prop)
Callback method called when a POJO property is being traversed.
|
void |
property(String name,
JsonFormatVisitable handler,
JavaType propertyTypeHint)
Callback method called when a non-POJO property (typically something
like an Enum entry of
EnumMap type) is being
traversed. |
void |
setProvider(SerializerProvider p) |
protected SerializerProvider _provider
public JsonObjectFormatVisitor.Base()
public JsonObjectFormatVisitor.Base(SerializerProvider p)
public SerializerProvider getProvider()
getProvider
in interface JsonFormatVisitorWithSerializerProvider
public void setProvider(SerializerProvider p)
setProvider
in interface JsonFormatVisitorWithSerializerProvider
public void property(BeanProperty prop) throws JsonMappingException
JsonObjectFormatVisitor
property
in interface JsonObjectFormatVisitor
JsonMappingException
public void property(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) throws JsonMappingException
JsonObjectFormatVisitor
EnumMap
type) is being
traversed. With POJOs, JsonObjectFormatVisitor.property(BeanProperty)
is called instead.property
in interface JsonObjectFormatVisitor
JsonMappingException
public void optionalProperty(BeanProperty prop) throws JsonMappingException
optionalProperty
in interface JsonObjectFormatVisitor
JsonMappingException
public void optionalProperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) throws JsonMappingException
optionalProperty
in interface JsonObjectFormatVisitor
JsonMappingException
Copyright © 2014 FasterXML. All Rights Reserved.