public Recipe( String title, String type, TreeMap<String, String> ingredients, String preparation, String comments, String cookingTime) { this.title = title; this.type = RecipeTypes.valueOf(type); this.preparation = preparation; this.comments = comments; this.cookingTime = cookingTime; this.ingredients = ingredients; }
public String getType() { return type.toString(); }
public void setType(String s) { this.type = RecipeTypes.valueOf(s); }