1 37 38 package com.sun.j2ee.blueprints.catalog; 39 40 import java.io.Serializable ; 41 42 47 public class LineItem implements Serializable { 48 49 private String itemId; 50 private String name; 51 private String description; 52 private double listPrice; 53 private double unitCost; 54 private String attr1; 55 private String attr2; 56 private String attr3; 57 private String attr4; 58 private String attr5; 59 60 public LineItem() { } 61 62 public LineItem(String itemId, 63 String name, 64 String description, 65 double listPrice, 66 double unitCost, 67 String attr1, 68 String attr2, 69 String attr3, 70 String attr4, 71 String attr5) { 72 73 this.itemId = itemId; 74 this.name = name; 75 this.description = description; 76 this.listPrice = listPrice; 77 this.unitCost = unitCost; 78 this.attr1 = attr1; 79 this.attr2 = attr2; 80 this.attr3 = attr3; 81 this.attr4 = attr4; 82 this.attr5 = attr5; 83 } 84 85 public String getItemId() { 86 return itemId; 87 } 88 89 public String getName() { 90 return name; 91 } 92 93 public String getDescription() { 94 return description; 95 } 96 97 public double getUnitCost() { 98 return unitCost; 99 } 100 101 public double getListPrice() { 102 return listPrice; 103 } 104 105 public String getAttr1() { 106 return attr1; 107 } 108 109 public String getAttr2() { 110 return attr2; 111 } 112 113 public String getAttr3() { 114 return attr3; 115 } 116 117 public String getAttr4() { 118 return attr4; 119 } 120 121 public String getAttr5() { 122 return attr5; 123 } 124 125 public String toString() { 126 return "LineItem [id=" + itemId + 127 ", name=" + name + 128 ", listPrice=" + listPrice + 129 ", unitCost=" + unitCost + 130 ", description=" + description + 131 ", attr1=" + attr1 + 132 ", attr2=" + attr2 + 133 ", attr3=" + attr3 + 134 ", attr4=" + attr4 + 135 ", attr5=" + attr5 + 136 "]"; 137 } 138 } 139 | Popular Tags |