de.ix.jspTutorial.model
Class PersonalPizza
java.lang.Object
|
+--de.ix.jspTutorial.model.Pizza
|
+--de.ix.jspTutorial.model.PersonalPizza
- public class PersonalPizza
- extends Pizza
This class represents a personalized pizza including
the base pizza and some additional ingredients.
- Version:
- $Id:$
- Author:
- Peter Rossbach (pr@webapp.de), Lars Röwekamp ( lars.roewekamp@openKnowledge.de)
Fields inherited from class de.ix.jspTutorial.model.Pizza |
vcid |
Constructor Summary |
PersonalPizza()
Default Constructor |
PersonalPizza(javax.servlet.http.HttpServletRequest aRequest,
java.lang.String pizzaId,
java.lang.String ingredientIds)
Constructor for a real personal pizza |
Method Summary |
double |
calcTotalPrice()
Calc price of current personal pizza. |
java.util.TreeMap |
getIngredients()
Getter method for the attribute ingredients |
Pizza |
getPizza()
Getter method for the attribute pizza |
void |
setIngredients(java.util.TreeMap newIngredients)
Setter method for the attribute ingredients |
void |
setPizza(Pizza newPizza)
Setter method for the attribute pizza |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
PersonalPizza
public PersonalPizza()
- Default Constructor
PersonalPizza
public PersonalPizza(javax.servlet.http.HttpServletRequest aRequest,
java.lang.String pizzaId,
java.lang.String ingredientIds)
- Constructor for a real personal pizza
- Parameters:
aRequest
- current httpRequestpizzaId
- unique id of the requested pizzaingredientIds
- list of unique ids of requested ingredients
getIngredients
public java.util.TreeMap getIngredients()
- Getter method for the attribute
ingredients
- Returns:
- current value of the attribute ingredients
- See Also:
setIngredients(java.util.TreeMap)
setIngredients
public void setIngredients(java.util.TreeMap newIngredients)
- Setter method for the attribute
ingredients
- Parameters:
newIngredients
- new value for the attribute ingredients- See Also:
getIngredients()
getPizza
public Pizza getPizza()
- Getter method for the attribute
pizza
- Returns:
- current value of the attribute pizza
- See Also:
setPizza(Pizza)
setPizza
public void setPizza(Pizza newPizza)
- Setter method for the attribute
pizza
- Parameters:
newPizza
- new value for the attribute pizza- See Also:
getPizza()
calcTotalPrice
public double calcTotalPrice()
- Calc price of current personal pizza.
- Returns:
- the total cost of the pizza
~ Das iX JSP Tutorial II - © 2000 by Peter Roßbach ~