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

io.github.wistefan.mapping.GeoQueryDeserializer Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package io.github.wistefan.mapping;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import org.fiware.ngsi.model.GeoQueryVO;

/**
 * Deserializer for GeoQuery
 * This empty deserializer was created just to avoid the IllegalArgumentException on
 * an unused empty field, but needed by an API specification. Should be implemented
 * in the future releases once this type will be used
 */
public class GeoQueryDeserializer extends StdDeserializer {

    public GeoQueryDeserializer() {
        this(null);
    }

    public GeoQueryDeserializer(final Class vc) {
        super(vc);
    }

    @Override
    public GeoQueryVO deserialize(final JsonParser p, final DeserializationContext context) {
        return new GeoQueryVO();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy