org.opentripplanner.api.model.QualifiedModeSetDeserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.api.model;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import org.opentripplanner.api.parameter.QualifiedModeSet;
import java.io.IOException;
/**
* Deserialize qualified mode sets from strings.
*/
public class QualifiedModeSetDeserializer extends JsonDeserializer {
@Override public QualifiedModeSet deserialize(JsonParser jsonParser,
DeserializationContext deserializationContext)
throws IOException, JsonProcessingException {
return new QualifiedModeSet(jsonParser.getValueAsString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy