001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.jetspeed.demo.customerInfo;
018:
019: import java.io.Serializable;
020: import java.util.Calendar;
021: import java.util.Date;
022:
023: /**
024: * @author <a href="mailto:paulsp@apache.org">Paul Spencer</a>
025: * @version $Id: CustomerInfo.java 516448 2007-03-09 16:25:47Z ate $
026: */
027: public class CustomerInfo implements Serializable {
028:
029: /** Holds value of property name. */
030: private String name;
031:
032: /** Holds value of property billingAddress. */
033: private Address billingAddress;
034:
035: /** Holds value of property shippingAddress. */
036: private Address shippingAddress;
037:
038: /** Holds value of property lastOrdered. */
039: private Calendar lastOrdered;
040:
041: /** Creates a new instance of CustomerInfo */
042: public CustomerInfo() {
043: }
044:
045: /**
046: * Getter for property name.
047: * @return Value of property name.
048: */
049: public String getName() {
050: return this .name;
051: }
052:
053: /**
054: * Setter for property name.
055: * @param name New value of property name.
056: */
057: public void setName(String name) {
058: this .name = name;
059: }
060:
061: /**
062: * Getter for property billingAddress.
063: * @return Value of property billingAddress.
064: */
065: public Address getBillingAddress() {
066: return this .billingAddress;
067: }
068:
069: /**
070: * Setter for property billingAddress.
071: * @param billingAddress New value of property billingAddress.
072: */
073: public void setBillingAddress(Address billingAddress) {
074: this .billingAddress = billingAddress;
075: }
076:
077: /**
078: * Getter for property shippingAddress.
079: * @return Value of property shippingAddress.
080: */
081: public Address getShippingAddress() {
082: return this .shippingAddress;
083: }
084:
085: /**
086: * Setter for property shippingAddress.
087: * @param shippingAddress New value of property shippingAddress.
088: */
089: public void setShippingAddress(Address shippingAddress) {
090: this .shippingAddress = shippingAddress;
091: }
092:
093: /**
094: * Getter for property lastOrdered.
095: * @return Value of property lastOrdered.
096: */
097: public Date getLastOrderedAsDate() {
098: return this .lastOrdered.getTime();
099: }
100:
101: /**
102: * Getter for property lastOrdered.
103: * @return Value of property lastOrdered.
104: */
105: public Calendar getLastOrdered() {
106: return this .lastOrdered;
107: }
108:
109: /**
110: * Setter for property lastOrdered.
111: * @param lastOrdered New value of property lastOrdered.
112: */
113: public void setLastOrdered(Calendar lastOrdered) {
114: this.lastOrdered = lastOrdered;
115: }
116:
117: }
|