01: /**
02: * Copyright (C) 2001-2006 France Telecom R&D
03: */package org.objectweb.speedo.pobjects.multitable;
04:
05: public class Address {
06: String street;
07: String city;
08: String state;
09: String zip;
10: String deliveryInstructions;
11: boolean signatureRequired;
12: byte[] mapJPG;
13:
14: public String getCity() {
15: return city;
16: }
17:
18: public void setCity(String city) {
19: this .city = city;
20: }
21:
22: public String getDeliveryInstructions() {
23: return deliveryInstructions;
24: }
25:
26: public void setDeliveryInstructions(String deliveryInstructions) {
27: this .deliveryInstructions = deliveryInstructions;
28: }
29:
30: public byte[] getMapJPG() {
31: return mapJPG;
32: }
33:
34: public void setMapJPG(byte[] mapJPG) {
35: this .mapJPG = mapJPG;
36: }
37:
38: public boolean isSignatureRequired() {
39: return signatureRequired;
40: }
41:
42: public void setSignatureRequired(boolean signatureRequired) {
43: this .signatureRequired = signatureRequired;
44: }
45:
46: public String getState() {
47: return state;
48: }
49:
50: public void setState(String state) {
51: this .state = state;
52: }
53:
54: public String getStreet() {
55: return street;
56: }
57:
58: public void setStreet(String street) {
59: this .street = street;
60: }
61:
62: public String getZip() {
63: return zip;
64: }
65:
66: public void setZip(String zip) {
67: this .zip = zip;
68: }
69:
70: public boolean equals(Object o) {
71: if (!(o instanceof Address)) {
72: return false;
73: }
74: Address a = (Address) o;
75: return ((street == null && a.street == null) || (street != null && street
76: .equals(a.street)))
77: && ((city == null && a.city == null) || (city != null && city
78: .equals(a.city)))
79: && ((state == null && a.state == null) || (state != null && state
80: .equals(a.state)))
81: && ((zip == null && a.zip == null) || (zip != null && zip
82: .equals(a.zip)))
83: && ((deliveryInstructions == null && a.deliveryInstructions == null) || (deliveryInstructions != null && deliveryInstructions
84: .equals(a.deliveryInstructions)))
85: && ((signatureRequired && a.signatureRequired) || (!signatureRequired && !a.signatureRequired));
86: }
87: }
|