Class FilteredBeanPropertyWriter.MultiView
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.ConcreteBeanPropertyBase
-
- com.fasterxml.jackson.databind.ser.PropertyWriter
-
- com.fasterxml.jackson.databind.ser.BeanPropertyWriter
-
- com.fasterxml.jackson.databind.ser.impl.FilteredBeanPropertyWriter.MultiView
-
- All Implemented Interfaces:
BeanProperty
,Named
,java.io.Serializable
- Enclosing class:
- FilteredBeanPropertyWriter
private static final class FilteredBeanPropertyWriter.MultiView extends BeanPropertyWriter implements java.io.Serializable
-
-
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 BeanPropertyWriter
_delegate
protected java.lang.Class<?>[]
_views
private static long
serialVersionUID
-
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 protected
MultiView(BeanPropertyWriter delegate, java.lang.Class<?>[] views)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
_inView(java.lang.Class<?> activeView)
void
assignNullSerializer(JsonSerializer<java.lang.Object> nullSer)
Method called to assign null value serializer for propertyvoid
assignSerializer(JsonSerializer<java.lang.Object> ser)
Method called to assign value serializer for propertyvoid
depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider)
Traversal method used for things like JSON Schema generation, or POJO introspection.FilteredBeanPropertyWriter.MultiView
rename(NameTransformer transformer)
void
serializeAsElement(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider prov)
Alternative toBeanPropertyWriter.serializeAsField(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)
that is used when a POJO is serialized as JSON Array; the difference is that no field names are written.void
serializeAsField(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, 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.-
Methods inherited from class com.fasterxml.jackson.databind.ser.BeanPropertyWriter
_depositSchemaProperty, _findAndAddDynamic, _handleSelfReference, _new, assignTypeSerializer, depositSchemaProperty, fixAccess, get, getAnnotation, getContextAnnotation, getFullName, getGenericPropertyType, getInternalSetting, getMember, getName, getPropertyType, getRawSerializationType, getSerializationType, getSerializedName, getSerializer, getType, getTypeSerializer, getViews, getWrapperName, hasNullSerializer, hasSerializer, isUnwrapping, removeInternalSetting, serializeAsOmittedField, serializeAsPlaceholder, setInternalSetting, setNonTrivialBaseType, toString, unwrappingWriter, 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
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
_delegate
protected final BeanPropertyWriter _delegate
-
_views
protected final java.lang.Class<?>[] _views
-
-
Constructor Detail
-
MultiView
protected MultiView(BeanPropertyWriter delegate, java.lang.Class<?>[] views)
-
-
Method Detail
-
rename
public FilteredBeanPropertyWriter.MultiView rename(NameTransformer transformer)
- Overrides:
rename
in classBeanPropertyWriter
-
assignSerializer
public void assignSerializer(JsonSerializer<java.lang.Object> ser)
Description copied from class:BeanPropertyWriter
Method called to assign value serializer for property- Overrides:
assignSerializer
in classBeanPropertyWriter
-
assignNullSerializer
public void assignNullSerializer(JsonSerializer<java.lang.Object> nullSer)
Description copied from class:BeanPropertyWriter
Method called to assign null value serializer for property- Overrides:
assignNullSerializer
in classBeanPropertyWriter
-
serializeAsField
public void serializeAsField(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider prov) throws java.lang.Exception
Description copied from class:BeanPropertyWriter
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.- Overrides:
serializeAsField
in classBeanPropertyWriter
- Throws:
java.lang.Exception
-
serializeAsElement
public void serializeAsElement(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider prov) throws java.lang.Exception
Description copied from class:BeanPropertyWriter
Alternative toBeanPropertyWriter.serializeAsField(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)
that is used when a POJO is serialized as JSON Array; the difference is that no field names are written.- Overrides:
serializeAsElement
in classBeanPropertyWriter
- Throws:
java.lang.Exception
-
depositSchemaProperty
public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException
Description copied from class:PropertyWriter
Traversal method used for things like JSON Schema generation, or POJO introspection.- Specified by:
depositSchemaProperty
in interfaceBeanProperty
- Overrides:
depositSchemaProperty
in classBeanPropertyWriter
- Parameters:
v
- Visitor to used as the callback handler- Throws:
JsonMappingException
-
_inView
private final boolean _inView(java.lang.Class<?> activeView)
-
-