edu.pitt.dbmi.data.reader.metadata.Metadata Maven / Gradle / Ivy
/*
* 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 ([email protected])
* @version $Id: $Id
*/
public class Metadata {
@JsonProperty("domains")
private List domainColumnns = new LinkedList<>();
@JsonProperty("interventions")
private List interventionalColumns = new LinkedList<>();
/**
* Default constructor.
*/
public Metadata() {
}
/**
* Constructor.
*
* @param domainColumnns The domain columns.
* @param interventionalColumns The interventional columns.
*/
public Metadata(List domainColumnns, List interventionalColumns) {
if (domainColumnns != null) {
this.domainColumnns.addAll(domainColumnns);
}
if (interventionalColumns != null) {
this.interventionalColumns.addAll(interventionalColumns);
}
}
/**
* {@inheritDoc}
*
* Returns a string representation of this object.
*/
@Override
public String toString() {
return "Metadata{" + "domainColumnns=" + this.domainColumnns + ", interventionalColumns=" + this.interventionalColumns + '}';
}
/**
* Returns the domain columns.
*
* @return the domain columns.
*/
public List getDomainColumnns() {
return this.domainColumnns;
}
/**
* Sets the domain columns.
*
* @param domainColumnns the domain columns.
*/
public void setDomainColumnns(List domainColumnns) {
this.domainColumnns = domainColumnns;
}
/**
* Returns the interventional columns.
*
* @return the interventional columns.
*/
public List getInterventionalColumns() {
return this.interventionalColumns;
}
/**
* Sets the interventional columns.
*
* @param interventionalColumns the interventional columns.
*/
public void setInterventionalColumns(List interventionalColumns) {
this.interventionalColumns = interventionalColumns;
}
}