1
2
3
4
5
6
7
8
9 package ejava.projects.esales.dto;
10
11 import javax.xml.bind.annotation.XmlAccessType;
12 import javax.xml.bind.annotation.XmlAccessorType;
13 import javax.xml.bind.annotation.XmlAttribute;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlRootElement;
16 import javax.xml.bind.annotation.XmlSchemaType;
17 import javax.xml.bind.annotation.XmlType;
18 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 @XmlAccessorType(XmlAccessType.FIELD)
47 @XmlType(name = "", propOrder = {
48 "name",
49 "addressee",
50 "street",
51 "city",
52 "state",
53 "zip"
54 })
55 @XmlRootElement(name = "address")
56 public class Address
57 extends ReferencedType
58 {
59
60 @XmlElement(required = true)
61 protected String name;
62 @XmlElement(required = true)
63 protected String addressee;
64 @XmlElement(required = true)
65 protected String street;
66 @XmlElement(required = true)
67 protected String city;
68 @XmlElement(required = true)
69 protected String state;
70 @XmlElement(required = true)
71 protected String zip;
72 @XmlAttribute(name = "id")
73 @XmlJavaTypeAdapter(Adapter4 .class)
74 @XmlSchemaType(name = "integer")
75 protected Integer id;
76
77
78
79
80
81 public Address() {
82 super();
83 }
84
85
86
87
88
89 public Address(final String refid, final String name, final String addressee, final String street, final String city, final String state, final String zip, final Integer id) {
90 super(refid);
91 this.name = name;
92 this.addressee = addressee;
93 this.street = street;
94 this.city = city;
95 this.state = state;
96 this.zip = zip;
97 this.id = id;
98 }
99
100
101
102
103
104
105
106
107
108 public String getName() {
109 return name;
110 }
111
112
113
114
115
116
117
118
119
120 public void setName(String value) {
121 this.name = value;
122 }
123
124
125
126
127
128
129
130
131
132 public String getAddressee() {
133 return addressee;
134 }
135
136
137
138
139
140
141
142
143
144 public void setAddressee(String value) {
145 this.addressee = value;
146 }
147
148
149
150
151
152
153
154
155
156 public String getStreet() {
157 return street;
158 }
159
160
161
162
163
164
165
166
167
168 public void setStreet(String value) {
169 this.street = value;
170 }
171
172
173
174
175
176
177
178
179
180 public String getCity() {
181 return city;
182 }
183
184
185
186
187
188
189
190
191
192 public void setCity(String value) {
193 this.city = value;
194 }
195
196
197
198
199
200
201
202
203
204 public String getState() {
205 return state;
206 }
207
208
209
210
211
212
213
214
215
216 public void setState(String value) {
217 this.state = value;
218 }
219
220
221
222
223
224
225
226
227
228 public String getZip() {
229 return zip;
230 }
231
232
233
234
235
236
237
238
239
240 public void setZip(String value) {
241 this.zip = value;
242 }
243
244
245
246
247
248
249
250
251
252 public Integer getId() {
253 return id;
254 }
255
256
257
258
259
260
261
262
263
264 public void setId(Integer value) {
265 this.id = value;
266 }
267
268 }