public class ChartJsonSerializationContext
extends java.lang.Object
implements com.google.gson.JsonSerializationContext
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_DATE_FORMAT |
static java.lang.String |
DEFAULT_JS_DATE_FORMAT |
| Constructor and Description |
|---|
ChartJsonSerializationContext(com.google.gson.Gson gson,
ChartModelImpl chartModel,
java.util.function.Function<DataItem,java.lang.String> itemKeyMapper) |
| Modifier and Type | Method and Description |
|---|---|
ChartModelImpl |
getChartModel() |
java.util.function.Function<DataItem,java.lang.String> |
getItemKeyMapper() |
java.util.List<java.lang.String> |
getProperties() |
com.google.gson.JsonElement |
serialize(java.lang.Object src) |
com.google.gson.JsonElement |
serialize(java.lang.Object src,
java.lang.reflect.Type typeOfSrc) |
public static final java.lang.String DEFAULT_JS_DATE_FORMAT
public static final java.lang.String DEFAULT_DATE_FORMAT
public ChartJsonSerializationContext(com.google.gson.Gson gson,
ChartModelImpl chartModel,
java.util.function.Function<DataItem,java.lang.String> itemKeyMapper)
public com.google.gson.JsonElement serialize(java.lang.Object src)
serialize in interface com.google.gson.JsonSerializationContextpublic com.google.gson.JsonElement serialize(java.lang.Object src,
java.lang.reflect.Type typeOfSrc)
serialize in interface com.google.gson.JsonSerializationContextpublic ChartModelImpl getChartModel()
public java.util.function.Function<DataItem,java.lang.String> getItemKeyMapper()
public java.util.List<java.lang.String> getProperties()