1 16 package org.apache.commons.jelly.core; 17 18 24 public class Order { 25 26 private Product product; 27 private int amount; 28 private double price; 29 30 public Order() { 31 } 32 33 public String toString() { 34 return "Order[amount=" + amount + ";price=" + price + ";product=" + product + "]"; 35 } 36 37 40 public Product createProduct() { 41 return new Product(); 42 } 43 44 48 public int getAmount() { 49 return amount; 50 } 51 52 56 public double getPrice() { 57 return price; 58 } 59 60 64 public void setAmount(int amount) { 65 this.amount = amount; 66 } 67 68 72 public void setPrice(double price) { 73 this.price = price; 74 } 75 76 80 public Product getProduct() { 81 return product; 82 } 83 84 88 public void setProduct(Product product) { 89 this.product = product; 90 } 91 92 } 93 | Popular Tags |