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

io.quarkus.jackson.runtime.JacksonConfigSupport Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.jackson.runtime;

import java.time.ZoneId;

import com.fasterxml.jackson.annotation.JsonInclude;

public class JacksonConfigSupport {

    private final boolean failOnUnknownProperties;

    private final boolean failOnEmptyBeans;

    private final boolean writeDatesAsTimestamps;

    private final boolean acceptCaseInsensitiveEnums;

    private final ZoneId timeZone;

    private JsonInclude.Include serializationInclusion;

    public JacksonConfigSupport(boolean failOnUnknownProperties, boolean failOnEmptyBeans, boolean writeDatesAsTimestamps,
            boolean acceptCaseInsensitiveEnums, ZoneId timeZone, JsonInclude.Include serializationInclusion) {
        this.failOnUnknownProperties = failOnUnknownProperties;
        this.failOnEmptyBeans = failOnEmptyBeans;
        this.writeDatesAsTimestamps = writeDatesAsTimestamps;
        this.acceptCaseInsensitiveEnums = acceptCaseInsensitiveEnums;
        this.timeZone = timeZone;
        this.serializationInclusion = serializationInclusion;
    }

    public boolean isFailOnUnknownProperties() {
        return failOnUnknownProperties;
    }

    public boolean isFailOnEmptyBeans() {
        return failOnEmptyBeans;
    }

    public boolean isWriteDatesAsTimestamps() {
        return writeDatesAsTimestamps;
    }

    public boolean isAcceptCaseInsensitiveEnums() {
        return acceptCaseInsensitiveEnums;
    }

    public ZoneId getTimeZone() {
        return timeZone;
    }

    public JsonInclude.Include getSerializationInclusion() {
        return serializationInclusion;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy