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

com.mntviews.jreport.JRInput Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package com.mntviews.jreport;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;

@JsonDeserialize(builder = JRInput.Builder.class)
public class JRInput {
    @JsonProperty("source")
    private final JRInputSource jrInputSource;

    public static Builder custom() {
        return new Builder();
    }

    private JRInput(Builder builder) {
        this.jrInputSource = builder.jrInputSource;
    }
    @JsonPOJOBuilder
    public static class Builder {
        private JRInputSource jrInputSource;
        @JsonProperty("source")
        Builder withInputSource(JRInputSource inputSource) {
            this.jrInputSource = inputSource;
            return this;
        }

        public JRInput build() {
            return new JRInput(this);
        }

    }

    public JRInputSource getJrInputSource() {
        return jrInputSource;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy