@Component public class DataSetMarshaller extends Object
| Constructor and Description |
|---|
DataSetMarshaller()
Create marshaller using the default object mapper, which is set up to use YAML format.
|
DataSetMarshaller(com.fasterxml.jackson.databind.ObjectMapper mapper)
Constructor for testing purposes.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) String |
marshal(DataSet dataSet) |
String |
marshal(RoutingProblem routingProblem)
Marshal routing problem to string.
|
(package private) static DataSetLocation |
toDataSet(LocationData locationData) |
(package private) static DataSet |
toDataSet(RoutingProblem routingProblem) |
(package private) static DataSetVehicle |
toDataSet(VehicleData vehicleData) |
(package private) static RoutingProblem |
toDomain(DataSet dataSet) |
(package private) static LocationData |
toDomain(DataSetLocation dataSetLocation) |
(package private) static VehicleData |
toDomain(DataSetVehicle dataSetVehicle) |
RoutingProblem |
unmarshal(Reader reader)
Unmarshal routing problem from a reader.
|
(package private) DataSet |
unmarshalToDataSet(Reader reader) |
DataSetMarshaller()
DataSetMarshaller(com.fasterxml.jackson.databind.ObjectMapper mapper)
mapper - usually a mock object mapperpublic RoutingProblem unmarshal(Reader reader)
reader - a readerpublic String marshal(RoutingProblem routingProblem)
routingProblem - routing problemstatic DataSet toDataSet(RoutingProblem routingProblem)
static DataSetLocation toDataSet(LocationData locationData)
static DataSetVehicle toDataSet(VehicleData vehicleData)
static RoutingProblem toDomain(DataSet dataSet)
static LocationData toDomain(DataSetLocation dataSetLocation)
static VehicleData toDomain(DataSetVehicle dataSetVehicle)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.