Class ChartFunctionSerializer
java.lang.Object
tools.jackson.databind.ValueSerializer<ChartFunction>
com.vaadin.flow.component.charts.model.serializers.ChartFunctionSerializer
- All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
Serializer for
ChartFunction values. A function is not part of the
chart JSON: it is sent to the browser as an argument of its own, together
with the path of the option it belongs to.
When the serialization has a ChartFunctionSerializer.Collector as an attribute, the function
is added to it and a placeholder is written, which
ChartFunctionSerializer.Collector.extract(JsonNode, boolean) removes again. Without a
collector, the option is left out: the function counts as empty, and
ChartSerialization includes
properties of type ChartFunction only when they are not empty.
For internal use only. May be renamed or removed in a future release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCollects the functions of one serialization, and finds where they are in the resulting JSON.Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer
tools.jackson.databind.ValueSerializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic tools.jackson.databind.JacksonModulebooleanisEmpty(tools.jackson.databind.SerializationContext context, ChartFunction value) voidserialize(ChartFunction value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext context) Methods inherited from class tools.jackson.databind.ValueSerializer
acceptJsonFormatVisitor, createContextual, getDelegatee, handledType, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties
-
Constructor Details
-
ChartFunctionSerializer
public ChartFunctionSerializer()
-
-
Method Details
-
getModule
public static tools.jackson.databind.JacksonModule getModule() -
serialize
public void serialize(ChartFunction value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext context) - Specified by:
serializein classtools.jackson.databind.ValueSerializer<ChartFunction>
-
isEmpty
- Overrides:
isEmptyin classtools.jackson.databind.ValueSerializer<ChartFunction>
-