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

io.github.h4j4x.codegen.lib.model.DataInput Maven / Gradle / Ivy

There is a newer version: 0.0.6
Show newest version
package io.github.h4j4x.codegen.lib.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.File;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;

public class DataInput {
    private List templates;
    private Object data;
    private CsvData csvData;

    public List getTemplates() {
        if (templates == null) {
            templates = new LinkedList<>();
        }
        return templates;
    }

    public void setTemplates(List templates) {
        this.templates = templates;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public CsvData getCsvData() {
        return csvData;
    }

    public void setCsvData(CsvData csvData) {
        this.csvData = csvData;
    }

    @JsonIgnore
    public Object getCsvDataObject(File dataFolder) throws IOException {
        if (csvData != null) {
            return csvData.getObject(dataFolder);
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy