Package com.mindee.product.passport
Class PassportV1Document
- java.lang.Object
 - 
- com.mindee.parsing.common.Prediction
 - 
- com.mindee.product.passport.PassportV1Document
 
 
 
- 
public class PassportV1Document extends Prediction
Passport API version 1.1 document data. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected DateFieldbirthDateThe date of birth of the passport holder.protected StringFieldbirthPlaceThe place of birth of the passport holder.protected StringFieldcountryThe country's 3 letter code (ISO 3166-1 alpha-3).protected DateFieldexpiryDateThe expiry date of the passport.protected StringFieldgenderThe gender of the passport holder.protected List<StringField>givenNamesThe given name(s) of the passport holder.protected StringFieldidNumberThe passport's identification number.protected DateFieldissuanceDateThe date the passport was issued.protected StringFieldmrz1Machine Readable Zone, first lineprotected StringFieldmrz2Machine Readable Zone, second lineprotected StringFieldsurnameThe surname of the passport holder. 
- 
Constructor Summary
Constructors Constructor Description PassportV1Document() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)DateFieldgetBirthDate()The date of birth of the passport holder.StringFieldgetBirthPlace()The place of birth of the passport holder.StringFieldgetCountry()The country's 3 letter code (ISO 3166-1 alpha-3).DateFieldgetExpiryDate()The expiry date of the passport.StringFieldgetGender()The gender of the passport holder.List<StringField>getGivenNames()The given name(s) of the passport holder.StringFieldgetIdNumber()The passport's identification number.DateFieldgetIssuanceDate()The date the passport was issued.StringFieldgetMrz1()Machine Readable Zone, first lineStringFieldgetMrz2()Machine Readable Zone, second lineStringFieldgetSurname()The surname of the passport holder.inthashCode()booleanisEmpty()Returnstrueif there are no predictions values.StringtoString() 
 - 
 
- 
- 
Field Detail
- 
birthDate
protected DateField birthDate
The date of birth of the passport holder. 
- 
birthPlace
protected StringField birthPlace
The place of birth of the passport holder. 
- 
country
protected StringField country
The country's 3 letter code (ISO 3166-1 alpha-3). 
- 
expiryDate
protected DateField expiryDate
The expiry date of the passport. 
- 
gender
protected StringField gender
The gender of the passport holder. 
- 
givenNames
protected List<StringField> givenNames
The given name(s) of the passport holder. 
- 
idNumber
protected StringField idNumber
The passport's identification number. 
- 
issuanceDate
protected DateField issuanceDate
The date the passport was issued. 
- 
mrz1
protected StringField mrz1
Machine Readable Zone, first line 
- 
mrz2
protected StringField mrz2
Machine Readable Zone, second line 
- 
surname
protected StringField surname
The surname of the passport holder. 
 - 
 
- 
Method Detail
- 
isEmpty
public boolean isEmpty()
Description copied from class:PredictionReturnstrueif there are no predictions values. Accessing prediction values when this istruemay result in aNullPointerException- Specified by:
 isEmptyin classPrediction
 
- 
getBirthDate
public DateField getBirthDate()
The date of birth of the passport holder. 
- 
getBirthPlace
public StringField getBirthPlace()
The place of birth of the passport holder. 
- 
getCountry
public StringField getCountry()
The country's 3 letter code (ISO 3166-1 alpha-3). 
- 
getExpiryDate
public DateField getExpiryDate()
The expiry date of the passport. 
- 
getGender
public StringField getGender()
The gender of the passport holder. 
- 
getGivenNames
public List<StringField> getGivenNames()
The given name(s) of the passport holder. 
- 
getIdNumber
public StringField getIdNumber()
The passport's identification number. 
- 
getIssuanceDate
public DateField getIssuanceDate()
The date the passport was issued. 
- 
getMrz1
public StringField getMrz1()
Machine Readable Zone, first line 
- 
getMrz2
public StringField getMrz2()
Machine Readable Zone, second line 
- 
getSurname
public StringField getSurname()
The surname of the passport holder. 
- 
canEqual
protected boolean canEqual(Object other)
 
 - 
 
 -