01: /*
02: * Copyright 2007 Dan Shellman
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.iscreen.samples;
17:
18: /**
19: * This class represents the customer making a purchase. It's used as part
20: * of an Order object graph.
21: *
22: * @author Shellman, Dan
23: */
24: public class Customer {
25: private String customerId;
26: private String name;
27: private Address address;
28: private String creditCard;
29:
30: /**
31: * Default constructor.
32: */
33: public Customer(String id) {
34: customerId = id;
35: } //end Customer()
36:
37: public String getCustomerId() {
38: return customerId;
39: } //end getCustomerId()
40:
41: public void setName(String theName) {
42: name = theName;
43: } //end setName()
44:
45: public String getName() {
46: return name;
47: } //end getName()
48:
49: public void setAddress(Address addr) {
50: address = addr;
51: } //end setAddress()
52:
53: public Address getAddress() {
54: return address;
55: } //end getAddress()
56:
57: public void setCreditCard(String cc) {
58: creditCard = cc;
59: } //end setCreditCard()
60:
61: public String getCreditCard() {
62: return creditCard;
63: } //end getCreditCard()
64: } //end Customer
|