KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > javaee > blueprints > paypal > LineItem


1 /*
2  * LineItem.java
3  *
4  * Created on March 14, 2006, 12:58 PM
5  *
6  * To change this template, choose Tools | Template Manager
7  * and open the template in the editor.
8  */

9
10 package com.sun.javaee.blueprints.paypal;
11
12 import java.math.BigDecimal JavaDoc;
13
14 /**
15  *
16  * @author basler
17  */

18 public class LineItem {
19     
20     private String JavaDoc target="", business="", itemName="", type="Donation";
21     private BigDecimal JavaDoc amount=new BigDecimal JavaDoc(0);
22     private int quantity=1;
23     
24     /** Creates a new instance of LineItem */
25     public LineItem() {
26     }
27     
28     public LineItem(String JavaDoc business, String JavaDoc itemName, int quantity, BigDecimal JavaDoc amount, String JavaDoc type, String JavaDoc target) {
29         this.business=business;
30         this.target=target;
31         this.itemName=itemName;
32         this.type=type;
33         this.amount=amount;
34         this.quantity=quantity;
35     }
36     
37     
38     public void setTarget(String JavaDoc target) {
39         this.target=target;
40     }
41     public String JavaDoc getTarget() {
42         return target;
43     }
44     
45     public void setBusiness(String JavaDoc business) {
46         this.business=business;
47     }
48     public String JavaDoc getBusiness() {
49         return business;
50     }
51
52     public void setItemName(String JavaDoc itemName) {
53         this.itemName=itemName;
54     }
55     public String JavaDoc getItemName() {
56         return itemName;
57     }
58
59     public void setType(String JavaDoc type) {
60         this.type=type;
61     }
62     public String JavaDoc getType() {
63         return type;
64     }
65     
66     public void setAmount(BigDecimal JavaDoc amount) {
67         this.amount=amount;
68     }
69     public BigDecimal JavaDoc getAmount() {
70         return amount;
71     }
72     
73     public void setQuantity(int quantity) {
74         this.quantity=quantity;
75     }
76     public int getQuantity() {
77         return quantity;
78     }
79     
80 }
81
Popular Tags