/*
 * Copyright (C) 2018 University of Pittsburgh.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301  USA
 */
package edu.pitt.dbmi.data.reader.metadata;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.LinkedList;
import java.util.List;

/**
 * Dec 18, 2018 11:21:23 AM
 *
 * @author Kevin V. Bui (kvb2@pitt.edu)
 */
public class Metadata {

    @JsonProperty("domains")
    private List<ColumnMetadata> domainColumnns = new LinkedList<>();

    @JsonProperty("interventions")
    private List<InterventionalColumn> interventionalColumns = new LinkedList<>();

    public Metadata() {
    }

    public Metadata(List<ColumnMetadata> domainColumnns, List<InterventionalColumn> interventionalColumns) {
        if (domainColumnns != null) {
            this.domainColumnns.addAll(domainColumnns);
        }
        if (interventionalColumns != null) {
            this.interventionalColumns.addAll(interventionalColumns);
        }
    }

    @Override
    public String toString() {
        return "Metadata{" + "domainColumnns=" + this.domainColumnns + ", interventionalColumns=" + this.interventionalColumns + '}';
    }

    public List<ColumnMetadata> getDomainColumnns() {
        return this.domainColumnns;
    }

    public void setDomainColumnns(List<ColumnMetadata> domainColumnns) {
        this.domainColumnns = domainColumnns;
    }

    public List<InterventionalColumn> getInterventionalColumns() {
        return this.interventionalColumns;
    }

    public void setInterventionalColumns(List<InterventionalColumn> interventionalColumns) {
        this.interventionalColumns = interventionalColumns;
    }

}
