java.util.Map s
are not handled as a collection of properties by Jackson (unlike POJOs),
bit more wrapping is required.
| Modifier and Type | Field and Description |
|---|---|
| protected Object | |
| protected JsonSerializer | |
| protected final BeanProperty | |
| protected final TypeSerializer | |
| protected Object | |
| protected JsonSerializer | |
| private static final BeanProperty | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | depositSchemaProperty(JsonObjectFormatVisitor
Visitor to used as the callback handler objectVisitor, SerializerProvider provider)Implements abstract com. Implements com. |
| public void | depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider)
Implements abstract com.
Deprecated
Legacy method called for JSON Schema generation; should not be called by new code
|
| public <A extends Annotation> A | getAnnotation(Class<A> acls)
Implements abstract com. Implements com. |
| public <A extends Annotation> A | getContextAnnotation(Class<A> acls)
Implements abstract com. Implements com. |
| public PropertyName | getFullName()
Implements abstract com. Implements com. |
| public AnnotatedMember | getMember()
Implements com. |
| public String | getName()
Implements abstract com. Implements com. |
| public JavaType | getType()
Implements com. |
| public Object | |
| public PropertyName | getWrapperName()
Implements com. |
| public void | reset(Object key, Object value, JsonSerializer<Object> keySer, JsonSerializer<Object> valueSer)
Initialization method that needs to be called before passing property to filter. |
| public void | |
| public void | serializeAsElement(Object map, JsonGenerator gen, SerializerProvider provider)
Implements abstract com. |
| public void | serializeAsField(Object map, JsonGenerator gen, SerializerProvider provider)
Implements abstract com. |
| public void | serializeAsOmittedField(Object map, JsonGenerator gen, SerializerProvider provider)
Implements abstract com. |
| public void | serializeAsPlaceholder(Object value, JsonGenerator gen, SerializerProvider provider)
Implements abstract com. |
| public void |
| _key | back to summary |
|---|---|
| protected Object _key | |
| _keySerializer | back to summary |
|---|---|
| protected JsonSerializer<Object> _keySerializer | |
| _property | back to summary |
|---|---|
| protected final BeanProperty _property | |
| _typeSerializer | back to summary |
|---|---|
| protected final TypeSerializer _typeSerializer | |
| _value | back to summary |
|---|---|
| protected Object _value | |
| _valueSerializer | back to summary |
|---|---|
| protected JsonSerializer<Object> _valueSerializer | |
| BOGUS_PROP | back to summary |
|---|---|
| private static final BeanProperty BOGUS_PROP | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| MapProperty | back to summary |
|---|---|
| public MapProperty(TypeSerializer typeSer, BeanProperty prop) | |
| depositSchemaProperty | back to summary |
|---|---|
| public void depositSchemaProperty(JsonObjectFormatVisitor objectVisitor, SerializerProvider provider) throws JsonMappingException Implements abstract com. Implements com. Doc from com. Traversal method used for things like JSON Schema generation, or POJO introspection.
| |
| depositSchemaProperty | back to summary |
|---|---|
| public void depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider) throws JsonMappingException Implements abstract com. Doc from com. Deprecated
Legacy method called for JSON Schema generation; should not be called by new code
| |
| getAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getAnnotation(Class<A> acls) Implements abstract com. Implements com. Doc from com. Method for accessing annotations directly declared for property that this writer is associated with.
| |
| getContextAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getContextAnnotation(Class<A> acls) Implements abstract com. Implements com. Doc from com. Method for accessing annotations declared in context of the property that this writer is associated with; usually this means annotations on enclosing class for property.
| |
| getFullName | back to summary |
|---|---|
| public PropertyName getFullName() Implements abstract com. Implements com. Doc from com. Method for getting full name definition, including possible format-specific additional properties (such as namespace when using XML backend).
| |
| getMember | back to summary |
|---|---|
| public AnnotatedMember getMember() Implements com. Doc from com. Method for accessing primary physical entity that represents the property; annotated field, method or constructor property.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract com. Implements com. Doc from com. Method to get logical name of the property
| |
| getType | back to summary |
|---|---|
| public JavaType getType() Implements com. Doc from com. Method to get declared type of the property.
| |
| getValue | back to summary |
|---|---|
public Object getValue()
| |
| getWrapperName | back to summary |
|---|---|
| public PropertyName getWrapperName() Implements com. Doc from com. If property is indicated to be wrapped, name of wrapper element to use.
| |
| reset | back to summary |
|---|---|
| public void reset(Object key, Object value, JsonSerializer<Object> keySer, JsonSerializer<Object> valueSer) Initialization method that needs to be called before passing property to filter.
| |
| reset | back to summary |
|---|---|
| public void reset(Object key, JsonSerializer<Object> keySer, JsonSerializer<Object> valueSer)
Deprecated
| |
| serializeAsElement | back to summary |
|---|---|
| public void serializeAsElement(Object map, JsonGenerator gen, SerializerProvider provider) throws Exception Implements abstract com. Doc from com. Serialization method called when output is to be done as an array,
that is, not using property names. This is needed when serializing
container ( 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.
| |
| serializeAsField | back to summary |
|---|---|
| public void serializeAsField(Object map, JsonGenerator gen, SerializerProvider provider) throws IOException Implements abstract com. Doc from com. The main serialization method called by filter when property is to be written normally.
| |
| serializeAsOmittedField | back to summary |
|---|---|
| public void serializeAsOmittedField(Object map, JsonGenerator gen, SerializerProvider provider) throws Exception Implements abstract com. Doc from com. 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. This is usually the case for tabular (positional) data formats such as CSV.
| |
| serializeAsPlaceholder | back to summary |
|---|---|
| public void serializeAsPlaceholder(Object value, JsonGenerator gen, SerializerProvider provider) throws Exception Implements abstract com. Doc from com. Serialization method called when doing tabular (positional) output from databind,
but then value is to be omitted. This requires output of a placeholder value
of some sort; often similar to
| |
| setValue | back to summary |
|---|---|
public void setValue(Object v)
| |