From e023e674020f1a435f7b8c8b9276704f576ea6e5 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Mon, 29 Mar 2021 14:08:45 +0200 Subject: structure change 1 --- .../barcode/ticket/api/asn/omv2/TravelerType.java | 322 --------------------- 1 file changed, 322 deletions(-) delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TravelerType.java (limited to 'src/org/uic/barcode/ticket/api/asn/omv2/TravelerType.java') diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TravelerType.java b/src/org/uic/barcode/ticket/api/asn/omv2/TravelerType.java deleted file mode 100644 index b0efae0..0000000 --- a/src/org/uic/barcode/ticket/api/asn/omv2/TravelerType.java +++ /dev/null @@ -1,322 +0,0 @@ -/* - * This file was generated by openASN.1 - an open source ASN.1 toolkit for java - * - * openASN.1 is Copyright (C) 2007 Clayton Hoss, Marc Weyland - * - * openASN.1 is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of - * the License, or (at your option) any later version. - * - * openASN.1 is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with openASN.1. If not, see . - * - */ -package org.uic.barcode.ticket.api.asn.omv2; - -import java.util.Calendar; -import java.util.Date; -import java.util.TimeZone; - -import org.uic.barcode.asn1.datatypes.Asn1Optional; -import org.uic.barcode.asn1.datatypes.CharacterRestriction; -import org.uic.barcode.asn1.datatypes.FieldOrder; -import org.uic.barcode.asn1.datatypes.HasExtensionMarker; -import org.uic.barcode.asn1.datatypes.IntRange; -import org.uic.barcode.asn1.datatypes.RestrictedString; -import org.uic.barcode.asn1.datatypes.Sequence; -import org.uic.barcode.asn1.datatypes.SizeRange; - -@Sequence -@HasExtensionMarker -public class TravelerType extends Object { - public TravelerType() { - } - - @FieldOrder(order = 0) - @RestrictedString(CharacterRestriction.UTF8String) - @Asn1Optional public String firstName; - - @FieldOrder(order = 1) - @RestrictedString(CharacterRestriction.UTF8String) - @Asn1Optional public String secondName; - - @FieldOrder(order = 2) - @RestrictedString(CharacterRestriction.UTF8String) - @Asn1Optional public String lastName; - - @FieldOrder(order = 3) - @RestrictedString(CharacterRestriction.IA5String) - @Asn1Optional public String idCard; - - @FieldOrder(order = 4) - @RestrictedString(CharacterRestriction.IA5String) - @Asn1Optional public String passportId; - - @FieldOrder(order = 5) - @SizeRange(minValue = 1, maxValue = 3) - @RestrictedString(CharacterRestriction.IA5String) - @Asn1Optional public String title; - - @FieldOrder(order = 6) - @Asn1Optional public GenderType gender; - - @FieldOrder(order = 7) - @RestrictedString(CharacterRestriction.IA5String) - @Asn1Optional public String customerIdIA5; - - @FieldOrder(order = 8) - @Asn1Optional public Long customerIdNum; - - @FieldOrder(order = 9) - @IntRange(minValue=1901,maxValue=2155) - @Asn1Optional public Long yearOfBirth; - - @FieldOrder(order = 10) - @IntRange(minValue=0,maxValue=366) - @Asn1Optional public Long dayOfBirth; - - @FieldOrder(order = 11) - public Boolean ticketHolder = true; - - @FieldOrder(order = 12) - @Asn1Optional public PassengerType passengerType; - - @FieldOrder(order = 13) - @Asn1Optional public Boolean passengerWithReducedMobility; - - @FieldOrder(order = 14) - @IntRange(minValue=1,maxValue=999) - @Asn1Optional public Long countryOfResidence; - - @FieldOrder(order = 15) - @IntRange(minValue=1,maxValue=999) - @Asn1Optional public Long countryOfPassport; - - @FieldOrder(order = 16) - @IntRange(minValue=1,maxValue=999) - @Asn1Optional public Long countryOfIdCard; - - @FieldOrder(order = 17) - @Asn1Optional public SequenceOfCustomerStatusType status; - - - - public String getFirstName() { - - return this.firstName; - } - - public String getSecondName() { - - return this.secondName; - } - - public String getLastName() { - - return this.lastName; - } - - public String getIdCard() { - - return this.idCard; - } - - public String getPassportId() { - - return this.passportId; - } - - public String getTitle() { - - return this.title; - } - - public GenderType getGender() { - - return this.gender; - } - - public String getCustomerIdIA5() { - - return this.customerIdIA5; - } - - public Long getCustomerIdNum() { - - return this.customerIdNum; - } - - public Long getYearOfBirth() { - - return this.yearOfBirth; - } - - public Long getDayOfBirth() { - - return this.dayOfBirth; - } - - public Boolean getTicketHolder() { - - return this.ticketHolder; - } - - public PassengerType getPassengerType() { - - return this.passengerType; - } - - public Boolean getPassengerWithReducedMobility() { - return this.passengerWithReducedMobility; - } - - public Long getCountryOfResidence() { - - return this.countryOfResidence; - } - - public Long getCountryOfPassport() { - - return this.countryOfPassport; - } - - public Long getCountryOfIdCard() { - - return this.countryOfIdCard; - } - - public SequenceOfCustomerStatusType getStatus() { - - return this.status; - } - - public void setFirstName(String firstName) { - - this.firstName = firstName; - } - - public void setSecondName(String secondName) { - - this.secondName = secondName; - } - - public void setLastName(String lastName) { - - this.lastName = lastName; - } - - public void setIdCard(String idCard) { - - this.idCard = idCard; - } - - public void setPassportId(String passportId) { - - this.passportId = passportId; - } - - public void setTitle(String title) { - - this.title = title; - } - - public void setGender(GenderType gender) { - - this.gender = gender; - } - - public void setCustomerIdIA5(String customerIdIA5) { - - this.customerIdIA5 = customerIdIA5; - } - - public void setCustomerIdNum(Long customerIdNum) { - - this.customerIdNum = customerIdNum; - } - - public void setYearOfBirth(Long yearOfBirth) { - - this.yearOfBirth = yearOfBirth; - } - - public void setDayOfBirth(Long dayOfBirth) { - - this.dayOfBirth = dayOfBirth; - } - - public void setTicketHolder(Boolean ticketHolder) { - - this.ticketHolder = ticketHolder; - } - - public void setPassengerType(PassengerType passengerType) { - - this.passengerType = passengerType; - } - - public void setPassengerWithReducedMobility(Boolean passengerWithReducedMobility) { - - this.passengerWithReducedMobility = passengerWithReducedMobility; - } - - public void setCountryOfResidence(Long countryOfResidence) { - - this.countryOfResidence = countryOfResidence; - } - - public void setCountryOfPassport(Long countryOfPassport) { - - this.countryOfPassport = countryOfPassport; - } - - public void setCountryOfIdCard(Long countryOfIdCard) { - - this.countryOfIdCard = countryOfIdCard; - } - - public void setStatus(SequenceOfCustomerStatusType status) { - - this.status = status; - } - - - - public void setDateOfBirth(Date date){ - - if (date == null) return; - - Calendar cal = Calendar.getInstance(); - cal.setTime(date); - - this.yearOfBirth = new Long( cal.get(Calendar.YEAR)); - this.dayOfBirth = new Long (cal.get(Calendar.DAY_OF_YEAR)); - - - } - - public Date getDateOfBirth() { - - if (this.yearOfBirth == null) return null; - if (this.dayOfBirth == null) return null; - - Calendar cal = Calendar.getInstance(); - cal.clear(); - cal.setTimeZone(TimeZone.getTimeZone("UTC")); - cal.set(Calendar.YEAR, this.yearOfBirth.intValue()); - cal.set(Calendar.DAY_OF_YEAR, this.dayOfBirth.intValue()); - cal.set(Calendar.HOUR_OF_DAY,0); - cal.set(Calendar.MINUTE,0); - - return cal.getTime(); - } - - - -} -- cgit v1.2.3