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 | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private final boolean | |
| public void | assignNullSerializer(JsonSerializer<Object> nullSer)
Overrides com. |
| public void | assignSerializer(JsonSerializer<Object> ser)
Overrides com. |
| public void | depositSchemaProperty(JsonObjectFormatVisitor
Visitor to used as the callback handler v, SerializerProvider provider)Overrides com. Implements com. |
| public FilteredBeanPropertyWriter. | rename(NameTransformer transformer)
Overrides com. |
| public void | serializeAsElement(Object bean, JsonGenerator gen, SerializerProvider prov)
Overrides com. serializeAsField that is used when a POJO is
serialized as JSON Array; the difference is that no field names are
written.
|
| public void | serializeAsField(Object bean, JsonGenerator gen, SerializerProvider prov)
Overrides com. |
| _delegate | back to summary |
|---|---|
| protected final BeanPropertyWriter _delegate | |
| _views | back to summary |
|---|---|
| protected final Class<?>[] _views | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| 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(JsonSerializer<Object> nullSer) Overrides com. Doc from com. Method called to assign null value serializer for property
| |
| assignSerializer | back to summary |
|---|---|
| public void assignSerializer(JsonSerializer<Object> ser) Overrides com. Doc from com. Method called to assign value serializer for property
| |
| depositSchemaProperty | back to summary |
|---|---|
| public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException Overrides com. Implements com. Doc from com. Traversal method used for things like JSON Schema generation, or POJO introspection.
| |
| rename | back to summary |
|---|---|
| public FilteredBeanPropertyWriter. Overrides com.
| |
| serializeAsElement | back to summary |
|---|---|
| public void serializeAsElement(Object bean, JsonGenerator gen, SerializerProvider prov) throws Exception Overrides com. Doc from com. Alternative to
| |
| serializeAsField | back to summary |
|---|---|
| public void serializeAsField(Object bean, JsonGenerator gen, SerializerProvider prov) throws Exception Overrides com. Doc from com. 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 | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected |
| _delegate | back to summary |
|---|---|
| protected final BeanPropertyWriter _delegate | |
| _view | back to summary |
|---|---|
| protected final Class<?> _view | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| SingleView | back to summary |
|---|---|
| protected SingleView(BeanPropertyWriter delegate, Class<?> view) | |
| assignNullSerializer | back to summary |
|---|---|
| public void assignNullSerializer(JsonSerializer<Object> nullSer) Overrides com. Doc from com. Method called to assign null value serializer for property
| |
| assignSerializer | back to summary |
|---|---|
| public void assignSerializer(JsonSerializer<Object> ser) Overrides com. Doc from com. Method called to assign value serializer for property
| |
| depositSchemaProperty | back to summary |
|---|---|
| public void depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider) throws JsonMappingException Overrides com. Implements com. Doc from com. Traversal method used for things like JSON Schema generation, or POJO introspection.
| |
| rename | back to summary |
|---|---|
| public FilteredBeanPropertyWriter. Overrides com.
| |
| serializeAsElement | back to summary |
|---|---|
| public void serializeAsElement(Object bean, JsonGenerator gen, SerializerProvider prov) throws Exception Overrides com. Doc from com. Alternative to
| |
| serializeAsField | back to summary |
|---|---|
| public void serializeAsField(Object bean, JsonGenerator gen, SerializerProvider prov) throws Exception Overrides com. Doc from com. 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.
| |