1 4 package xpetstore.domain; 5 6 import java.io.Serializable ; 7 8 9 15 public class Item 16 implements Serializable 17 { 18 20 private String _itemId; 21 private double _listPrice; 22 private double _unitCost; 23 private String _description; 24 private String _imagePath; 25 private Product _product; 26 27 29 35 public String getDescription( ) 36 { 37 return _description; 38 } 39 40 46 public String getImagePath( ) 47 { 48 return _imagePath; 49 } 50 51 58 public String getItemId( ) 59 { 60 return _itemId; 61 } 62 63 68 public double getListPrice( ) 69 { 70 return _listPrice; 71 } 72 73 80 public Product getProduct( ) 81 { 82 return _product; 83 } 84 85 90 public double getUnitCost( ) 91 { 92 return _unitCost; 93 } 94 95 99 public void setDescription( String description ) 100 { 101 _description = description; 102 } 103 104 108 public void setImagePath( String imagePath ) 109 { 110 _imagePath = imagePath; 111 } 112 113 117 public void setItemId( String itemId ) 118 { 119 _itemId = itemId; 120 } 121 122 126 public void setListPrice( double listPrice ) 127 { 128 _listPrice = listPrice; 129 } 130 131 135 public void setProduct( Product product ) 136 { 137 _product = product; 138 } 139 140 144 public void setUnitCost( double unitCost ) 145 { 146 _unitCost = unitCost; 147 } 148 } 149 | Popular Tags |