Constructing a new instance of Recipe from scratch (a new Recipe XML document)  Creating an XML document from instances of Recipe class

Chapter 2: Understanding the DataBean Framework

Setting the food and quantity of an Ingredient in a Recipe

oRecipe.setIngredientList(0).setIngredient(0).    setFood().setData(“Onions”);

oRecipe.setIngredientList(0).setIngredient(0).    setQuantity().setData(“2”)





Copyright © 2005. Sybase Inc. All rights reserved. Creating an XML document from instances of Recipe class

View this book as PDF