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_delegateprotected java.lang.Class<?>[]_viewsprivate static longserialVersionUID-
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 protectedMultiView(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)voidassignNullSerializer(JsonSerializer<java.lang.Object> nullSer)Method called to assign null value serializer for propertyvoidassignSerializer(JsonSerializer<java.lang.Object> ser)Method called to assign value serializer for propertyvoiddepositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider)Traversal method used for things like JSON Schema generation, or POJO introspection.FilteredBeanPropertyWriter.MultiViewrename(NameTransformer transformer)voidserializeAsElement(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.voidserializeAsField(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:
renamein classBeanPropertyWriter
-
assignSerializer
public void assignSerializer(JsonSerializer<java.lang.Object> ser)
Description copied from class:BeanPropertyWriterMethod called to assign value serializer for property- Overrides:
assignSerializerin classBeanPropertyWriter
-
assignNullSerializer
public void assignNullSerializer(JsonSerializer<java.lang.Object> nullSer)
Description copied from class:BeanPropertyWriterMethod called to assign null value serializer for property- Overrides:
assignNullSerializerin classBeanPropertyWriter
-
serializeAsField
public void serializeAsField(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider prov) throws java.lang.ExceptionDescription 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:
java.lang.Exception
-
serializeAsElement
public void serializeAsElement(java.lang.Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider prov) throws java.lang.ExceptionDescription copied from class:BeanPropertyWriterAlternative 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:
serializeAsElementin classBeanPropertyWriter- Throws:
java.lang.Exception
-
depositSchemaProperty
public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException
Description copied from class:PropertyWriterTraversal method used for things like JSON Schema generation, or POJO introspection.- Specified by:
depositSchemaPropertyin interfaceBeanProperty- Overrides:
depositSchemaPropertyin classBeanPropertyWriter- Parameters:
v- Visitor to used as the callback handler- Throws:
JsonMappingException
-
_inView
private final boolean _inView(java.lang.Class<?> activeView)
-
-