BeanPropertyWriter that will filter out properties
that are not to be included in currently active JsonView.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static BeanPropertyWriter |
| FilteredBeanPropertyWriter | back to summary |
|---|---|
| public FilteredBeanPropertyWriter() | |
| constructViewBased | back to summary |
|---|---|
| public static BeanPropertyWriter constructViewBased(BeanPropertyWriter base, Class<?>[] viewsToIncludeIn) | |
| Modifier and Type | Field and Description |
|---|---|
| protected final BeanPropertyWriter | |
| protected final Class |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private final boolean | |
| public void | assignNullSerializer(ValueSerializer<Object> nullSer)
Overrides tools. Method called to assign null value serializer for property |
| public void | assignSerializer(ValueSerializer<Object> ser)
Overrides tools. Method called to assign value serializer for property |
| public void | depositSchemaProperty(JsonObjectFormatVisitor v, SerializationContext provider)
Overrides tools. Implements tools. Traversal method used for things like JSON Schema generation, or POJO introspection. |
| public FilteredBeanPropertyWriter. | |
| public void | serializeAsElement(Object bean, JsonGenerator gen, SerializationContext prov)
Overrides tools. Alternative to |
| public void | serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov)
Overrides tools. 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. |
| _delegate | back to summary |
|---|---|
| protected final BeanPropertyWriter _delegate | |
| _views | back to summary |
|---|---|
| protected final Class<?>[] _views | |
| MultiView | back to summary |
|---|---|
| protected MultiView(BeanPropertyWriter delegate, Class<?>[] views) | |
| _inView | back to summary |
|---|---|
| private final boolean _inView(Class<?> activeView) | |
| assignNullSerializer | back to summary |
|---|---|
| public void assignNullSerializer(ValueSerializer<Object> nullSer) Overrides tools. Doc from tools. Method called to assign null value serializer for property
| |
| assignSerializer | back to summary |
|---|---|
| public void assignSerializer(ValueSerializer<Object> ser) Overrides tools. Doc from tools. Method called to assign value serializer for property
| |
| depositSchemaProperty | back to summary |
|---|---|
| public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializationContext provider) Overrides tools. Implements tools. Doc from tools. Traversal method used for things like JSON Schema generation, or POJO introspection.
| |
| rename | back to summary |
|---|---|
| public FilteredBeanPropertyWriter. Overrides tools.
| |
| serializeAsElement | back to summary |
|---|---|
| public void serializeAsElement(Object bean, JsonGenerator gen, SerializationContext prov) throws Exception Overrides tools. Doc from tools. Alternative to
| |
| serializeAsProperty | back to summary |
|---|---|
| public void serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov) throws Exception Overrides tools. Doc from tools. 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| protected final BeanPropertyWriter | |
| protected final Class |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | assignNullSerializer(ValueSerializer<Object> nullSer)
Overrides tools. Method called to assign null value serializer for property |
| public void | assignSerializer(ValueSerializer<Object> ser)
Overrides tools. Method called to assign value serializer for property |
| public void | depositSchemaProperty(JsonObjectFormatVisitor v, SerializationContext provider)
Overrides tools. Implements tools. Traversal method used for things like JSON Schema generation, or POJO introspection. |
| public FilteredBeanPropertyWriter. | |
| public void | serializeAsElement(Object bean, JsonGenerator gen, SerializationContext prov)
Overrides tools. Alternative to |
| public void | serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov)
Overrides tools. 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. |
| _delegate | back to summary |
|---|---|
| protected final BeanPropertyWriter _delegate | |
| _view | back to summary |
|---|---|
| protected final Class<?> _view | |
| SingleView | back to summary |
|---|---|
| protected SingleView(BeanPropertyWriter delegate, Class<?> view) | |
| assignNullSerializer | back to summary |
|---|---|
| public void assignNullSerializer(ValueSerializer<Object> nullSer) Overrides tools. Doc from tools. Method called to assign null value serializer for property
| |
| assignSerializer | back to summary |
|---|---|
| public void assignSerializer(ValueSerializer<Object> ser) Overrides tools. Doc from tools. Method called to assign value serializer for property
| |
| depositSchemaProperty | back to summary |
|---|---|
| public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializationContext provider) Overrides tools. Implements tools. Doc from tools. Traversal method used for things like JSON Schema generation, or POJO introspection.
| |
| rename | back to summary |
|---|---|
| public FilteredBeanPropertyWriter. Overrides tools.
| |
| serializeAsElement | back to summary |
|---|---|
| public void serializeAsElement(Object bean, JsonGenerator gen, SerializationContext prov) throws Exception Overrides tools. Doc from tools. Alternative to
| |
| serializeAsProperty | back to summary |
|---|---|
| public void serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov) throws Exception Overrides tools. Doc from tools. 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.
| |