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

berlin.yuna.survey.config.SurveyDefaults Maven / Gradle / Ivy

Go to download

Survey is a plain java library to provide a base for surveys / questionnaires. It also provides a function to generate diagrams and to measure answer times.

There is a newer version: 0.1.110
Show newest version
package berlin.yuna.survey.config;

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;

public class SurveyDefaults {

    private static final ObjectMapper mapper = init();

    public static ObjectMapper surveyMapper() {
        return mapper;
    }

    private static ObjectMapper init() {
        final ObjectMapper mapper = new ObjectMapper();
        mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
        mapper.configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);
        return mapper;
    }

    private SurveyDefaults() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy