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,Serializable
- Enclosing class:
FilteredBeanPropertyWriter
private static final class FilteredBeanPropertyWriter.MultiView
extends BeanPropertyWriter
implements Serializable
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.BeanProperty
BeanProperty.Bogus, BeanProperty.Std -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BeanPropertyWriterprotected final Class<?>[]private static final longFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate final booleanvoidassignNullSerializer(JsonSerializer<Object> nullSer) Method called to assign null value serializer for propertyvoidMethod called to assign value serializer for propertyvoidTraversal method used for things like JSON Schema generation, or POJO introspection.rename(NameTransformer transformer) voidserializeAsElement(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(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, 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
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
_delegate
-
_views
-
-
Constructor Details
-
MultiView
-
-
Method Details
-
rename
- Overrides:
renamein classBeanPropertyWriter
-
assignSerializer
Description copied from class:BeanPropertyWriterMethod called to assign value serializer for property- Overrides:
assignSerializerin classBeanPropertyWriter
-
assignNullSerializer
Description copied from class:BeanPropertyWriterMethod called to assign null value serializer for property- Overrides:
assignNullSerializerin classBeanPropertyWriter
-
serializeAsField
public void serializeAsField(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, 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
-
serializeAsElement
public void serializeAsElement(Object bean, com.fasterxml.jackson.core.JsonGenerator gen, SerializerProvider prov) throws Exception Description 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:
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
-