KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > struts > webapp > tiles > invoice > Invoice


1 /*
2  * $Id: Invoice.java 54929 2004-10-16 16:38:42Z germuska $
3  *
4  * Copyright 1999-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.struts.webapp.tiles.invoice;
19
20 import org.apache.struts.action.ActionForm;
21
22 /**
23  * An invoice.
24  */

25 public class Invoice extends ActionForm
26 {
27
28   /**
29    * Shipping address
30    */

31   private Address shippingAddress;
32
33   /**
34    * Bill address
35    */

36   private Address billAddress;
37
38   /**
39    * Invoice total amount
40    */

41   private double amount;
42
43   /**
44    * Customer firstname
45    */

46   private String JavaDoc firstname;
47
48   /**
49    * Customer last name
50    */

51   private String JavaDoc lastname;
52
53   public Invoice()
54     {
55     shippingAddress = new Address();
56     billAddress = new Address();
57     }
58
59   /**
60 * Access method for the shippingAddress property.
61 *
62 * @return the current value of the shippingAddress property
63    */

64   public Address getShippingAddress() {
65     return shippingAddress;}
66
67   /**
68    * @return void
69 * Sets the value of the shippingAddress property.
70 *
71 * @param aShippingAddress the new value of the shippingAddress property
72    */

73   public void setShippingAddress(Address aShippingAddress) {
74     shippingAddress = aShippingAddress;}
75
76   /**
77 * Access method for the billAddress property.
78 *
79 * @return the current value of the billAddress property
80    */

81   public Address getBillAddress() {
82     return billAddress;}
83
84   /**
85    * @return void
86 * Sets the value of the billAddress property.
87 *
88 * @param aBillAddress the new value of the billAddress property
89    */

90   public void setBillAddress(Address aBillAddress) {
91     billAddress = aBillAddress;}
92
93   /**
94 * Access method for the amount property.
95 *
96 * @return the current value of the amount property
97    */

98   public double getAmount() {
99     return amount;}
100
101   /**
102    * @return void
103 * Sets the value of the amount property.
104 *
105 * @param aAmount the new value of the amount property
106    */

107   public void setAmount(double aAmount) {
108     amount = aAmount;}
109
110   /**
111 * Access method for the firstname property.
112 *
113 * @return the current value of the firstname property
114    */

115   public String JavaDoc getFirstname() {
116     return firstname;}
117
118   /**
119    * @return void
120 * Sets the value of the firstname property.
121 *
122 * @param aFirstname the new value of the firstname property
123    */

124   public void setFirstname(String JavaDoc aFirstname) {
125     firstname = aFirstname;}
126
127   /**
128 * Access method for the lastname property.
129 *
130 * @return the current value of the lastname property
131    */

132   public String JavaDoc getLastname() {
133     return lastname;}
134
135   /**
136    * @return void
137 * Sets the value of the lastname property.
138 *
139 * @param aLastname the new value of the lastname property
140    */

141   public void setLastname(String JavaDoc aLastname) {
142     lastname = aLastname;}
143 }
144
Popular Tags