FileDocCategorySizeDatePackage
FoodRecipe.javaAPI DocExample555Sat Apr 23 22:35:42 BST 2005None

FoodRecipe

public class FoodRecipe extends SimpleElement

Fields Summary
String
name
List
ingredients
Constructors Summary
Methods Summary
public voidaddIngredient(java.lang.String ingredient)

 
		ingredients.add( ingredient ); 
public java.util.ListgetIngredients()

 return ingredients; 
public java.lang.StringgetName()

 return name; 
public voidsetIngredients(java.util.List ingredients)

 
		this.ingredients = ingredients; 
public voidsetName(java.lang.String name)

	       this.name = name ; 
public java.lang.StringtoString()

 return name + ": "+ ingredients.toString();