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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty
BeanProperty.Bogus, BeanProperty.Std -
Field Summary
FieldsFields 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_EMPTYFields inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
_aliases, _metadataFields inherited from interface com.fasterxml.jackson.databind.BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJdk8OptionalBeanPropertyWriter(BeanPropertyWriter base, Object empty) protected -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.unwrappingWriter(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, wouldConflictWithNameMethods inherited from class com.fasterxml.jackson.databind.ser.PropertyWriter
findAnnotationMethods inherited from class com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getMetadata, isRequired, isVirtual
-
Field Details
-
_empty
- Since:
- 2.9
-
-
Constructor Details
-
Jdk8OptionalBeanPropertyWriter
- Since:
- 2.9
-
Jdk8OptionalBeanPropertyWriter
-
-
Method Details
-
_new
Description copied from class:BeanPropertyWriterOverridable factory method used by sub-classes- Overrides:
_newin classBeanPropertyWriter
-
unwrappingWriter
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
-