org.mzd.shap.analysis.blast.bean.MultiQueryWrapper.java Source code

Java tutorial

Introduction

Here is the source code for org.mzd.shap.analysis.blast.bean.MultiQueryWrapper.java

Source

/**
 *
 * Copyright 2010 Matthew Z DeMaere.
 * 
 * This file is part of SHAP.
 *
 * SHAP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * SHAP 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 General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with SHAP.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
package org.mzd.shap.analysis.blast.bean;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class MultiQueryWrapper {
    private List<BlastOutput> results = new ArrayList<BlastOutput>();

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("results", getResults()).toString();
    }

    public List<BlastOutput> getResults() {
        return results;
    }

    public void setResults(List<BlastOutput> results) {
        this.results = results;
    }

    public void addResult(BlastOutput result) {
        getResults().add(result);
    }

}