/* ===================================================================
 * ImportRecipeCommand.java
 * 
 * Created Feb 15, 2005 6:37:37 PM
 * 
 * Copyright (c) 2005 Matt Magoffin (spamsqr@msqr.us)
 * 
 * This program 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 2 of 
 * the License, or (at your option) any later version.
 * 
 * This program 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 this program; if not, write to the Free Software 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 
 * 02111-1307 USA
 * ===================================================================
 * $Id: ImportRecipeCommand.java 26 2009-05-03 23:35:54Z msqr $
 * ===================================================================
 */

package magoffin.matt.ieat.util;

import magoffin.matt.ieat.domain.Recipe;
import magoffin.matt.util.TemporaryFile;

/**
 * Command object for importing a recipe from a file.
 * 
 * <p>This command object is meant to support importing recipe data
 * from external sources into the application. The <code>ifile</code>
 * field is designed to hold the recipe data to import. The 
 * <code>importRecipe</code> field is designed to hold the imported
 * recipe data, converted as best possible to the native application
 * format. The <code>recipe</code> field is designed to hold a copy
 * of the imported recipe data to make modifications on to correct 
 * any mistakes on the <code>importRecipe</code> object.</p>
 * 
 * @author Matt Magoffin (spamsqr@msqr.us)
 * @version $Revision: 26 $ $Date: 2009-05-04 11:35:54 +1200 (Mon, 04 May 2009) $
 */

public class ImportRecipeCommand {

    /** The recipe file to import. */
    private TemporaryFile tfile = null;
    
    /** The original imported recipe object. */
    private Recipe importRecipe = null;
    
    /** A recipe object to make import corrections on. */
    private Recipe recipe = null;

	/**
	 * @return the tfile
	 */
	public TemporaryFile getTfile() {
		return tfile;
	}

	/**
	 * @param tfile the tfile to set
	 */
	public void setTfile(TemporaryFile tfile) {
		this.tfile = tfile;
	}

	/**
	 * @return the importRecipe
	 */
	public Recipe getImportRecipe() {
		return importRecipe;
	}

	/**
	 * @param importRecipe the importRecipe to set
	 */
	public void setImportRecipe(Recipe importRecipe) {
		this.importRecipe = importRecipe;
	}

	/**
	 * @return the recipe
	 */
	public Recipe getRecipe() {
		return recipe;
	}

	/**
	 * @param recipe the recipe to set
	 */
	public void setRecipe(Recipe recipe) {
		this.recipe = recipe;
	}
    

}
