blob: afc351da047c9ae55d3fd104a65bcde1c6601e70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
|
/*
*
*/
package org.uic.barcode.ticket.api.impl;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import org.uic.barcode.ticket.api.spec.ICustomerStatusDescription;
import org.uic.barcode.ticket.api.spec.IGenderType;
import org.uic.barcode.ticket.api.spec.IPassengerType;
import org.uic.barcode.ticket.api.spec.ITraveler;
/**
* The Class SimpleTraveler.
*/
public class SimpleTraveler implements ITraveler {
/** The first name. */
protected String firstName;
/** The second name. */
protected String secondName;
/** The last name. */
protected String lastName;
/** The id card. */
protected String idCard;
/** The passport id. */
protected String passportId;
/** The title. */
protected String title;
/** The gender. */
protected IGenderType gender;
/** The customer id. */
protected String customerId;
/** The date of birth. */
protected Date dateOfBirth;
/** The ticket holder. */
protected boolean ticketHolder = true;
/** The passenger type. */
protected IPassengerType passengerType;
/** The passenger with reduced mobility. */
protected boolean passengerWithReducedMobility;
/** The country of residence. */
protected int countryOfResidence = 0;
/** The country of passport. */
protected int countryOfPassport = 0;
/** The country of id card. */
protected int countryOfIDCard = 0;
/** The status collection. */
protected Collection<ICustomerStatusDescription> statusCollection = new HashSet<ICustomerStatusDescription>();
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getFirstName()
*/
public String getFirstName() {
return firstName;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setFirstName(java.lang.String)
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getSecondName()
*/
public String getSecondName() {
return secondName;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setSecondName(java.lang.String)
*/
public void setSecondName(String secondName) {
this.secondName = secondName;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getLastName()
*/
public String getLastName() {
return lastName;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setLastName(java.lang.String)
*/
public void setLastName(String lastName) {
this.lastName = lastName;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getIdCard()
*/
public String getIdCard() {
return idCard;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setIdCard(java.lang.String)
*/
public void setIdCard(String idCard) {
this.idCard = idCard;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getPassportId()
*/
public String getPassportId() {
return passportId;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setPassportId(java.lang.String)
*/
public void setPassportId(String passportId) {
this.passportId = passportId;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getTitle()
*/
public String getTitle() {
return title;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setTitle(java.lang.String)
*/
public void setTitle(String title) {
this.title = title;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getGender()
*/
public IGenderType getGender() {
return gender;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setGender(org.uic.ticket.api.asn.om.GenderType)
*/
public void setGender(IGenderType gender) {
this.gender = gender;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getCustomerId()
*/
public String getCustomerId() {
return customerId;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setCustomerId(java.lang.String)
*/
public void setCustomerId(String customerId) {
this.customerId = customerId;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getDateOfBirth()
*/
public Date getDateOfBirth() {
return dateOfBirth;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setDateOfBirth(java.util.Date)
*/
public void setDateOfBirth(Date dateOfBirth) {
this.dateOfBirth = dateOfBirth;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#isTicketHolder()
*/
public boolean isTicketHolder() {
return ticketHolder;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setTicketHolder(boolean)
*/
public void setTicketHolder(boolean ticketHolder) {
this.ticketHolder = ticketHolder;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getPassengerType()
*/
public IPassengerType getPassengerType() {
return passengerType;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setPassengerType(org.uic.ticket.api.asn.om.PassengerType)
*/
public void setPassengerType(IPassengerType passengerType) {
this.passengerType = passengerType;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#isPassengerWithReducedMobility()
*/
public Boolean isPassengerWithReducedMobility() {
return passengerWithReducedMobility;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setPassengerWithReducedMobility(boolean)
*/
public void setPassengerWithReducedMobility(Boolean passengerWithReducedMobility) {
this.passengerWithReducedMobility = passengerWithReducedMobility;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getCountryOfResidence()
*/
public int getCountryOfResidence() {
return countryOfResidence;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#setCountryOfResidence(int)
*/
public void setCountryOfResidence(int countryOfResidence) {
this.countryOfResidence = countryOfResidence;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#getStatusCollection()
*/
public Collection<ICustomerStatusDescription> getStatusCollection() {
return statusCollection;
}
/* (nicht-Javadoc)
* @see org.uic.ticket.api.spec.ITraveler#addStatusDescription(org.uic.ticket.api.spec.ICustomerStatusDescription)
*/
public void addStatusDescription(ICustomerStatusDescription statusDescription) {
this.statusCollection.add(statusDescription);
}
@Override
public int getPassportCountry() {
return countryOfPassport;
}
@Override
public void setPassportCountry(int country) {
this.countryOfPassport = country;
}
@Override
public int getIDCardCountry() {
return countryOfIDCard;
}
@Override
public void setIDCardCountry(int country) {
this.countryOfIDCard = country;
}
}
|