Class Jdk8OptionalBeanPropertyWriter
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
-
- com.fasterxml.jackson.databind.ser.PropertyWriter
-
- com.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
- com.fasterxml.jackson.datatype.jdk8.Jdk8OptionalBeanPropertyWriter
-
- All Implemented Interfaces:
BeanProperty,Named,Serializable
public class Jdk8OptionalBeanPropertyWriter extends BeanPropertyWriter
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty
BeanProperty.Bogus, BeanProperty.Std
-
-
Field Summary
Fields Modifier and Type Field Description protected Object_empty-
Fields inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_accessorMethod, _cfgSerializationType, _contextAnnotations, _declaredType, _dynamicSerializers, _field, _includeInViews, _internalSettings, _member, _name, _nonTrivialBaseType, _nullSerializer, _serializer, _suppressableValue, _suppressNulls, _typeSerializer, _wrapperName, MARKER_FOR_EMPTY
-
Fields inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
_aliases, _metadata
-
Fields inherited from interface com.fasterxml.jackson.databind.BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJdk8OptionalBeanPropertyWriter(BeanPropertyWriter base, Object empty)protectedJdk8OptionalBeanPropertyWriter(Jdk8OptionalBeanPropertyWriter base, PropertyName newName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BeanPropertyWriter_new(PropertyName newName)Overridable factory method used by sub-classesvoidserializeAsField(Object bean, JsonGenerator g, SerializerProvider prov)Method called to access property that this bean stands for, from within given bean, and to serialize it as a JSON Object field using appropriate serializer.BeanPropertyWriterunwrappingWriter(NameTransformer unwrapper)Method called create an instance that handles details of unwrapping contained value.-
Methods inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, assignNullSerializer, assignSerializer, assignTypeSerializer, depositSchemaProperty, depositSchemaProperty, fixAccess, get, getAnnotation, getContextAnnotation, getFullName, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, rename, serializeAsElement, serializeAsOmittedField, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, willSuppressNulls, wouldConflictWithName
-
Methods inherited from class com.fasterxml.jackson.databind.ser.PropertyWriter
findAnnotation
-
Methods inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
-
-
-
-
Field Detail
-
_empty
protected final Object _empty
- Since:
- 2.9
-
-
Constructor Detail
-
Jdk8OptionalBeanPropertyWriter
protected Jdk8OptionalBeanPropertyWriter(BeanPropertyWriter base, Object empty)
- Since:
- 2.9
-
Jdk8OptionalBeanPropertyWriter
protected Jdk8OptionalBeanPropertyWriter(Jdk8OptionalBeanPropertyWriter base, PropertyName newName)
-
-
Method Detail
-
_new
protected BeanPropertyWriter _new(PropertyName newName)
Description copied from class:BeanPropertyWriterOverridable factory method used by sub-classes- Overrides:
_newin classBeanPropertyWriter
-
unwrappingWriter
public BeanPropertyWriter unwrappingWriter(NameTransformer unwrapper)
Description copied from class:BeanPropertyWriterMethod called create an instance that handles details of unwrapping contained value.- Overrides:
unwrappingWriterin classBeanPropertyWriter
-
serializeAsField
public void serializeAsField(Object bean, JsonGenerator g, SerializerProvider prov) throws Exception
Description copied from class:BeanPropertyWriterMethod called to access property that this bean stands for, from within given bean, and to serialize it as a JSON Object field using appropriate serializer.- Overrides:
serializeAsFieldin classBeanPropertyWriter- Throws:
Exception
-
-