All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lantern.VersionNumberDeserializer Maven / Gradle / Ivy

package org.lantern;

import java.io.IOException;

import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.DeserializationContext;
import org.codehaus.jackson.map.JsonDeserializer;

public class VersionNumberDeserializer extends JsonDeserializer {

    @Override
    public VersionNumber deserialize(JsonParser jp, DeserializationContext ctxt)
            throws IOException, JsonProcessingException {
        return new VersionNumber(jp.readValueAsTree().getTextValue());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy