View Javadoc
1   /*
2    * Copyright (c) 2002-2017, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  
35  package fr.paris.lutece.plugins.identitystore.modules.cnicertifier.business;
36  
37  import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
38  import com.fasterxml.jackson.annotation.JsonProperty;
39  import java.io.Serializable;
40  
41  /**
42   * MRZData
43   */
44  
45  @JsonIgnoreProperties( ignoreUnknown = true )
46  public class MRZData implements Serializable
47  {
48      // Variables declarations
49      private String _strId;
50      private String _strCountry;
51      private String _strLastName;
52      private String _strAdmCode;
53      private int _nEmitYear;
54      private int _nEmitMonth;
55      private String _strAdmCode2;
56      private int _nEmitCode;
57      private int _nChecksumEmit;
58      private String _strFirstName;
59      private int _nBirthYear;
60      private int _nBirthMonth;
61      private int _nBirthDay;
62      private int _nChecksumBirth;
63      private String _strSex;
64      private int _nChecksum;
65  
66      /**
67       * Returns the Id
68       * 
69       * @return The Id
70       */
71      public String getId( )
72      {
73          return _strId;
74      }
75  
76      /**
77       * Sets the Id
78       * 
79       * @param strId
80       *            The Id
81       */
82      public void setId( String strId )
83      {
84          _strId = strId;
85      }
86  
87      /**
88       * Returns the Country
89       * 
90       * @return The Country
91       */
92      public String getCountry( )
93      {
94          return _strCountry;
95      }
96  
97      /**
98       * Sets the Country
99       * 
100      * @param strCountry
101      *            The Country
102      */
103     public void setCountry( String strCountry )
104     {
105         _strCountry = strCountry;
106     }
107 
108     /**
109      * Returns the LastName
110      * 
111      * @return The LastName
112      */
113     public String getLastName( )
114     {
115         return _strLastName;
116     }
117 
118     /**
119      * Sets the LastName
120      * 
121      * @param strLastName
122      *            The LastName
123      */
124     @JsonProperty( "last_name" )
125     public void setLastName( String strLastName )
126     {
127         _strLastName = strLastName;
128     }
129 
130     /**
131      * Returns the AdmCode
132      * 
133      * @return The AdmCode
134      */
135     public String getAdmCode( )
136     {
137         return _strAdmCode;
138     }
139 
140     /**
141      * Sets the AdmCode
142      * 
143      * @param strAdmCode
144      *            The AdmCode
145      */
146     @JsonProperty( "adm_code" )
147     public void setAdmCode( String strAdmCode )
148     {
149         _strAdmCode = strAdmCode;
150     }
151 
152     /**
153      * Returns the EmitYear
154      * 
155      * @return The EmitYear
156      */
157     public int getEmitYear( )
158     {
159         return _nEmitYear;
160     }
161 
162     /**
163      * Sets the EmitYear
164      * 
165      * @param nEmitYear
166      *            The EmitYear
167      */
168     @JsonProperty( "emission_year" )
169     public void setEmitYear( int nEmitYear )
170     {
171         _nEmitYear = nEmitYear;
172     }
173 
174     /**
175      * Returns the EmitMonth
176      * 
177      * @return The EmitMonth
178      */
179     public int getEmitMonth( )
180     {
181         return _nEmitMonth;
182     }
183 
184     /**
185      * Sets the EmitMonth
186      * 
187      * @param nEmitMonth
188      *            The EmitMonth
189      */
190     @JsonProperty( "emission_month" )
191     public void setEmitMonth( int nEmitMonth )
192     {
193         _nEmitMonth = nEmitMonth;
194     }
195 
196     /**
197      * Returns the AdmCode2
198      * 
199      * @return The AdmCode2
200      */
201     public String getAdmCode2( )
202     {
203         return _strAdmCode2;
204     }
205 
206     /**
207      * Sets the AdmCode2
208      * 
209      * @param strAdmCode2
210      *            The AdmCode2
211      */
212     @JsonProperty( "adm_code2" )
213     public void setAdmCode2( String strAdmCode2 )
214     {
215         _strAdmCode2 = strAdmCode2;
216     }
217 
218     /**
219      * Returns the EmitCode
220      * 
221      * @return The EmitCode
222      */
223     public int getEmitCode( )
224     {
225         return _nEmitCode;
226     }
227 
228     /**
229      * Sets the EmitCode
230      * 
231      * @param nEmitCode
232      *            The EmitCode
233      */
234     @JsonProperty( "emission_code" )
235     public void setEmitCode( int nEmitCode )
236     {
237         _nEmitCode = nEmitCode;
238     }
239 
240     /**
241      * Returns the ChecksumEmit
242      * 
243      * @return The ChecksumEmit
244      */
245     public int getChecksumEmit( )
246     {
247         return _nChecksumEmit;
248     }
249 
250     /**
251      * Sets the ChecksumEmit
252      * 
253      * @param nChecksumEmit
254      *            The ChecksumEmit
255      */
256     @JsonProperty( "checksum_emission" )
257     public void setChecksumEmit( int nChecksumEmit )
258     {
259         _nChecksumEmit = nChecksumEmit;
260     }
261 
262     /**
263      * Returns the FirstName
264      * 
265      * @return The FirstName
266      */
267     public String getFirstName( )
268     {
269         return _strFirstName;
270     }
271 
272     /**
273      * Sets the FirstName
274      * 
275      * @param strFirstName
276      *            The FirstName
277      */
278     @JsonProperty( "first_name" )
279     public void setFirstName( String strFirstName )
280     {
281         _strFirstName = strFirstName;
282     }
283 
284     /**
285      * Returns the BirthYear
286      * 
287      * @return The BirthYear
288      */
289     public int getBirthYear( )
290     {
291         return _nBirthYear;
292     }
293 
294     /**
295      * Sets the BirthYear
296      * 
297      * @param nBirthYear
298      *            The BirthYear
299      */
300     @JsonProperty( "birth_year" )
301     public void setBirthYear( int nBirthYear )
302     {
303         _nBirthYear = nBirthYear;
304     }
305 
306     /**
307      * Returns the BirthMonth
308      * 
309      * @return The BirthMonth
310      */
311     public int getBirthMonth( )
312     {
313         return _nBirthMonth;
314     }
315 
316     /**
317      * Sets the BirthMonth
318      * 
319      * @param nBirthMonth
320      *            The BirthMonth
321      */
322     @JsonProperty( "birth_month" )
323     public void setBirthMonth( int nBirthMonth )
324     {
325         _nBirthMonth = nBirthMonth;
326     }
327 
328     /**
329      * Returns the BirthDay
330      * 
331      * @return The BirthDay
332      */
333     public int getBirthDay( )
334     {
335         return _nBirthDay;
336     }
337 
338     /**
339      * Sets the BirthDay
340      * 
341      * @param nBirthDay
342      *            The BirthDay
343      */
344     @JsonProperty( "birth_day" )
345     public void setBirthDay( int nBirthDay )
346     {
347         _nBirthDay = nBirthDay;
348     }
349 
350     /**
351      * Returns the ChecksumBirth
352      * 
353      * @return The ChecksumBirth
354      */
355     public int getChecksumBirth( )
356     {
357         return _nChecksumBirth;
358     }
359 
360     /**
361      * Sets the ChecksumBirth
362      * 
363      * @param nChecksumBirth
364      *            The ChecksumBirth
365      */
366     @JsonProperty( "checksum_birth" )
367     public void setChecksumBirth( int nChecksumBirth )
368     {
369         _nChecksumBirth = nChecksumBirth;
370     }
371 
372     /**
373      * Returns the Sex
374      * 
375      * @return The Sex
376      */
377     public String getSex( )
378     {
379         return _strSex;
380     }
381 
382     /**
383      * Sets the Sex
384      * 
385      * @param strSex
386      *            The Sex
387      */
388     public void setSex( String strSex )
389     {
390         _strSex = strSex;
391     }
392 
393     /**
394      * Returns the Checksum
395      * 
396      * @return The Checksum
397      */
398     public int getChecksum( )
399     {
400         return _nChecksum;
401     }
402 
403     /**
404      * Sets the Checksum
405      * 
406      * @param nChecksum
407      *            The Checksum
408      */
409     public void setChecksum( int nChecksum )
410     {
411         _nChecksum = nChecksum;
412     }
413 }