/*
 * Created on 2005-12-19
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package org.huihoo.jfox.soaf.samples.struts.model;

/**
 * @author peter
 * 
 * TODO To change the template for this generated type comment go to Window -
 * Preferences - Java - Code Style - Code Templates
 */
public class Cheese {

	private String name;

	private String country;

	public Cheese() {
		// default constructor used by some frameworks
	}

	public Cheese(String name, String country) {
		this.name = name;
		this.country = country;
		if (name == null) {
			throw new NullPointerException("name");
		}
		if (country == null) {
			throw new NullPointerException("country");
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String toString() {
		return "[Cheese name=" + name + ", country=" + country + "]";
	}

}