Package gda.exafs.xml
Class XmlSerializationMappers.NestedListSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
- Enclosing class:
XmlSerializationMappers
public static class XmlSerializationMappers.NestedListSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<List<List<Double>>>
JsonSerializer to convert List<List<Double>> to a
'list-of-lists' XML structure.
e.g. Given : (1.0, 2.3, 4.5), (11.0, 23.0, 45.0) , XML produced is :
invalid input: '<'
<list>
<double>1.0</double>
<double>2.3</double>
<double>4.5</double>
</list>
<list>
<double>11.0</double>
<double>23.0</double>
<double>45.0</double>
</list>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Constructor Details
-
NestedListSerializer
public NestedListSerializer()
-
-
Method Details
-
serialize
public void serialize(List<List<Double>> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException - Specified by:
serializein classcom.fasterxml.jackson.databind.JsonSerializer<List<List<Double>>>- Throws:
IOException
-