View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    * 
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.apache.jetspeed.demo.customerInfo;
18  
19  import java.io.Serializable;
20  import java.util.Calendar;
21  import java.util.Date;
22  
23  /***
24   * @author <a href="mailto:paulsp@apache.org">Paul Spencer</a>
25   * @version $Id: CustomerInfo.java 516448 2007-03-09 16:25:47Z ate $
26   */
27  public class CustomerInfo 
28      implements
29          Serializable
30  {
31      
32      /*** Holds value of property name. */
33      private String name;
34      
35      /*** Holds value of property billingAddress. */
36      private Address billingAddress;
37      
38      /*** Holds value of property shippingAddress. */
39      private Address shippingAddress;
40      
41      /*** Holds value of property lastOrdered. */
42      private Calendar lastOrdered;
43      
44      /*** Creates a new instance of CustomerInfo */
45      public CustomerInfo()
46      {
47      }
48      
49      /***
50       * Getter for property name.
51       * @return Value of property name.
52       */
53      public String getName()
54      {
55          return this.name;
56      }
57      
58      /***
59       * Setter for property name.
60       * @param name New value of property name.
61       */
62      public void setName(String name)
63      {
64          this.name = name;
65      }
66      
67      /***
68       * Getter for property billingAddress.
69       * @return Value of property billingAddress.
70       */
71      public Address getBillingAddress()
72      {
73          return this.billingAddress;
74      }
75      
76      /***
77       * Setter for property billingAddress.
78       * @param billingAddress New value of property billingAddress.
79       */
80      public void setBillingAddress(Address billingAddress)
81      {
82          this.billingAddress = billingAddress;
83      }
84      
85      /***
86       * Getter for property shippingAddress.
87       * @return Value of property shippingAddress.
88       */
89      public Address getShippingAddress()
90      {
91          return this.shippingAddress;
92      }
93      
94      /***
95       * Setter for property shippingAddress.
96       * @param shippingAddress New value of property shippingAddress.
97       */
98      public void setShippingAddress(Address shippingAddress)
99      {
100         this.shippingAddress = shippingAddress;
101     }
102     
103     /***
104      * Getter for property lastOrdered.
105      * @return Value of property lastOrdered.
106      */
107     public Date getLastOrderedAsDate()
108     {
109         return this.lastOrdered.getTime();
110     }
111 
112     /***
113      * Getter for property lastOrdered.
114      * @return Value of property lastOrdered.
115      */
116     public Calendar getLastOrdered()
117     {
118         return this.lastOrdered;
119     }
120     
121     /***
122      * Setter for property lastOrdered.
123      * @param lastOrdered New value of property lastOrdered.
124      */
125     public void setLastOrdered(Calendar lastOrdered)
126     {
127         this.lastOrdered = lastOrdered;
128     }
129     
130 }