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
---
src/org/uic/barcode/Decoder.java | 232 --
src/org/uic/barcode/Encoder.java | 258 ---
src/org/uic/barcode/asn1/datatypes/Alphabet.java | 20 -
.../barcode/asn1/datatypes/AlphabetBuilder.java | 32 -
.../barcode/asn1/datatypes/Asn1AnonymousType.java | 15 -
.../uic/barcode/asn1/datatypes/Asn1BigInteger.java | 72 -
.../uic/barcode/asn1/datatypes/Asn1Default.java | 12 -
.../uic/barcode/asn1/datatypes/Asn1Integer.java | 56 -
.../uic/barcode/asn1/datatypes/Asn1Optional.java | 20 -
.../uic/barcode/asn1/datatypes/Asn1SequenceOf.java | 70 -
src/org/uic/barcode/asn1/datatypes/Asn1String.java | 17 -
.../asn1/datatypes/Asn1VarSizeBitstring.java | 58 -
src/org/uic/barcode/asn1/datatypes/Bitstring.java | 16 -
.../asn1/datatypes/CharacterRestriction.java | 13 -
src/org/uic/barcode/asn1/datatypes/Choice.java | 12 -
.../barcode/asn1/datatypes/DefaultAlphabet.java | 8 -
src/org/uic/barcode/asn1/datatypes/FieldOrder.java | 13 -
src/org/uic/barcode/asn1/datatypes/FixedSize.java | 12 -
.../barcode/asn1/datatypes/HasExtensionMarker.java | 12 -
.../uic/barcode/asn1/datatypes/IntMinValue.java | 13 -
src/org/uic/barcode/asn1/datatypes/IntRange.java | 14 -
.../uic/barcode/asn1/datatypes/IsExtension.java | 12 -
.../uic/barcode/asn1/datatypes/NoAsn1Field.java | 10 -
src/org/uic/barcode/asn1/datatypes/Optional.java | 96 -
.../barcode/asn1/datatypes/RestrictedString.java | 13 -
src/org/uic/barcode/asn1/datatypes/Sequence.java | 9 -
src/org/uic/barcode/asn1/datatypes/SizeRange.java | 14 -
.../uic/barcode/asn1/datatypes/package-info.java | 7 -
.../barcode/asn1/datatypesimpl/OctetString.java | 46 -
.../barcode/asn1/datatypesimpl/SequenceOfLong.java | 27 -
.../asn1/datatypesimpl/SequenceOfStringIA5.java | 13 -
.../asn1/datatypesimpl/SequenceOfStringUTF8.java | 13 -
.../datatypesimpl/SequenceOfUnrestrictedLong.java | 30 -
.../uic/barcode/asn1/test/TestSequenceOfLong.java | 24 -
.../barcode/asn1/test/UperEncodeBooleanTest.java | 82 -
.../asn1/test/UperEncodeChoiceExtensionTest.java | 92 -
.../barcode/asn1/test/UperEncodeChoiceTest.java | 74 -
.../asn1/test/UperEncodeEnumExtensionTest.java | 146 --
.../uic/barcode/asn1/test/UperEncodeEnumTest.java | 126 --
.../test/UperEncodeExtensionFieldOrderTest.java | 100 -
.../asn1/test/UperEncodeFieldOrderTest.java | 66 -
.../test/UperEncodeIntegerConstrainedTest.java | 71 -
.../asn1/test/UperEncodeIntegerExtensionTest.java | 89 -
.../asn1/test/UperEncodeIntegerSmallTest.java | 130 --
.../barcode/asn1/test/UperEncodeIntegerTest.java | 64 -
.../asn1/test/UperEncodeObjectIdentifierTest.java | 76 -
.../asn1/test/UperEncodeOctetStringTest.java | 80 -
.../UperEncodeOptionalSequenceExtensionTest.java | 118 -
.../asn1/test/UperEncodeRestrictedIntegerTest.java | 62 -
.../asn1/test/UperEncodeSequenceExtensionTest.java | 93 -
.../asn1/test/UperEncodeSequenceOfIntegerTest.java | 72 -
.../UperEncodeSequenceOfRestrictedIntegerTest.java | 77 -
.../test/UperEncodeSequenceOfStringListTest.java | 78 -
.../asn1/test/UperEncodeSequenceOfStringTest.java | 76 -
.../test/UperEncodeSequenceOfUtf8StringTest.java | 96 -
.../asn1/test/UperEncodeStringDefaultTest.java | 76 -
.../asn1/test/UperEncodeStringLengthTest.java | 151 --
.../barcode/asn1/test/UperEncodeStringTest.java | 110 -
src/org/uic/barcode/asn1/uper/AnnotationStore.java | 31 -
.../barcode/asn1/uper/Asn1EncodingException.java | 18 -
src/org/uic/barcode/asn1/uper/BigIntCoder.java | 97 -
src/org/uic/barcode/asn1/uper/BitBuffer.java | 32 -
src/org/uic/barcode/asn1/uper/BitStringCoder.java | 165 --
src/org/uic/barcode/asn1/uper/BooleanCoder.java | 35 -
src/org/uic/barcode/asn1/uper/ByteBitBuffer.java | 271 ---
src/org/uic/barcode/asn1/uper/ByteCoder.java | 34 -
src/org/uic/barcode/asn1/uper/ChoiceCoder.java | 161 --
src/org/uic/barcode/asn1/uper/Decoder.java | 10 -
src/org/uic/barcode/asn1/uper/Document2.txt | 34 -
src/org/uic/barcode/asn1/uper/Encoder.java | 8 -
src/org/uic/barcode/asn1/uper/EnumCoder.java | 156 --
src/org/uic/barcode/asn1/uper/IntCoder.java | 267 ---
.../barcode/asn1/uper/ObjectIdentifierCoder.java | 175 --
src/org/uic/barcode/asn1/uper/SeqOfCoder.java | 156 --
src/org/uic/barcode/asn1/uper/SeqOfFixedSize.java | 18 -
src/org/uic/barcode/asn1/uper/SequenceCoder.java | 269 ---
.../uic/barcode/asn1/uper/SimpleTypeResolver.java | 515 -----
src/org/uic/barcode/asn1/uper/StringCoder.java | 341 ---
src/org/uic/barcode/asn1/uper/UperEncoder.java | 720 ------
src/org/uic/barcode/dynamicFrame/Constants.java | 38 -
src/org/uic/barcode/dynamicFrame/DataType.java | 95 -
src/org/uic/barcode/dynamicFrame/DynamicFrame.java | 266 ---
.../uic/barcode/dynamicFrame/Level1DataType.java | 226 --
.../uic/barcode/dynamicFrame/Level2DataType.java | 100 -
.../barcode/dynamicFrame/SequenceOfDataType.java | 25 -
src/org/uic/barcode/dynamicFrame/headerSpec.asn | 119 -
src/org/uic/barcode/dynamicFrame/package.html | 9 -
src/org/uic/barcode/logger/Logger.java | 24 -
src/org/uic/barcode/logger/LoggerFactory.java | 9 -
src/org/uic/barcode/package.html | 21 -
src/org/uic/barcode/staticFrame/DataRecord.java | 199 --
.../uic/barcode/staticFrame/GENERICDataRecord.java | 62 -
src/org/uic/barcode/staticFrame/StaticFrame.java | 764 -------
.../uic/barcode/staticFrame/UFLEXDataRecord.java | 90 -
.../uic/barcode/staticFrame/UHEADDataRecord.java | 269 ---
.../uic/barcode/staticFrame/UTLAYDataRecord.java | 272 ---
src/org/uic/barcode/staticFrame/package.html | 21 -
.../ticketLayoutBarcode/FormatType.java | 34 -
.../ticketLayoutBarcode/LayoutElement.java | 50 -
.../ticketLayoutBarcode/TicketLayout.java | 61 -
.../test/DynamicFrameDoubleSignatureTest.java | 212 --
.../uic/barcode/test/DynamicFrameLOwLevelTest.java | 115 -
.../uic/barcode/test/DynamicFrameSimpleTest.java | 171 --
src/org/uic/barcode/test/SignatureSplitTest.java | 76 -
.../uic/barcode/test/StaticFrameBarcodeTest.java | 193 --
.../barcode/test/StaticFrameBarcodeTestFCB2.java | 193 --
src/org/uic/barcode/test/TicketLayoutTest.java | 72 -
.../barcode/test/utils/Level2TestDataFactory.java | 19 -
.../test/utils/SimpleDynamicFrameTestBarcode.java | 80 -
.../barcode/test/utils/SimpleTestTicketLayout.java | 48 -
.../barcode/test/utils/SimpleUICTestTicket.java | 254 ---
src/org/uic/barcode/test/utils/TestUtils.java | 38 -
.../barcode/ticket/EncodingFormatException.java | 26 -
src/org/uic/barcode/ticket/UicRailTicketCoder.java | 163 --
.../barcode/ticket/UnsuportedFeatureException.java | 30 -
.../ticket/api/asn/omv1/BerthDetailData.java | 78 -
.../barcode/ticket/api/asn/omv1/BerthTypeType.java | 41 -
.../api/asn/omv1/CarCarriageReservationData.java | 735 -------
.../ticket/api/asn/omv1/CardReferenceType.java | 183 --
.../barcode/ticket/api/asn/omv1/CodeTableType.java | 40 -
.../api/asn/omv1/CompartmentDetailsType.java | 136 --
.../ticket/api/asn/omv1/CompartmentGenderType.java | 42 -
.../api/asn/omv1/CompartmentPositionType.java | 38 -
.../ticket/api/asn/omv1/ConfirmationTypeType.java | 42 -
.../barcode/ticket/api/asn/omv1/ControlData.java | 200 --
.../ticket/api/asn/omv1/CountermarkData.java | 574 -----
.../ticket/api/asn/omv1/CustomerCardData.java | 296 ---
.../ticket/api/asn/omv1/CustomerStatusType.java | 93 -
.../ticket/api/asn/omv1/DelayConfirmation.java | 339 ---
.../ticket/api/asn/omv1/DeltaCoordinates.java | 58 -
.../barcode/ticket/api/asn/omv1/DocumentData.java | 57 -
.../barcode/ticket/api/asn/omv1/ExtensionData.java | 59 -
.../barcode/ticket/api/asn/omv1/FIPTicketData.java | 347 ---
.../barcode/ticket/api/asn/omv1/GenderType.java | 42 -
.../api/asn/omv1/GeoCoordinateSystemType.java | 38 -
.../ticket/api/asn/omv1/GeoCoordinateType.java | 144 --
.../barcode/ticket/api/asn/omv1/GeoUnitType.java | 40 -
.../api/asn/omv1/HemisphereLatitudeType.java | 37 -
.../api/asn/omv1/HemisphereLongitudeType.java | 36 -
.../api/asn/omv1/IncludedOpenTicketType.java | 425 ----
.../barcode/ticket/api/asn/omv1/IssuingData.java | 361 ---
.../uic/barcode/ticket/api/asn/omv1/LineType.java | 185 --
.../uic/barcode/ticket/api/asn/omv1/LinkMode.java | 39 -
.../ticket/api/asn/omv1/LoadingDeckType.java | 38 -
.../api/asn/omv1/LuggageRestrictionType.java | 88 -
.../ticket/api/asn/omv1/OpenTicketData.java | 695 ------
.../ticket/api/asn/omv1/ParkingGroundData.java | 364 ---
.../uic/barcode/ticket/api/asn/omv1/PassData.java | 1005 ---------
.../barcode/ticket/api/asn/omv1/PassengerType.java | 46 -
.../barcode/ticket/api/asn/omv1/PlacesType.java | 131 --
.../barcode/ticket/api/asn/omv1/PolygoneType.java | 58 -
.../barcode/ticket/api/asn/omv1/PriceTypeType.java | 39 -
.../ticket/api/asn/omv1/RegionalValidityType.java | 100 -
.../ticket/api/asn/omv1/RegisteredLuggageType.java | 80 -
.../ticket/api/asn/omv1/ReservationData.java | 711 ------
.../api/asn/omv1/ReturnRouteDescriptionType.java | 150 --
.../barcode/ticket/api/asn/omv1/RoofRackType.java | 46 -
.../ticket/api/asn/omv1/RouteSectionType.java | 136 --
.../api/asn/omv1/SequenceOfActivatedDays.java | 26 -
.../api/asn/omv1/SequenceOfBerthDetailData.java | 10 -
.../api/asn/omv1/SequenceOfCardReferenceType.java | 10 -
.../ticket/api/asn/omv1/SequenceOfCarrierIA5.java | 13 -
.../ticket/api/asn/omv1/SequenceOfCarrierNum.java | 28 -
.../ticket/api/asn/omv1/SequenceOfCountries.java | 27 -
.../api/asn/omv1/SequenceOfCustomerStatusType.java | 11 -
.../api/asn/omv1/SequenceOfDeltaCoordinates.java | 10 -
.../api/asn/omv1/SequenceOfDocumentData.java | 10 -
.../api/asn/omv1/SequenceOfExtensionData.java | 10 -
.../asn/omv1/SequenceOfIncludedOpenTicketType.java | 10 -
.../ticket/api/asn/omv1/SequenceOfPlaceNum.java | 28 -
.../asn/omv1/SequenceOfRegionalValidityType.java | 10 -
.../asn/omv1/SequenceOfRegisteredLuggageType.java | 10 -
.../api/asn/omv1/SequenceOfServiceBrands.java | 26 -
.../ticket/api/asn/omv1/SequenceOfTariffType.java | 10 -
.../api/asn/omv1/SequenceOfTicketLinkType.java | 10 -
.../ticket/api/asn/omv1/SequenceOfTravelerId.java | 26 -
.../api/asn/omv1/SequenceOfTravelerType.java | 10 -
.../ticket/api/asn/omv1/SequenceOfVatDetail.java | 10 -
.../api/asn/omv1/SequenceOfViaStationType.java | 10 -
.../ticket/api/asn/omv1/SeriesDetailType.java | 75 -
.../barcode/ticket/api/asn/omv1/ServiceType.java | 38 -
.../ticket/api/asn/omv1/StationPassageData.java | 387 ----
.../barcode/ticket/api/asn/omv1/TariffType.java | 207 --
.../ticket/api/asn/omv1/TicketDetailData.java | 190 --
.../ticket/api/asn/omv1/TicketLinkType.java | 156 --
.../barcode/ticket/api/asn/omv1/TicketType.java | 41 -
.../barcode/ticket/api/asn/omv1/TimeRangeType.java | 59 -
.../uic/barcode/ticket/api/asn/omv1/TokenType.java | 92 -
.../barcode/ticket/api/asn/omv1/TrainLinkType.java | 185 --
.../ticket/api/asn/omv1/TravelClassType.java | 45 -
.../barcode/ticket/api/asn/omv1/TravelerData.java | 83 -
.../barcode/ticket/api/asn/omv1/TravelerType.java | 322 ---
.../ticket/api/asn/omv1/UicRailTicketData.java | 115 -
.../api/asn/omv1/ValidityPeriodDetailType.java | 73 -
.../ticket/api/asn/omv1/ValidityPeriodType.java | 165 --
.../barcode/ticket/api/asn/omv1/VatDetailType.java | 87 -
.../ticket/api/asn/omv1/ViaStationType.java | 181 --
.../barcode/ticket/api/asn/omv1/VoucherData.java | 316 ---
.../uic/barcode/ticket/api/asn/omv1/ZoneType.java | 182 --
.../omv1/uicBarcodeV1finalDelayConfirmation1.3.asn | 2047 -----------------
.../ticket/api/asn/omv2/BerthDetailData.java | 79 -
.../barcode/ticket/api/asn/omv2/BerthTypeType.java | 41 -
.../api/asn/omv2/CarCarriageReservationData.java | 734 -------
.../ticket/api/asn/omv2/CardReferenceType.java | 182 --
.../barcode/ticket/api/asn/omv2/CodeTableType.java | 40 -
.../api/asn/omv2/CompartmentDetailsType.java | 136 --
.../ticket/api/asn/omv2/CompartmentGenderType.java | 42 -
.../api/asn/omv2/CompartmentPositionType.java | 38 -
.../ticket/api/asn/omv2/ConfirmationTypeType.java | 42 -
.../barcode/ticket/api/asn/omv2/ControlData.java | 200 --
.../ticket/api/asn/omv2/CountermarkData.java | 578 -----
.../ticket/api/asn/omv2/CustomerCardData.java | 298 ---
.../ticket/api/asn/omv2/CustomerStatusType.java | 93 -
.../ticket/api/asn/omv2/DelayConfirmation.java | 339 ---
.../ticket/api/asn/omv2/DeltaCoordinates.java | 58 -
.../barcode/ticket/api/asn/omv2/DocumentData.java | 61 -
.../barcode/ticket/api/asn/omv2/ExtensionData.java | 64 -
.../barcode/ticket/api/asn/omv2/FIPTicketData.java | 338 ---
.../barcode/ticket/api/asn/omv2/GenderType.java | 42 -
.../api/asn/omv2/GeoCoordinateSystemType.java | 38 -
.../ticket/api/asn/omv2/GeoCoordinateType.java | 144 --
.../barcode/ticket/api/asn/omv2/GeoUnitType.java | 40 -
.../api/asn/omv2/HemisphereLatitudeType.java | 37 -
.../api/asn/omv2/HemisphereLongitudeType.java | 36 -
.../api/asn/omv2/IncludedOpenTicketType.java | 449 ----
.../barcode/ticket/api/asn/omv2/IssuingData.java | 360 ---
.../uic/barcode/ticket/api/asn/omv2/LineType.java | 185 --
.../uic/barcode/ticket/api/asn/omv2/LinkMode.java | 39 -
.../ticket/api/asn/omv2/LoadingDeckType.java | 38 -
.../api/asn/omv2/LuggageRestrictionType.java | 88 -
.../ticket/api/asn/omv2/OpenTicketData.java | 678 ------
.../ticket/api/asn/omv2/ParkingGroundData.java | 364 ---
.../uic/barcode/ticket/api/asn/omv2/PassData.java | 594 -----
.../barcode/ticket/api/asn/omv2/PassengerType.java | 46 -
.../barcode/ticket/api/asn/omv2/PlacesType.java | 131 --
.../barcode/ticket/api/asn/omv2/PolygoneType.java | 58 -
.../barcode/ticket/api/asn/omv2/PriceTypeType.java | 39 -
.../ticket/api/asn/omv2/RegionalValidityType.java | 100 -
.../ticket/api/asn/omv2/RegisteredLuggageType.java | 80 -
.../ticket/api/asn/omv2/ReservationData.java | 711 ------
.../api/asn/omv2/ReturnRouteDescriptionType.java | 150 --
.../barcode/ticket/api/asn/omv2/RoofRackType.java | 46 -
.../ticket/api/asn/omv2/RouteSectionType.java | 136 --
.../api/asn/omv2/SequenceOfActivatedDays.java | 26 -
.../api/asn/omv2/SequenceOfBerthDetailData.java | 10 -
.../api/asn/omv2/SequenceOfCardReferenceType.java | 10 -
.../ticket/api/asn/omv2/SequenceOfCarrierIA5.java | 13 -
.../ticket/api/asn/omv2/SequenceOfCarrierNum.java | 28 -
.../ticket/api/asn/omv2/SequenceOfCountries.java | 27 -
.../api/asn/omv2/SequenceOfCustomerStatusType.java | 11 -
.../api/asn/omv2/SequenceOfDeltaCoordinates.java | 10 -
.../api/asn/omv2/SequenceOfDocumentData.java | 10 -
.../api/asn/omv2/SequenceOfExtensionData.java | 10 -
.../asn/omv2/SequenceOfIncludedOpenTicketType.java | 10 -
.../ticket/api/asn/omv2/SequenceOfPlaceNum.java | 28 -
.../asn/omv2/SequenceOfRegionalValidityType.java | 10 -
.../asn/omv2/SequenceOfRegisteredLuggageType.java | 10 -
.../api/asn/omv2/SequenceOfServiceBrands.java | 26 -
.../ticket/api/asn/omv2/SequenceOfTariffType.java | 10 -
.../api/asn/omv2/SequenceOfTicketLinkType.java | 10 -
.../api/asn/omv2/SequenceOfTransportTypes.java | 26 -
.../ticket/api/asn/omv2/SequenceOfTravelerId.java | 26 -
.../api/asn/omv2/SequenceOfTravelerType.java | 10 -
.../ticket/api/asn/omv2/SequenceOfVatDetail.java | 10 -
.../api/asn/omv2/SequenceOfViaStationType.java | 10 -
.../ticket/api/asn/omv2/SeriesDetailType.java | 75 -
.../barcode/ticket/api/asn/omv2/ServiceType.java | 38 -
.../ticket/api/asn/omv2/StationPassageData.java | 387 ----
.../barcode/ticket/api/asn/omv2/TariffType.java | 206 --
.../ticket/api/asn/omv2/TicketDetailData.java | 190 --
.../ticket/api/asn/omv2/TicketLinkType.java | 156 --
.../barcode/ticket/api/asn/omv2/TicketType.java | 41 -
.../barcode/ticket/api/asn/omv2/TimeRangeType.java | 59 -
.../uic/barcode/ticket/api/asn/omv2/TokenType.java | 92 -
.../barcode/ticket/api/asn/omv2/TrainLinkType.java | 185 --
.../ticket/api/asn/omv2/TravelClassType.java | 50 -
.../barcode/ticket/api/asn/omv2/TravelerData.java | 82 -
.../barcode/ticket/api/asn/omv2/TravelerType.java | 322 ---
.../ticket/api/asn/omv2/UicRailTicketData.java | 115 -
.../api/asn/omv2/ValidityPeriodDetailType.java | 73 -
.../ticket/api/asn/omv2/ValidityPeriodType.java | 165 --
.../barcode/ticket/api/asn/omv2/VatDetailType.java | 87 -
.../ticket/api/asn/omv2/ViaStationType.java | 181 --
.../barcode/ticket/api/asn/omv2/VoucherData.java | 316 ---
.../uic/barcode/ticket/api/asn/omv2/ZoneType.java | 182 --
.../ticket/api/asn/omv2/uicBarcodeFCBv2.0.asn | 2040 -----------------
src/org/uic/barcode/ticket/api/asn/package.html | 7 -
.../uic/barcode/ticket/api/impl/SimpleBerth.java | 69 -
.../api/impl/SimpleCarCarriageReservation.java | 655 ------
.../ticket/api/impl/SimpleCardReference.java | 133 --
.../ticket/api/impl/SimpleCompartmentDetails.java | 136 --
.../ticket/api/impl/SimpleControlDetail.java | 229 --
.../barcode/ticket/api/impl/SimpleCounterMark.java | 482 ----
.../ticket/api/impl/SimpleCustomerCard.java | 209 --
.../api/impl/SimpleCustomerStatusDescription.java | 69 -
.../ticket/api/impl/SimpleDelayConfirmation.java | 326 ---
.../ticket/api/impl/SimpleDocumentData.java | 31 -
.../ticket/api/impl/SimpleDocumentExtension.java | 35 -
.../barcode/ticket/api/impl/SimpleExtension.java | 50 -
.../barcode/ticket/api/impl/SimpleFipTicket.java | 218 --
.../ticket/api/impl/SimpleGeoCoordinate.java | 207 --
.../ticket/api/impl/SimpleIncludedOpenTicket.java | 462 ----
.../ticket/api/impl/SimpleIssuingDetail.java | 230 --
.../uic/barcode/ticket/api/impl/SimpleLine.java | 138 --
.../ticket/api/impl/SimpleLuggageRestriction.java | 71 -
.../barcode/ticket/api/impl/SimpleOpenTicket.java | 603 -----
.../ticket/api/impl/SimpleParkingGround.java | 291 ---
.../uic/barcode/ticket/api/impl/SimplePass.java | 485 ----
.../uic/barcode/ticket/api/impl/SimplePlaces.java | 89 -
.../barcode/ticket/api/impl/SimplePolygone.java | 37 -
.../ticket/api/impl/SimpleRegisteredLuggage.java | 67 -
.../barcode/ticket/api/impl/SimpleReservation.java | 611 ------
.../api/impl/SimpleReturnRouteDescription.java | 122 --
.../ticket/api/impl/SimpleRouteSection.java | 107 -
.../ticket/api/impl/SimpleSeriesDataDetails.java | 64 -
.../ticket/api/impl/SimpleServiceBrand.java | 43 -
.../ticket/api/impl/SimpleStationPassage.java | 296 ---
.../uic/barcode/ticket/api/impl/SimpleTariff.java | 238 --
.../barcode/ticket/api/impl/SimpleTicketLink.java | 123 --
.../barcode/ticket/api/impl/SimpleTimeRange.java | 56 -
.../uic/barcode/ticket/api/impl/SimpleToken.java | 68 -
.../barcode/ticket/api/impl/SimpleTrainLink.java | 138 --
.../barcode/ticket/api/impl/SimpleTraveler.java | 289 ---
.../ticket/api/impl/SimpleTravelerDetail.java | 83 -
.../ticket/api/impl/SimpleUicRailTicket.java | 224 --
.../api/impl/SimpleUicTicketObjectFactory.java | 243 --
.../ticket/api/impl/SimpleValidityDetails.java | 37 -
.../ticket/api/impl/SimpleValidityRange.java | 90 -
.../barcode/ticket/api/impl/SimpleVatDetail.java | 54 -
.../barcode/ticket/api/impl/SimpleViaStation.java | 157 --
.../uic/barcode/ticket/api/impl/SimpleVoucher.java | 180 --
.../uic/barcode/ticket/api/impl/SimpleZone.java | 155 --
src/org/uic/barcode/ticket/api/impl/package.html | 7 -
src/org/uic/barcode/ticket/api/spec/IBerth.java | 60 -
.../barcode/ticket/api/spec/IBerthTypeType.java | 41 -
.../ticket/api/spec/ICarCarriageReservation.java | 590 -----
.../barcode/ticket/api/spec/ICardReference.java | 107 -
.../ticket/api/spec/ICompartmentDetails.java | 126 --
.../ticket/api/spec/ICompartmentGenderType.java | 42 -
.../ticket/api/spec/ICompartmentPositionType.java | 38 -
.../barcode/ticket/api/spec/IControlDetail.java | 249 ---
.../uic/barcode/ticket/api/spec/ICounterMark.java | 397 ----
.../uic/barcode/ticket/api/spec/ICustomerCard.java | 171 --
.../api/spec/ICustomerStatusDescription.java | 79 -
.../ticket/api/spec/IDelayConfirmation.java | 266 ---
.../uic/barcode/ticket/api/spec/IDocumentData.java | 32 -
.../ticket/api/spec/IDocumentExtension.java | 14 -
.../uic/barcode/ticket/api/spec/IExtension.java | 58 -
.../uic/barcode/ticket/api/spec/IFipTicket.java | 176 --
.../uic/barcode/ticket/api/spec/IGenderType.java | 42 -
.../barcode/ticket/api/spec/IGeoCoordinate.java | 133 --
.../ticket/api/spec/IGeoCoordinateSystemType.java | 38 -
.../uic/barcode/ticket/api/spec/IGeoUnitType.java | 40 -
.../ticket/api/spec/IHemisphereLatitudeType.java | 37 -
.../ticket/api/spec/IHemisphereLongitudeType.java | 36 -
.../ticket/api/spec/IIncludedOpenTicket.java | 433 ----
.../barcode/ticket/api/spec/IIssuingDetail.java | 189 --
src/org/uic/barcode/ticket/api/spec/ILine.java | 114 -
src/org/uic/barcode/ticket/api/spec/ILinkMode.java | 39 -
.../barcode/ticket/api/spec/ILoadingDeckType.java | 38 -
.../ticket/api/spec/ILuggageRestriction.java | 56 -
.../uic/barcode/ticket/api/spec/IOpenTicket.java | 561 -----
.../barcode/ticket/api/spec/IParkingGround.java | 252 ---
src/org/uic/barcode/ticket/api/spec/IPass.java | 412 ----
.../barcode/ticket/api/spec/IPassengerType.java | 46 -
src/org/uic/barcode/ticket/api/spec/IPlaces.java | 80 -
src/org/uic/barcode/ticket/api/spec/IPolygone.java | 32 -
.../barcode/ticket/api/spec/IPriceTypeType.java | 39 -
.../barcode/ticket/api/spec/IRegionalValidity.java | 15 -
.../ticket/api/spec/IRegisteredLuggage.java | 56 -
.../uic/barcode/ticket/api/spec/IReservation.java | 517 -----
.../ticket/api/spec/IReturnRouteDescription.java | 100 -
.../uic/barcode/ticket/api/spec/IRoofRackType.java | 46 -
.../uic/barcode/ticket/api/spec/IRouteSection.java | 83 -
.../ticket/api/spec/ISeriesDataDetails.java | 66 -
.../uic/barcode/ticket/api/spec/IServiceBrand.java | 55 -
.../uic/barcode/ticket/api/spec/IServiceType.java | 38 -
.../barcode/ticket/api/spec/IStationCodeTable.java | 25 -
.../barcode/ticket/api/spec/IStationPassage.java | 239 --
src/org/uic/barcode/ticket/api/spec/ITariff.java | 204 --
.../uic/barcode/ticket/api/spec/ITicketLink.java | 97 -
.../uic/barcode/ticket/api/spec/ITicketType.java | 41 -
.../uic/barcode/ticket/api/spec/ITimeRange.java | 72 -
src/org/uic/barcode/ticket/api/spec/IToken.java | 52 -
.../uic/barcode/ticket/api/spec/ITrainLink.java | 122 --
.../barcode/ticket/api/spec/ITravelClassType.java | 49 -
src/org/uic/barcode/ticket/api/spec/ITraveler.java | 250 ---
.../barcode/ticket/api/spec/ITravelerDetail.java | 61 -
.../barcode/ticket/api/spec/IUicRailTicket.java | 184 --
.../ticket/api/spec/IUicTicketObjectFactory.java | 51 -
.../barcode/ticket/api/spec/IValidityDetails.java | 45 -
.../barcode/ticket/api/spec/IValidityRange.java | 72 -
.../uic/barcode/ticket/api/spec/IVatDetail.java | 22 -
.../uic/barcode/ticket/api/spec/IViaStation.java | 170 --
src/org/uic/barcode/ticket/api/spec/IVoucher.java | 146 --
src/org/uic/barcode/ticket/api/spec/IZone.java | 141 --
src/org/uic/barcode/ticket/api/spec/package.html | 7 -
.../ticket/api/spec/uicBarcodeHeader0.1.asn | 151 --
.../api/test/CustomerCardTimeZoneTestV1.java | 312 ---
.../api/test/CustomerCardTimeZoneTestV2.java | 312 ---
.../barcode/ticket/api/test/DateTimeUtilsTest.java | 45 -
.../barcode/ticket/api/test/FipTimeZoneTestV1.java | 345 ---
.../barcode/ticket/api/test/FipTimeZoneTestV2.java | 345 ---
.../ticket/api/test/OpenTicketTimeZoneTestV1.java | 345 ---
.../ticket/api/test/OpenTicketTimeZoneTestV2.java | 345 ---
.../ticket/api/test/ParkingTimeZoneTestV1.java | 312 ---
.../ticket/api/test/ParkingTimeZoneTestV2.java | 312 ---
.../ticket/api/test/PassTimeZoneTestV1.java | 455 ----
.../ticket/api/test/PassTimeZoneTestV2.java | 345 ---
.../ticket/api/test/ReservationTimeZoneTestV1.java | 312 ---
.../ticket/api/test/ReservationTimeZoneTestV2.java | 312 ---
.../api/test/StationPassageTimeZoneTestV1.java | 312 ---
.../api/test/StationPassageTimeZoneTestV2.java | 312 ---
.../api/test/UperEncodeOpenTicketTestV1.java | 54 -
.../ticket/api/test/UperEncodePassTestV1.java | 53 -
.../api/test/UperEncodeTicketLinkTestV1.java | 75 -
.../ticket/api/test/UperEncodeTicketTestV1.java | 118 -
.../api/test/UperEncodeUICTicketExtensionTest.java | 126 --
.../ticket/api/test/VoucherTimeZoneTestV1.java | 312 ---
.../ticket/api/test/VoucherTimeZoneTestV2.java | 312 ---
.../AsnLevelPassTimeZoneTestTicketV1.java | 578 -----
.../test/testtickets/CustomerCardTestTicketV1.java | 175 --
.../test/testtickets/CustomerCardTestTicketV2.java | 175 --
.../api/test/testtickets/DelayTestTicketV3.java | 163 --
.../test/testtickets/FipTimeZoneTestTicketV1.java | 155 --
.../test/testtickets/FipTimeZoneTestTicketV2.java | 155 --
.../api/test/testtickets/OpenTestTicketV1.java | 578 -----
.../OpenTicketTimeZoneTestTicketV1.java | 157 --
.../OpenTicketTimeZoneTestTicketV2.java | 157 --
.../api/test/testtickets/ParkingTestTicketV1.java | 147 --
.../api/test/testtickets/ParkingTestTicketV2.java | 147 --
.../api/test/testtickets/PassTestTicketV1.java | 150 --
.../testtickets/PassTimeZoneTestTicketCase1V1.java | 168 --
.../testtickets/PassTimeZoneTestTicketCase2V1.java | 165 --
.../testtickets/PassTimeZoneTestTicketCase3V1.java | 204 --
.../test/testtickets/PassTimeZoneTestTicketV2.java | 168 --
.../test/testtickets/ReservationTestTicketV1.java | 201 --
.../test/testtickets/ReservationTestTicketV2.java | 201 --
.../testtickets/SimpleTicketLinkTestTicket.java | 574 -----
.../api/test/testtickets/SimpleUicTestTicket.java | 244 ---
.../testtickets/StationPassageTestTicketV1.java | 183 --
.../testtickets/StationPassageTestTicketV2.java | 183 --
.../api/test/testtickets/VoucherTestTicketV1.java | 145 --
.../api/test/testtickets/VoucherTestTicketV2.java | 145 --
.../ticket/api/utils/Api2OpenAsnEncoder.java | 2315 --------------------
.../ticket/api/utils/Api2OpenAsnEncoderV2.java | 2296 -------------------
.../barcode/ticket/api/utils/DateTimeUtils.java | 239 --
.../ticket/api/utils/OpenAsn2ApiDecoder.java | 2222 -------------------
.../ticket/api/utils/OpenAsn2ApiDecoderV2.java | 2250 -------------------
.../barcode/ticket/api/utils/UicEncoderUtils.java | 514 -----
src/org/uic/barcode/ticket/api/utils/package.html | 7 -
src/org/uic/barcode/ticket/package.html | 9 -
.../uic/barcode/utils/AlgorithmNameResolver.java | 173 --
src/org/uic/barcode/utils/package.html | 20 -
454 files changed, 76667 deletions(-)
delete mode 100644 src/org/uic/barcode/Decoder.java
delete mode 100644 src/org/uic/barcode/Encoder.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Alphabet.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/AlphabetBuilder.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Asn1AnonymousType.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Asn1BigInteger.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Asn1Default.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Asn1Integer.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Asn1Optional.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Asn1SequenceOf.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Asn1String.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Asn1VarSizeBitstring.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Bitstring.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/CharacterRestriction.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Choice.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/DefaultAlphabet.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/FieldOrder.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/FixedSize.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/HasExtensionMarker.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/IntMinValue.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/IntRange.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/IsExtension.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/NoAsn1Field.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Optional.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/RestrictedString.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/Sequence.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/SizeRange.java
delete mode 100644 src/org/uic/barcode/asn1/datatypes/package-info.java
delete mode 100644 src/org/uic/barcode/asn1/datatypesimpl/OctetString.java
delete mode 100644 src/org/uic/barcode/asn1/datatypesimpl/SequenceOfLong.java
delete mode 100644 src/org/uic/barcode/asn1/datatypesimpl/SequenceOfStringIA5.java
delete mode 100644 src/org/uic/barcode/asn1/datatypesimpl/SequenceOfStringUTF8.java
delete mode 100644 src/org/uic/barcode/asn1/datatypesimpl/SequenceOfUnrestrictedLong.java
delete mode 100644 src/org/uic/barcode/asn1/test/TestSequenceOfLong.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeBooleanTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeChoiceExtensionTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeChoiceTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeEnumExtensionTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeEnumTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeExtensionFieldOrderTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeFieldOrderTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeIntegerConstrainedTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeIntegerExtensionTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeIntegerSmallTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeIntegerTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeObjectIdentifierTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeOctetStringTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeOptionalSequenceExtensionTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeRestrictedIntegerTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeSequenceExtensionTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeSequenceOfIntegerTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeSequenceOfRestrictedIntegerTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeSequenceOfStringListTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeSequenceOfStringTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeSequenceOfUtf8StringTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeStringDefaultTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeStringLengthTest.java
delete mode 100644 src/org/uic/barcode/asn1/test/UperEncodeStringTest.java
delete mode 100644 src/org/uic/barcode/asn1/uper/AnnotationStore.java
delete mode 100644 src/org/uic/barcode/asn1/uper/Asn1EncodingException.java
delete mode 100644 src/org/uic/barcode/asn1/uper/BigIntCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/BitBuffer.java
delete mode 100644 src/org/uic/barcode/asn1/uper/BitStringCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/BooleanCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/ByteBitBuffer.java
delete mode 100644 src/org/uic/barcode/asn1/uper/ByteCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/ChoiceCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/Decoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/Document2.txt
delete mode 100644 src/org/uic/barcode/asn1/uper/Encoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/EnumCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/IntCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/ObjectIdentifierCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/SeqOfCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/SeqOfFixedSize.java
delete mode 100644 src/org/uic/barcode/asn1/uper/SequenceCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/SimpleTypeResolver.java
delete mode 100644 src/org/uic/barcode/asn1/uper/StringCoder.java
delete mode 100644 src/org/uic/barcode/asn1/uper/UperEncoder.java
delete mode 100644 src/org/uic/barcode/dynamicFrame/Constants.java
delete mode 100644 src/org/uic/barcode/dynamicFrame/DataType.java
delete mode 100644 src/org/uic/barcode/dynamicFrame/DynamicFrame.java
delete mode 100644 src/org/uic/barcode/dynamicFrame/Level1DataType.java
delete mode 100644 src/org/uic/barcode/dynamicFrame/Level2DataType.java
delete mode 100644 src/org/uic/barcode/dynamicFrame/SequenceOfDataType.java
delete mode 100644 src/org/uic/barcode/dynamicFrame/headerSpec.asn
delete mode 100644 src/org/uic/barcode/dynamicFrame/package.html
delete mode 100644 src/org/uic/barcode/logger/Logger.java
delete mode 100644 src/org/uic/barcode/logger/LoggerFactory.java
delete mode 100644 src/org/uic/barcode/package.html
delete mode 100644 src/org/uic/barcode/staticFrame/DataRecord.java
delete mode 100644 src/org/uic/barcode/staticFrame/GENERICDataRecord.java
delete mode 100644 src/org/uic/barcode/staticFrame/StaticFrame.java
delete mode 100644 src/org/uic/barcode/staticFrame/UFLEXDataRecord.java
delete mode 100644 src/org/uic/barcode/staticFrame/UHEADDataRecord.java
delete mode 100644 src/org/uic/barcode/staticFrame/UTLAYDataRecord.java
delete mode 100644 src/org/uic/barcode/staticFrame/package.html
delete mode 100644 src/org/uic/barcode/staticFrame/ticketLayoutBarcode/FormatType.java
delete mode 100644 src/org/uic/barcode/staticFrame/ticketLayoutBarcode/LayoutElement.java
delete mode 100644 src/org/uic/barcode/staticFrame/ticketLayoutBarcode/TicketLayout.java
delete mode 100644 src/org/uic/barcode/test/DynamicFrameDoubleSignatureTest.java
delete mode 100644 src/org/uic/barcode/test/DynamicFrameLOwLevelTest.java
delete mode 100644 src/org/uic/barcode/test/DynamicFrameSimpleTest.java
delete mode 100644 src/org/uic/barcode/test/SignatureSplitTest.java
delete mode 100644 src/org/uic/barcode/test/StaticFrameBarcodeTest.java
delete mode 100644 src/org/uic/barcode/test/StaticFrameBarcodeTestFCB2.java
delete mode 100644 src/org/uic/barcode/test/TicketLayoutTest.java
delete mode 100644 src/org/uic/barcode/test/utils/Level2TestDataFactory.java
delete mode 100644 src/org/uic/barcode/test/utils/SimpleDynamicFrameTestBarcode.java
delete mode 100644 src/org/uic/barcode/test/utils/SimpleTestTicketLayout.java
delete mode 100644 src/org/uic/barcode/test/utils/SimpleUICTestTicket.java
delete mode 100644 src/org/uic/barcode/test/utils/TestUtils.java
delete mode 100644 src/org/uic/barcode/ticket/EncodingFormatException.java
delete mode 100644 src/org/uic/barcode/ticket/UicRailTicketCoder.java
delete mode 100644 src/org/uic/barcode/ticket/UnsuportedFeatureException.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/BerthDetailData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/BerthTypeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/CarCarriageReservationData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/CardReferenceType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/CodeTableType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/CompartmentDetailsType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/CompartmentGenderType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/CompartmentPositionType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ConfirmationTypeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ControlData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/CountermarkData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/CustomerCardData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/CustomerStatusType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/DelayConfirmation.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/DeltaCoordinates.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/DocumentData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ExtensionData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/FIPTicketData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/GenderType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/GeoCoordinateSystemType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/GeoCoordinateType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/GeoUnitType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/HemisphereLatitudeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/HemisphereLongitudeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/IncludedOpenTicketType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/IssuingData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/LineType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/LinkMode.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/LoadingDeckType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/LuggageRestrictionType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/OpenTicketData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ParkingGroundData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/PassData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/PassengerType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/PlacesType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/PolygoneType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/PriceTypeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/RegionalValidityType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/RegisteredLuggageType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ReservationData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ReturnRouteDescriptionType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/RoofRackType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/RouteSectionType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfActivatedDays.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfBerthDetailData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCardReferenceType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCarrierIA5.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCarrierNum.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCountries.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCustomerStatusType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfDeltaCoordinates.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfDocumentData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfExtensionData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfIncludedOpenTicketType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfPlaceNum.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfRegionalValidityType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfRegisteredLuggageType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfServiceBrands.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTariffType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTicketLinkType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTravelerId.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTravelerType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfVatDetail.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfViaStationType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/SeriesDetailType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ServiceType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/StationPassageData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/TariffType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/TicketDetailData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/TicketLinkType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/TicketType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/TimeRangeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/TokenType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/TrainLinkType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/TravelClassType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/TravelerData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/TravelerType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/UicRailTicketData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ValidityPeriodDetailType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ValidityPeriodType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/VatDetailType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ViaStationType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/ZoneType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv1/uicBarcodeV1finalDelayConfirmation1.3.asn
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/BerthDetailData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/BerthTypeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/CarCarriageReservationData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/CardReferenceType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/CodeTableType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/CompartmentDetailsType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/CompartmentGenderType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/CompartmentPositionType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ConfirmationTypeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ControlData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/CountermarkData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/CustomerCardData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/CustomerStatusType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/DelayConfirmation.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/DeltaCoordinates.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/DocumentData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ExtensionData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/FIPTicketData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/GenderType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/GeoCoordinateSystemType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/GeoCoordinateType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/GeoUnitType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/HemisphereLatitudeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/HemisphereLongitudeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/IncludedOpenTicketType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/IssuingData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/LineType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/LinkMode.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/LoadingDeckType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/LuggageRestrictionType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/OpenTicketData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ParkingGroundData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/PassData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/PassengerType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/PlacesType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/PolygoneType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/PriceTypeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/RegionalValidityType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/RegisteredLuggageType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ReservationData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ReturnRouteDescriptionType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/RoofRackType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/RouteSectionType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfActivatedDays.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfBerthDetailData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCardReferenceType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCarrierIA5.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCarrierNum.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCountries.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCustomerStatusType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfDeltaCoordinates.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfDocumentData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfExtensionData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfIncludedOpenTicketType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfPlaceNum.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfRegionalValidityType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfRegisteredLuggageType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfServiceBrands.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTariffType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTicketLinkType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTransportTypes.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTravelerId.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTravelerType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfVatDetail.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfViaStationType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/SeriesDetailType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ServiceType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/StationPassageData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TariffType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TicketDetailData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TicketLinkType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TicketType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TimeRangeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TokenType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TrainLinkType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TravelClassType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TravelerData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/TravelerType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/UicRailTicketData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ValidityPeriodDetailType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ValidityPeriodType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/VatDetailType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ViaStationType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/VoucherData.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/ZoneType.java
delete mode 100644 src/org/uic/barcode/ticket/api/asn/omv2/uicBarcodeFCBv2.0.asn
delete mode 100644 src/org/uic/barcode/ticket/api/asn/package.html
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleBerth.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleCarCarriageReservation.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleCardReference.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleCompartmentDetails.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleControlDetail.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleCounterMark.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleCustomerCard.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleCustomerStatusDescription.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleDelayConfirmation.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleDocumentData.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleDocumentExtension.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleExtension.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleFipTicket.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleGeoCoordinate.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleIncludedOpenTicket.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleIssuingDetail.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleLine.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleLuggageRestriction.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleOpenTicket.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleParkingGround.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimplePass.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimplePlaces.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimplePolygone.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleRegisteredLuggage.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleReservation.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleReturnRouteDescription.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleRouteSection.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleSeriesDataDetails.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleServiceBrand.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleStationPassage.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleTariff.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleTicketLink.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleTimeRange.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleToken.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleTrainLink.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleTraveler.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleTravelerDetail.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleUicRailTicket.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleUicTicketObjectFactory.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleValidityDetails.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleValidityRange.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleVatDetail.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleViaStation.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleVoucher.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/SimpleZone.java
delete mode 100644 src/org/uic/barcode/ticket/api/impl/package.html
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IBerth.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IBerthTypeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ICarCarriageReservation.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ICardReference.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ICompartmentDetails.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ICompartmentGenderType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ICompartmentPositionType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IControlDetail.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ICounterMark.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ICustomerCard.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ICustomerStatusDescription.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IDelayConfirmation.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IDocumentData.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IDocumentExtension.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IExtension.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IFipTicket.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IGenderType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IGeoCoordinate.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IGeoCoordinateSystemType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IGeoUnitType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IHemisphereLatitudeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IHemisphereLongitudeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IIncludedOpenTicket.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IIssuingDetail.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ILine.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ILinkMode.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ILoadingDeckType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ILuggageRestriction.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IOpenTicket.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IParkingGround.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IPass.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IPassengerType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IPlaces.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IPolygone.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IPriceTypeType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IRegionalValidity.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IRegisteredLuggage.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IReservation.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IReturnRouteDescription.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IRoofRackType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IRouteSection.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ISeriesDataDetails.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IServiceBrand.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IServiceType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IStationCodeTable.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IStationPassage.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ITariff.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ITicketLink.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ITicketType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ITimeRange.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IToken.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ITrainLink.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ITravelClassType.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ITraveler.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/ITravelerDetail.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IUicRailTicket.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IUicTicketObjectFactory.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IValidityDetails.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IValidityRange.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IVatDetail.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IViaStation.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IVoucher.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/IZone.java
delete mode 100644 src/org/uic/barcode/ticket/api/spec/package.html
delete mode 100644 src/org/uic/barcode/ticket/api/spec/uicBarcodeHeader0.1.asn
delete mode 100644 src/org/uic/barcode/ticket/api/test/CustomerCardTimeZoneTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/CustomerCardTimeZoneTestV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/DateTimeUtilsTest.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/FipTimeZoneTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/FipTimeZoneTestV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/OpenTicketTimeZoneTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/OpenTicketTimeZoneTestV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/ParkingTimeZoneTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/ParkingTimeZoneTestV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/PassTimeZoneTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/PassTimeZoneTestV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/ReservationTimeZoneTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/ReservationTimeZoneTestV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/StationPassageTimeZoneTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/StationPassageTimeZoneTestV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/UperEncodeOpenTicketTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/UperEncodePassTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/UperEncodeTicketLinkTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/UperEncodeTicketTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/UperEncodeUICTicketExtensionTest.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/VoucherTimeZoneTestV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/VoucherTimeZoneTestV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/AsnLevelPassTimeZoneTestTicketV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/CustomerCardTestTicketV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/CustomerCardTestTicketV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/DelayTestTicketV3.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/FipTimeZoneTestTicketV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/FipTimeZoneTestTicketV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/OpenTestTicketV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/OpenTicketTimeZoneTestTicketV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/OpenTicketTimeZoneTestTicketV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/ParkingTestTicketV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/ParkingTestTicketV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/PassTestTicketV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/PassTimeZoneTestTicketCase1V1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/PassTimeZoneTestTicketCase2V1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/PassTimeZoneTestTicketCase3V1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/PassTimeZoneTestTicketV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/ReservationTestTicketV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/ReservationTestTicketV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/SimpleTicketLinkTestTicket.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/SimpleUicTestTicket.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/StationPassageTestTicketV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/StationPassageTestTicketV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/VoucherTestTicketV1.java
delete mode 100644 src/org/uic/barcode/ticket/api/test/testtickets/VoucherTestTicketV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoder.java
delete mode 100644 src/org/uic/barcode/ticket/api/utils/Api2OpenAsnEncoderV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/utils/DateTimeUtils.java
delete mode 100644 src/org/uic/barcode/ticket/api/utils/OpenAsn2ApiDecoder.java
delete mode 100644 src/org/uic/barcode/ticket/api/utils/OpenAsn2ApiDecoderV2.java
delete mode 100644 src/org/uic/barcode/ticket/api/utils/UicEncoderUtils.java
delete mode 100644 src/org/uic/barcode/ticket/api/utils/package.html
delete mode 100644 src/org/uic/barcode/ticket/package.html
delete mode 100644 src/org/uic/barcode/utils/AlgorithmNameResolver.java
delete mode 100644 src/org/uic/barcode/utils/package.html
(limited to 'src/org/uic')
diff --git a/src/org/uic/barcode/Decoder.java b/src/org/uic/barcode/Decoder.java
deleted file mode 100644
index fe53ed0..0000000
--- a/src/org/uic/barcode/Decoder.java
+++ /dev/null
@@ -1,232 +0,0 @@
-package org.uic.barcode;
-
-import java.io.IOException;
-import java.security.InvalidKeyException;
-import java.security.NoSuchAlgorithmException;
-import java.security.PublicKey;
-import java.security.SignatureException;
-import java.util.zip.DataFormatException;
-
-import org.uic.barcode.dynamicFrame.Constants;
-import org.uic.barcode.dynamicFrame.DataType;
-import org.uic.barcode.dynamicFrame.DynamicFrame;
-import org.uic.barcode.dynamicFrame.Level1DataType;
-import org.uic.barcode.dynamicFrame.Level2DataType;
-import org.uic.barcode.dynamicFrame.SequenceOfDataType;
-import org.uic.barcode.staticFrame.StaticFrame;
-import org.uic.barcode.staticFrame.UFLEXDataRecord;
-import org.uic.barcode.staticFrame.UTLAYDataRecord;
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.TicketLayout;
-import org.uic.barcode.ticket.EncodingFormatException;
-import org.uic.barcode.ticket.UicRailTicketCoder;
-import org.uic.barcode.ticket.api.spec.IUicRailTicket;
-
-
-/**
- * The Class Decoder.
- *
- * signature validation and decoding of UIC bar codes
- *
- */
-public class Decoder {
-
-
- /** The dynamic frame. */
- private DynamicFrame dynamicFrame = null;
-
- /** The static frame. */
- private StaticFrame staticFrame = null;
-
- /** The uic ticket coder. */
- private UicRailTicketCoder uicTicketCoder = null;
-
- /** The uic ticket. */
- private IUicRailTicket uicTicket = null;
-
- /** The layout. */
- private TicketLayout layout = null;
-
- /** The data. */
- byte[] data = null;
-
-
- /**
- * Instantiates a new decoder.
- *
- * @param data the data
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- * @throws DataFormatException the data format exception
- */
- public Decoder (byte[] data) throws IOException, EncodingFormatException, DataFormatException {
- this.data = data;
- decode(data);
- }
-
- /**
- * Validate level 1.
- *
- * @param key the public key
- * @param signingAlg the signing algorithm OID
- * @return the return code indicating errors
- * @throws InvalidKeyException the invalid key exception
- * @throws NoSuchAlgorithmException the no such algorithm exception
- * @throws SignatureException the signature exception
- * @throws IllegalArgumentException the illegal argument exception
- * @throws UnsupportedOperationException the unsupported operation exception
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- public int validateLevel1(PublicKey key, String signingAlg) throws InvalidKeyException, NoSuchAlgorithmException, SignatureException, IllegalArgumentException, UnsupportedOperationException, IOException, EncodingFormatException {
- if (!isStaticHeader(data)) {
- return dynamicFrame.validateLevel1(key) ;
- } else {
- if (staticFrame.verifyByAlgorithmOid(key,signingAlg)) {
- return Constants.LEVEL1_VALIDATION_OK;
- } else {
- return Constants.LEVEL1_VALIDATION_FRAUD;
- }
- }
- }
-
- /**
- * Validate level 2.
- *
- * @return the return code indicating errors
- */
- public int validateLevel2() {
- if (!isStaticHeader(data)) {
- return dynamicFrame.validateLevel2() ;
- } else {
- return Constants.LEVEL2_VALIDATION_NO_SIGNATURE;
- }
- }
-
- /**
- * Decode.
- *
- * @param data the byte array raw data
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- * @throws DataFormatException the data format exception
- */
- public void decode(byte[] data) throws IOException, EncodingFormatException, DataFormatException {
-
- if (!isStaticHeader(data)) {
-
- dynamicFrame = DynamicFrame.decode(data);
-
- Level2DataType level2 = dynamicFrame.getLevel2SignedData();
-
- Level1DataType level1 = level2.getLevel1Data();
-
- SequenceOfDataType dataList = level1.getData();
-
- for (DataType level1Content : dataList) {
-
- uicTicketCoder = new UicRailTicketCoder();
- if (level1Content.getFormat().equals("FCB1")) {
- uicTicket = uicTicketCoder.decodeFromAsn(level1Content.getByteData(), 1);
- } else if (level1Content.getFormat().equals("FCB2")) {
- uicTicket = uicTicketCoder.decodeFromAsn(level1Content.getByteData(), 2);
- }
- }
-
- } else if (isStaticHeader(data)){
-
- staticFrame = new StaticFrame();
-
- staticFrame.decode(data);
-
- UFLEXDataRecord flex = staticFrame.getuFlex();
-
- if (flex != null) {
- uicTicket = flex.getTicket();
- }
-
- UTLAYDataRecord tlay = staticFrame.getuTlay();
-
- if (tlay != null) {
- layout = tlay.getLayout();
- }
- }
- }
-
-
- /**
- * Checks if is static header.
- *
- * @param data the data
- * @return true, if is static header
- */
- private boolean isStaticHeader(byte[] data) {
- byte[] start = "#UT".getBytes();
- if (start[0] != data[0] || start[1]!= start[1] || start[2] != data[2]) return false;
- return true;
- }
-
- /**
- * Gets the uic ticket.
- *
- * @return the uic ticket
- */
- public IUicRailTicket getUicTicket() {
- return uicTicket;
- }
-
- /**
- * Gets the layout.
- *
- * @return the layout
- */
- public TicketLayout getLayout() {
- return layout;
- }
-
- /**
- * Gets the dynamic header.
- *
- * @return the dynamic header
- */
- public DynamicFrame getDynamicHeader() {
- return dynamicFrame;
- }
-
- /**
- * Sets the dynamic header.
- *
- * @param dynamicHeader the new dynamic header
- */
- public void setDynamicHeader(DynamicFrame dynamicHeader) {
- this.dynamicFrame = dynamicHeader;
- }
-
- /**
- * Gets the static frame.
- *
- * @return the static frame
- */
- public StaticFrame getStaticFrame() {
- return staticFrame;
- }
-
- /**
- * Sets the static frame.
- *
- * @param staticFrame the new static frame
- */
- public void setStaticFrame(StaticFrame staticFrame) {
- this.staticFrame = staticFrame;
- }
-
- public DataType getLevel2Data() {
- if (!isStaticHeader(data) && dynamicFrame.getLevel2SignedData() != null) {
- return dynamicFrame.getLevel2SignedData().getLevel2Data();
- }
- return null;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/Encoder.java b/src/org/uic/barcode/Encoder.java
deleted file mode 100644
index aafe5cc..0000000
--- a/src/org/uic/barcode/Encoder.java
+++ /dev/null
@@ -1,258 +0,0 @@
-package org.uic.barcode;
-
-import java.io.IOException;
-import java.security.PrivateKey;
-import java.security.PublicKey;
-
-import org.uic.barcode.asn1.datatypesimpl.OctetString;
-import org.uic.barcode.dynamicFrame.Constants;
-import org.uic.barcode.dynamicFrame.DataType;
-import org.uic.barcode.dynamicFrame.DynamicFrame;
-import org.uic.barcode.dynamicFrame.Level1DataType;
-import org.uic.barcode.dynamicFrame.Level2DataType;
-import org.uic.barcode.dynamicFrame.SequenceOfDataType;
-import org.uic.barcode.staticFrame.StaticFrame;
-import org.uic.barcode.staticFrame.UFLEXDataRecord;
-import org.uic.barcode.staticFrame.UHEADDataRecord;
-import org.uic.barcode.staticFrame.UTLAYDataRecord;
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.TicketLayout;
-import org.uic.barcode.ticket.EncodingFormatException;
-import org.uic.barcode.ticket.UicRailTicketCoder;
-import org.uic.barcode.ticket.api.spec.IUicRailTicket;
-
-
-/**
- * The Class Encoder.
- *
- * signing and encoding of UIC bar codes
- *
- *
- */
-public class Encoder {
-
- /** The dynamic frame. */
- private DynamicFrame dynamicFrame = null;
-
- /** The static frame. */
- private StaticFrame staticFrame = null;
-
-
- /** The UIC bar code type classic. */
- public static String UIC_BARCODE_TYPE_CLASSIC = "UIC_CLASSIC";
-
- /** The UIC bar code type DOSIPAS. */
- public static String UIC_BARCODE_TYPE_DOSIPAS = "UIC_DOSIPAS";
-
- /**
- * Instantiates a new encoder.
- *
- * @param ticket the ticket
- * @param layout the layout
- * @param barcodeType the bar code type
- * @param version the version of the bar code
- * @param fcbVersion the fcb version
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- public Encoder(IUicRailTicket ticket, TicketLayout layout, String barcodeType, int version, int fcbVersion) throws IOException, EncodingFormatException {
-
- if (barcodeType == UIC_BARCODE_TYPE_CLASSIC) {
-
- staticFrame = new StaticFrame();
- staticFrame.setVersion(version);
-
- if (layout != null) {
-
- UHEADDataRecord head = new UHEADDataRecord();
- head.setVersionId("01");
- staticFrame.setHeaderRecord(head);
-
- UTLAYDataRecord tlay = new UTLAYDataRecord();
- tlay.setLayout(layout);
- tlay.setVersionId("01");
- staticFrame.setuTlay(tlay);
- }
-
- if (ticket != null) {
-
- UFLEXDataRecord flex = new UFLEXDataRecord();
- flex.setTicket(ticket);
- flex.setVersionId(String.format("%02d",fcbVersion));
- staticFrame.setuFlex(flex);
- }
-
-
- } else if (barcodeType == UIC_BARCODE_TYPE_DOSIPAS) {
-
- dynamicFrame = new DynamicFrame();
- dynamicFrame.setLevel2SignedData(new Level2DataType());
- dynamicFrame.getLevel2SignedData().setLevel1Data(new Level1DataType());
- dynamicFrame.getLevel2SignedData().getLevel1Data().setData(new SequenceOfDataType());
-
- if (ticket != null) {
-
- if (version == 1) {
- dynamicFrame.setFormat("U1");
- }
-
- DataType ticketData = new DataType();
-
- UicRailTicketCoder uicTicketCoder = new UicRailTicketCoder();
- ticketData.setFormat(Constants.DATA_TYPE_FCB_VERSION_1);
- ticketData.setData(new OctetString(uicTicketCoder.encode(ticket, fcbVersion)));
- dynamicFrame.getLevel2SignedData().getLevel1Data().getData().add(ticketData);
-
- }
- }
- }
-
-
-
- /**
- * Signing level 2 of a dynamic bar code
- *
- * @param key the key
- * @throws Exception the exception
- */
- public void signLevel2(PrivateKey key) throws Exception {
- if (dynamicFrame != null) {
- dynamicFrame.signLevel2(key);
- }
- }
-
- /**
- * Sets the level 1 algorithm Is.
- *
- * @param level1SigningAlg the level 1 signing algorithm (OID)
- * @param level1KeyAlg the level 1 key algorithm (OID)
- */
- public void setLevel1Algs(String level1SigningAlg, String level1KeyAlg) {
- if (dynamicFrame != null) {
- dynamicFrame.getLevel2SignedData().getLevel1Data().setLevel1SigningAlg(level1SigningAlg);
- dynamicFrame.getLevel2SignedData().getLevel1Data().setLevel1KeyAlg(level1KeyAlg);
- }
- }
-
- /**
- * Sets the level 2 algorithm Is.
- *
- * @param level2SigningAlg the level 2 signing algorithm (OID)
- * @param level2KeyAlg the level 2 key algorithm (OID)
- * @param publicKey the public key of the level 2 signature
- */
- public void setLevel2Algs(String level2SigningAlg, String level2KeyAlg, PublicKey publicKey) {
- if (dynamicFrame != null) {
- if (dynamicFrame.getLevel2SignedData() == null) {
- dynamicFrame.setLevel2SignedData(new Level2DataType());
- }
- if (dynamicFrame.getLevel2SignedData().getLevel1Data() == null) {
- dynamicFrame.getLevel2SignedData().setLevel1Data(new Level1DataType());
- }
- dynamicFrame.getLevel2SignedData().getLevel1Data().setLevel2SigningAlg(level2SigningAlg);
- dynamicFrame.getLevel2SignedData().getLevel1Data().setLevel2KeyAlg(level2KeyAlg);
- if (publicKey != null) {
- dynamicFrame.getLevel2SignedData().getLevel1Data().setLevel2publicKey(new OctetString(publicKey.getEncoded()));
- }
- }
- }
-
- public void setLevel2Data(DataType level2data) {
- if (dynamicFrame != null) {
- if (dynamicFrame.getLevel2SignedData() == null) {
- dynamicFrame.setLevel2SignedData(new Level2DataType());
- }
- dynamicFrame.getLevel2SignedData().setLevel2Data(level2data);
- }
- }
-
- public DataType getLevel2Data() {
- if (dynamicFrame != null && dynamicFrame.getLevel2SignedData() != null) {
- return dynamicFrame.getLevel2SignedData().getLevel2Data();
- }
- return null;
- }
-
- /**
- * Sign level 1 of a dynamic bar code or a static bar code.
- *
- * @param securityProvider the security provider
- * @param key the key
- * @param signingAlg the signing algorithm (OID)
- * @param keyId the key id
- * @throws Exception the exception
- */
- public void signLevel1(String securityProvider,PrivateKey key,String signingAlg, String keyId) throws Exception {
- if (dynamicFrame != null) {
- dynamicFrame.getLevel2SignedData().getLevel1Data().setSecurityProvider(securityProvider);
- dynamicFrame.getLevel2SignedData().getLevel1Data().setLevel1SigningAlg(signingAlg);
- dynamicFrame.getLevel2SignedData().getLevel1Data().setKeyId(Long.parseLong(keyId));
- dynamicFrame.getLevel2SignedData().signLevel1(key);
- } else if (staticFrame != null) {
- staticFrame.setSignatureKey(keyId);
- staticFrame.setSecurityProvider(securityProvider);
- if (staticFrame.getHeaderRecord()!= null && staticFrame.getHeaderRecord().getIssuer() == null) {
- staticFrame.getHeaderRecord().setIssuer(securityProvider);
- }
- staticFrame.signByAlgorithmOID(key,signingAlg);
- }
- }
-
- /**
- * Sets the static header parameter.
- *
- * @param ticketId the ticket id
- * @param language the language
- */
- public void setStaticHeaderParams(String ticketId,String language) {
- if (staticFrame != null && staticFrame.getHeaderRecord()!= null) {
- staticFrame.getHeaderRecord().setIdentifier(ticketId);
- staticFrame.getHeaderRecord().setLanguage(language);
- }
- }
-
- /**
- * Gets the dynamic frame.
- *
- * @return the dynamic frame
- */
- public DynamicFrame getDynamicFrame() {
- return dynamicFrame;
- }
-
-
-
- /**
- * Gets the static frame.
- *
- * @return the static frame
- */
- public StaticFrame getStaticFrame() {
- return staticFrame;
- }
-
-
-
- /**
- * Encodes the signed bar code data
- *
- * @return the byte[]
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws Exception the exception
- */
- public byte[] encode() throws IOException, Exception {
- if (dynamicFrame != null) {
- return dynamicFrame.encode();
- } else if (staticFrame != null) {
- return staticFrame.encode();
- }
- return null;
- }
-
-
-
-
-
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Alphabet.java b/src/org/uic/barcode/asn1/datatypes/Alphabet.java
deleted file mode 100644
index 2b153ae..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Alphabet.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-/**
- * Alphabet class for Restricted Strings.
- *
- * Use {@link AlphabetBuilder} for convenient construction of restriction alphabets.
- */
-public abstract class Alphabet {
-
- private final String chars;
-
- protected Alphabet(String chars) {
- this.chars = chars;
- }
-
- public final String chars() {
- return chars;
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/AlphabetBuilder.java b/src/org/uic/barcode/asn1/datatypes/AlphabetBuilder.java
deleted file mode 100644
index b768897..0000000
--- a/src/org/uic/barcode/asn1/datatypes/AlphabetBuilder.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-
-public class AlphabetBuilder {
-
- private final StringBuilder sb = new StringBuilder();
-
- public AlphabetBuilder() {}
-
- public String chars() {
- return sb.toString();
- }
-
- public AlphabetBuilder withRange(char from, char to) {
- for (char c = from; c <= to; c++) {
- sb.append(c);
- }
- return this;
- }
-
- public AlphabetBuilder withChars(String str) {
- sb.append(str);
- return this;
- }
-
- public AlphabetBuilder withChars(Character... chars) {
- for (char c : chars) {
- sb.append(c);
- }
- return this;
- }
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Asn1AnonymousType.java b/src/org/uic/barcode/asn1/datatypes/Asn1AnonymousType.java
deleted file mode 100644
index b1b0499..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Asn1AnonymousType.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Target;
-/**
- * This annotation indicates that the class is not present in the original ASN.1 declaration.
- * This happens when SEQUENCE members have restrictions (ranges, alphabets etc).
- *
- * This annotation plays no role in the UPER encoding.
- *
- */
-@Target({ElementType.TYPE})
-public @interface Asn1AnonymousType {
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Asn1BigInteger.java b/src/org/uic/barcode/asn1/datatypes/Asn1BigInteger.java
deleted file mode 100644
index 4adca22..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Asn1BigInteger.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.math.BigInteger;
-
-//outdated: use BigInteger
-public class Asn1BigInteger {
-
- private final BigInteger value;
-
- public Asn1BigInteger(final BigInteger value) {
- this.value = value;
- }
-
- @Override public String toString() {
- return "" + value;
- }
-
- public BigInteger value() { return value; }
-
- public Long longValue() {
- return value.longValue();
- }
-
- public Integer intValue() {
- return value.intValue();
- }
-
- public Asn1BigInteger(Long num) {
- this.value = BigInteger.valueOf(num);
- }
-
- public Asn1BigInteger(long num) {
- this.value = BigInteger.valueOf(num);
- }
-
- public Asn1BigInteger(Integer num) {
- this.value = BigInteger.valueOf(num);
- }
-
- public Asn1BigInteger(int num) {
- this.value = BigInteger.valueOf(num);
- }
-
- public static Long toLong(Asn1BigInteger object) {
- if (object == null) return null;
- return object.longValue();
- }
-
- public static Asn1BigInteger toAsn1(Long object) {
- if (object == null) return null;
- return new Asn1BigInteger(object);
- }
-
- public static Asn1BigInteger toAsn1(Integer object) {
- if (object == null) return null;
- return new Asn1BigInteger(object);
- }
-
- public Long toLong(){
- if (this.value != null) {
- return this.value.longValue();
- }
- return null;
- }
-
- public BigInteger toBigInteger(){
- return value;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Asn1Default.java b/src/org/uic/barcode/asn1/datatypes/Asn1Default.java
deleted file mode 100644
index bf5cfff..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Asn1Default.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target({ElementType.TYPE, ElementType.FIELD})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface Asn1Default {
- String value();
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Asn1Integer.java b/src/org/uic/barcode/asn1/datatypes/Asn1Integer.java
deleted file mode 100644
index e12f8ec..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Asn1Integer.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-
-
-//outdated: use BigInteger
-public class Asn1Integer {
-
- public long value;
-
- public Asn1Integer() {}
- public Asn1Integer(long value) {
- this.value = value;
- }
-
- public Long value() { return value; }
-
- @Override public String toString() {
- return "" + value;
- }
-
- public Long longObject () {
- return new Long(value());
- }
-
- public Asn1Integer(Long num) {
- this.value = num;
- }
-
-
- public Asn1Integer(Integer num) {
- this.value = num;
- }
-
- public Asn1Integer(int num) {
- this.value = num;
- }
-
- public static Long toLong(Asn1Integer object) {
- if (object == null) return null;
- return object.value();
- }
-
-
- public static Asn1Integer toAsn1(Long object) {
- if (object == null) return null;
- return new Asn1Integer(object);
- }
-
-
-
-
-
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Asn1Optional.java b/src/org/uic/barcode/asn1/datatypes/Asn1Optional.java
deleted file mode 100644
index 71946ec..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Asn1Optional.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/**
- * Indicates that the field is OPTIONAL in ASN.1. Implemented as null. Equivalent to @Nullable.
- *
- * Using Optional would require Manifests to capture generics (like in Gson).
- *
- */
-@Target({ElementType.FIELD})
-@Retention(RetentionPolicy.RUNTIME)
-@Documented
-public @interface Asn1Optional {
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Asn1SequenceOf.java b/src/org/uic/barcode/asn1/datatypes/Asn1SequenceOf.java
deleted file mode 100644
index 4924b50..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Asn1SequenceOf.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.reflect.ParameterizedType;
-import java.util.*;
-
-import org.uic.barcode.logger.Logger;
-import org.uic.barcode.logger.LoggerFactory;
-
-
-/**
- * Class to represent ASN.1 construct "SEQUENCE OF".
- *
- * Extending classes should specify concrete types for T, generic collections can't be decoded (yet?).
- *
- * Usage example:
- *
- *
- * {@literal @}Sequence
- * public class Person {
- * {@literal @}IntRange(minValue=0, maxValue=100, hasExtensionMarker=true)
- * int age;
- * Children children;
- * }
- * public class Children extends {@code Asn1SequenceOf } {
- * public Children() { super(); }
- * public Children({@code Collection} coll) { super(coll); }
- * }
- *
- *
- *
- *
- * Actually, UPER decoder and encoder consider anything that extends {@code List} as a SEQUENCE OF.
- *
- *
- * @param type of elements contained.
- */
-public abstract class Asn1SequenceOf extends AbstractList {
- private final static Logger logger = LoggerFactory.getLogger("asnLogger");
-
- private final List bakingList;
-
- @Override public T get(int index) { return bakingList.get(index); }
- @Override public int size() { return bakingList.size(); }
- @Override public boolean add (T e){ return bakingList.add(e);}
-
- public Asn1SequenceOf() { this(new ArrayList()); }
- public Asn1SequenceOf(Collection coll) {
- logger.debug(String.format("Instantiating Sequence Of %s with %s",
- ((ParameterizedType)getClass().getGenericSuperclass()).getActualTypeArguments()[0],
- coll));
- bakingList = new ArrayList<>(coll);
- }
-
-
-
-
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
- Asn1SequenceOf> that = (Asn1SequenceOf>) o;
- return Objects.equals(bakingList, that.bakingList);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(super.hashCode(), bakingList);
- }
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Asn1String.java b/src/org/uic/barcode/asn1/datatypes/Asn1String.java
deleted file mode 100644
index fb80b92..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Asn1String.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-public class Asn1String {
-
- private String value;
-
- public Asn1String() { this(""); }
-
- public Asn1String(String value) {
- this.value = value;
- }
-
- @Override public String toString() { return value; }
-
- public String value() { return value; }
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Asn1VarSizeBitstring.java b/src/org/uic/barcode/asn1/datatypes/Asn1VarSizeBitstring.java
deleted file mode 100644
index c07f7f0..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Asn1VarSizeBitstring.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.util.AbstractList;
-import java.util.BitSet;
-import java.util.Collection;
-import java.util.Objects;
-
-/**
- * Convenience class for Bitstrings of variable size.
- * For UPER, {@code List} works just as well.
- */
-public class Asn1VarSizeBitstring extends AbstractList {
-
- private final BitSet backing;
-
- @Override public Boolean get(int index) {
- return backing.get(index);
- }
-
- @Override public int size() {
- return backing.length();
- }
-
- public Asn1VarSizeBitstring(Collection coll) {
- backing = new BitSet();
- int bitIndex = 0;
- for (Boolean b : coll) {
- backing.set(bitIndex, b);
- bitIndex++;
- }
- }
-
- public Asn1VarSizeBitstring(BitSet bitset) {
- backing = (BitSet) bitset.clone();
- }
-
- protected void setBit(int bitIndex, boolean value) {
- backing.set(bitIndex, value);
- }
-
- public boolean getBit(int bitIndex) {
- return backing.get(bitIndex);
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (o == null || getClass() != o.getClass()) return false;
- if (!super.equals(o)) return false;
- Asn1VarSizeBitstring booleen = (Asn1VarSizeBitstring) o;
- return Objects.equals(backing, booleen.backing);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(super.hashCode(), backing);
- }
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Bitstring.java b/src/org/uic/barcode/asn1/datatypes/Bitstring.java
deleted file mode 100644
index 1543f64..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Bitstring.java
+++ /dev/null
@@ -1,16 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-/** This annotation is used for bitstrings.
- * In UPER, a SEQUENCE OF Booleans would look exactly as bitstring, so this annotation can be
- * omitted for {@code List}.
- */
-@Target({ElementType.TYPE})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface Bitstring {
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/CharacterRestriction.java b/src/org/uic/barcode/asn1/datatypes/CharacterRestriction.java
deleted file mode 100644
index e74c436..0000000
--- a/src/org/uic/barcode/asn1/datatypes/CharacterRestriction.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-public enum CharacterRestriction {
- NumericString,
- PrintableString,
- VisibleString,
- ISO646String,
- IA5String,
- BMPString,
- UniversalString,
- UTF8String,
- ObjectIdentifier;
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Choice.java b/src/org/uic/barcode/asn1/datatypes/Choice.java
deleted file mode 100644
index 01a0034..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Choice.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target({ElementType.TYPE})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface Choice {
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/DefaultAlphabet.java b/src/org/uic/barcode/asn1/datatypes/DefaultAlphabet.java
deleted file mode 100644
index 62d13f4..0000000
--- a/src/org/uic/barcode/asn1/datatypes/DefaultAlphabet.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-public class DefaultAlphabet extends Alphabet {
-
- public DefaultAlphabet() {
- super("");
- }
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/FieldOrder.java b/src/org/uic/barcode/asn1/datatypes/FieldOrder.java
deleted file mode 100644
index b8c378f..0000000
--- a/src/org/uic/barcode/asn1/datatypes/FieldOrder.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.FIELD)
-public @interface FieldOrder {
- int order() default -1;
-}
-
diff --git a/src/org/uic/barcode/asn1/datatypes/FixedSize.java b/src/org/uic/barcode/asn1/datatypes/FixedSize.java
deleted file mode 100644
index 4c17e60..0000000
--- a/src/org/uic/barcode/asn1/datatypes/FixedSize.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target({ElementType.TYPE, ElementType.FIELD})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface FixedSize {
- int value();
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/HasExtensionMarker.java b/src/org/uic/barcode/asn1/datatypes/HasExtensionMarker.java
deleted file mode 100644
index b8945fc..0000000
--- a/src/org/uic/barcode/asn1/datatypes/HasExtensionMarker.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target({ElementType.TYPE})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface HasExtensionMarker {
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/IntMinValue.java b/src/org/uic/barcode/asn1/datatypes/IntMinValue.java
deleted file mode 100644
index e045287..0000000
--- a/src/org/uic/barcode/asn1/datatypes/IntMinValue.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target({ElementType.TYPE, ElementType.FIELD})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface IntMinValue {
- long minValue();
- boolean hasExtensionMarker() default false;
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/IntRange.java b/src/org/uic/barcode/asn1/datatypes/IntRange.java
deleted file mode 100644
index 08fc1fb..0000000
--- a/src/org/uic/barcode/asn1/datatypes/IntRange.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target({ElementType.TYPE, ElementType.FIELD})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface IntRange {
- long minValue();
- long maxValue();
- boolean hasExtensionMarker() default false;
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/IsExtension.java b/src/org/uic/barcode/asn1/datatypes/IsExtension.java
deleted file mode 100644
index 8aacd32..0000000
--- a/src/org/uic/barcode/asn1/datatypes/IsExtension.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target({ElementType.FIELD})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface IsExtension {
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/NoAsn1Field.java b/src/org/uic/barcode/asn1/datatypes/NoAsn1Field.java
deleted file mode 100644
index 0fb7d2c..0000000
--- a/src/org/uic/barcode/asn1/datatypes/NoAsn1Field.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target({ElementType.TYPE, ElementType.FIELD})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface NoAsn1Field {}
\ No newline at end of file
diff --git a/src/org/uic/barcode/asn1/datatypes/Optional.java b/src/org/uic/barcode/asn1/datatypes/Optional.java
deleted file mode 100644
index 757ba29..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Optional.java
+++ /dev/null
@@ -1,96 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.util.NoSuchElementException;
-import java.util.Objects;
-
-/** Represents optional values.
- *
- * Should be replaced by java.util.Optional from Java 8, when project moves to Java 8.
- *
- * @param type of contained elements */
-public class Optional {
-
- private final T element;
- private final boolean isPresent;
-
- private Optional(T element, boolean isPresent) {
- this.element = element;
- this.isPresent = isPresent;
- }
-
- /** @return true if the Option contains a value */
- public boolean isPresent() {
- return isPresent;
- }
-
- /** @return the element if the option is not empty
- * @throws java.util.NoSuchElementException if the option is empty */
- public T get() {
- if (isPresent) {
- return element;
- } else {
- throw new NoSuchElementException("None.get");
- }
- }
-
- /** @return the value, if present, otherwise return {@code other}
- * @param other the value to be returned if there is no value present */
- public T orElse(T other) {
- return isPresent() ? get() : other;
- }
-
- /**
- * Indicates whether some other object is "equal to" this Optional. The
- * other object is considered equal if:
- *
- * - it is also an {@code Optional} and;
- *
- both instances have no value present or;
- *
- the present values are "equal to" each other via {@code equals()}.
- *
- *
- * @param obj an object to be tested for equality
- * @return {code true} if the other object is "equal to" this object
- * otherwise {@code false}
- */
- @Override
- public boolean equals(Object obj) {
- if (this == obj) {
- return true;
- }
-
- if (!(obj instanceof Optional)) {
- return false;
- }
-
- Optional> other = (Optional>) obj;
- return Objects.equals(element, other.element);
- }
-
- /**
- * Returns the hash code value of the present value, if any, or 0 (zero) if
- * no value is present.
- *
- * @return hash code value of the present value or 0 if no value is present
- */
- @Override
- public int hashCode() {
- return Objects.hashCode(element);
- }
-
- /** Returns an Option containing the value.
- *
- * @param the type of the value
- * @param element contained value
- * @return a new Option that contains the value */
- public static Optional of(final A element) {
- return new Optional(element, true);
- }
-
- /** Returns an empty option.
- *
- * @param
- * @return an empty Option */
- public static Optional empty() {
- return new Optional(null, false);
- }
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/RestrictedString.java b/src/org/uic/barcode/asn1/datatypes/RestrictedString.java
deleted file mode 100644
index 7539aed..0000000
--- a/src/org/uic/barcode/asn1/datatypes/RestrictedString.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target({ElementType.TYPE, ElementType.FIELD})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface RestrictedString {
- CharacterRestriction value();
- Class extends Alphabet> alphabet() default DefaultAlphabet.class;
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/Sequence.java b/src/org/uic/barcode/asn1/datatypes/Sequence.java
deleted file mode 100644
index 31163d7..0000000
--- a/src/org/uic/barcode/asn1/datatypes/Sequence.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-
-//@Target({ElementType.ANNOTATION_TYPE})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface Sequence {
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/SizeRange.java b/src/org/uic/barcode/asn1/datatypes/SizeRange.java
deleted file mode 100644
index 7005d47..0000000
--- a/src/org/uic/barcode/asn1/datatypes/SizeRange.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package org.uic.barcode.asn1.datatypes;
-
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Target({ElementType.TYPE, ElementType.FIELD})
-@Retention(RetentionPolicy.RUNTIME)
-public @interface SizeRange {
- int minValue();
- int maxValue();
- boolean hasExtensionMarker() default false;
-}
diff --git a/src/org/uic/barcode/asn1/datatypes/package-info.java b/src/org/uic/barcode/asn1/datatypes/package-info.java
deleted file mode 100644
index aaa134e..0000000
--- a/src/org/uic/barcode/asn1/datatypes/package-info.java
+++ /dev/null
@@ -1,7 +0,0 @@
-/** Annotations to create Java classes that correspond to ASN.1 specifications.
- *
- * Some annotations (e.g. {@link SizeRange}, {@link FixedSize}, {@link IntRange},{@link IntMaxValue}
- * {@link RestrictedString}) are Type-only annotations and sometime require creating extra classes,
- * they can be extended to work as Field annotations too, but this will require modifications to the
- * Encoder. */
-package org.uic.barcode.asn1.datatypes;
diff --git a/src/org/uic/barcode/asn1/datatypesimpl/OctetString.java b/src/org/uic/barcode/asn1/datatypesimpl/OctetString.java
deleted file mode 100644
index 69346a2..0000000
--- a/src/org/uic/barcode/asn1/datatypesimpl/OctetString.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package org.uic.barcode.asn1.datatypesimpl;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-/*
- * Sequence of Asn1Integer for restricted integers
- *
- *
- */
-public class OctetString extends Asn1SequenceOf {
- public OctetString() { super(); }
- public OctetString(Collection coll) { super(coll); }
-
- public OctetString(List numbers) {
- super();
- this.addAll(numbers);
- }
-
- public static OctetString getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new OctetString(numList);
- }
-
-
- public byte[] toByteArray () {
-
- byte[] bytes= new byte[this.size()];
-
- for (int i = 0; i < this.size(); i++){
- bytes[i] = this.get(i);
- }
-
- return bytes;
- }
-
- public OctetString(byte[] bytes){
- super();
- for (int i= 0;i < bytes.length; i++){
- this.add(bytes[i]);
- }
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfLong.java b/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfLong.java
deleted file mode 100644
index 32ae07f..0000000
--- a/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfLong.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package org.uic.barcode.asn1.datatypesimpl;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-/*
- * Sequence of Asn1Integer for restricted integers
- *
- *
- */
-public class SequenceOfLong extends Asn1SequenceOf {
- public SequenceOfLong() { super(); }
- public SequenceOfLong(Collection coll) { super(coll); }
-
- public SequenceOfLong(List numbers) {
- super();
- this.addAll(numbers);
- }
-
- public static SequenceOfLong getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfLong(numList);
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfStringIA5.java b/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfStringIA5.java
deleted file mode 100644
index 1abcdcb..0000000
--- a/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfStringIA5.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.uic.barcode.asn1.datatypesimpl;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.CharacterRestriction;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-
-@RestrictedString(CharacterRestriction.IA5String)
-public class SequenceOfStringIA5 extends Asn1SequenceOf {
- public SequenceOfStringIA5() { super(); }
- public SequenceOfStringIA5(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfStringUTF8.java b/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfStringUTF8.java
deleted file mode 100644
index 4e98cdd..0000000
--- a/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfStringUTF8.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.uic.barcode.asn1.datatypesimpl;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.CharacterRestriction;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-
-@RestrictedString(CharacterRestriction.UTF8String)
-public class SequenceOfStringUTF8 extends Asn1SequenceOf {
- public SequenceOfStringUTF8() { super(); }
- public SequenceOfStringUTF8(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfUnrestrictedLong.java b/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfUnrestrictedLong.java
deleted file mode 100644
index 6af7352..0000000
--- a/src/org/uic/barcode/asn1/datatypesimpl/SequenceOfUnrestrictedLong.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package org.uic.barcode.asn1.datatypesimpl;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-/*
- * Sequence of Asn1Integer for restricted integers
- *
- */
-public class SequenceOfUnrestrictedLong extends Asn1SequenceOf {
- public SequenceOfUnrestrictedLong() { super(); }
- public SequenceOfUnrestrictedLong(Collection coll) { super(coll); }
-
-
- public SequenceOfUnrestrictedLong(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
-
- public static SequenceOfUnrestrictedLong getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfUnrestrictedLong(numList);
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/TestSequenceOfLong.java b/src/org/uic/barcode/asn1/test/TestSequenceOfLong.java
deleted file mode 100644
index 61af5fa..0000000
--- a/src/org/uic/barcode/asn1/test/TestSequenceOfLong.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class TestSequenceOfLong extends Asn1SequenceOf {
- public TestSequenceOfLong() { super(); }
- public TestSequenceOfLong(Collection coll) { super(coll); }
-
-
- public TestSequenceOfLong(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static TestSequenceOfLong getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new TestSequenceOfLong(numList);
- }
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeBooleanTest.java b/src/org/uic/barcode/asn1/test/UperEncodeBooleanTest.java
deleted file mode 100644
index b5e73b0..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeBooleanTest.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeBooleanTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value BOOLEAN OPTIONAL,
-}
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @Asn1Optional() Boolean value;
-
- public TestRecord() {
- this(false);
- }
-
- public TestRecord(Boolean value) {
- this.value = value;
- }
- }
-
-
- @Test public void testTrue() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord(new Boolean(true));
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C0",hex);
- }
-
- @Test public void testFalse() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord(new Boolean(false));
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("80",hex);
- }
-
- @Test public void testDecodeTrue() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord(new Boolean(true));
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C0",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value,record.value);
-
- }
-
- @Test public void testDecodeFalse() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord(new Boolean(false));
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("80",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value,record.value);
- }
-
-
-
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeChoiceExtensionTest.java b/src/org/uic/barcode/asn1/test/UperEncodeChoiceExtensionTest.java
deleted file mode 100644
index 3833ff2..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeChoiceExtensionTest.java
+++ /dev/null
@@ -1,92 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.CharacterRestriction;
-import org.uic.barcode.asn1.datatypes.Choice;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-import org.uic.barcode.asn1.datatypes.IsExtension;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeChoiceExtensionTest {
-
- /** Example for extended sequence
- TestRecord ::= [APPLICATION 0] CHOICE {
- value1 IA5String
- ,...
- ,value2 IA5String
- }
-
- value TestRecord ::= value2: "extension"
- */
- @Choice
- @HasExtensionMarker
- public static class TestRecordExtended {
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- String value1 = null;
-
- @FieldOrder(order = 1)
- @IsExtension
- @RestrictedString(CharacterRestriction.IA5String)
- String value2 = "extension";
-
- public TestRecordExtended() { }
- }
-
- /** Example for extended sequence
- TestRecord ::= [APPLICATION 0] CHOICE {
- value1 IA5String,
- ,...
- }
- */
- @Choice
- @HasExtensionMarker
- public static class TestRecord {
-
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional() String value1 = "regular";
-
- public TestRecord() { }
- }
-
-
- @Test public void testEncode() throws IllegalArgumentException, IllegalAccessException {
- TestRecordExtended record = new TestRecordExtended();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("800909CBE3A65DDCF4EFDC",hex);
- }
-
- @Test public void testDecodeExtended() throws IllegalArgumentException, IllegalAccessException {
- TestRecordExtended record = new TestRecordExtended();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("800909CBE3A65DDCF4EFDC",hex);
- TestRecordExtended result = UperEncoder.decode(encoded, TestRecordExtended.class);
- assertEquals(result.value2,record.value2);
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
- TestRecordExtended record = new TestRecordExtended();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("800909CBE3A65DDCF4EFDC",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assert(result == null);
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeChoiceTest.java b/src/org/uic/barcode/asn1/test/UperEncodeChoiceTest.java
deleted file mode 100644
index 69b92d1..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeChoiceTest.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.CharacterRestriction;
-import org.uic.barcode.asn1.datatypes.Choice;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeChoiceTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value EnumType DEFAULT value2,
- }
-
- EnumType ::= ENUMERATED {
- value1 (0),
- value2 (1)
- ,...
- }
-
- */
- @Choice
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.UTF8String)
- String valueUtf8;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- String valueIA5;
-
- public TestRecord() {
- }
-
- public TestRecord(String utf8, String ia5) {
- this.valueUtf8 = utf8;
- this.valueIA5 = ia5;
- }
- }
-
- @Test public void testEncode() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord(null, "Meier");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("82CDCBA72F20",hex);
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord(null, "Meier");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("82CDCBA72F20",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(null,record.valueUtf8);
- assertEquals(result.valueIA5,record.valueIA5);
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeEnumExtensionTest.java b/src/org/uic/barcode/asn1/test/UperEncodeEnumExtensionTest.java
deleted file mode 100644
index a2ecbe1..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeEnumExtensionTest.java
+++ /dev/null
@@ -1,146 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-import org.uic.barcode.asn1.datatypes.IsExtension;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeEnumExtensionTest {
-
- /*** Example from the Standard on UPER.
-
- World-Schema DEFINITIONS AUTOMATIC TAGS ::=
- BEGIN
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value EnumType DEFAULT value2
- }
-
- EnumType ::= ENUMERATED {
- value1 (0),
- value2 (1)
- ,...
- }
- END
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @Asn1Optional EnumType value = EnumType.value1;
- public TestRecord() {}
- public void setValue(EnumType value) {
- this.value = value;
- }
- }
-
-
- /*** Example from the Standard on UPER.
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value EnumType DEFAULT value2,
- }
-
- EnumType ::= ENUMERATED {
- value1 (0),
- value2 (1)
- ,...
- value3 (2)
- }
- */
- @Sequence
- public static class TestRecordExtended {
-
- @Asn1Optional EnumTypeExtended value = EnumTypeExtended.value3;
-
- public TestRecordExtended() {}
-
- public void setValue(EnumTypeExtended value) {
- this.value = value;
- }
-
-
- }
-
- @HasExtensionMarker
- public enum EnumType {
- value1("value1"),
- value2("value2");
-
- public String text;
-
- EnumType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
- }
-
-
- @HasExtensionMarker
- public enum EnumTypeExtended {
- value1("value1"),
- value2("value2"),
-
- @IsExtension
- value3("value3");
-
- public String text;
-
- EnumTypeExtended(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
- }
-
-
-
- @Test public void testExtension() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecordExtended record = new TestRecordExtended();
- record.setValue(EnumTypeExtended.value3);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("Enum value3: data hex: %s", hex));
- assertEquals("C000", hex);
- }
-
- @Test public void testExtensionDecoding() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecordExtended record = new TestRecordExtended();
- record.setValue(EnumTypeExtended.value3);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("Enum value3: data hex: %s", hex));
- assertEquals("C000", hex);
-
- TestRecordExtended result = UperEncoder.decode(encoded, TestRecordExtended.class);
- assertEquals(result.value,EnumTypeExtended.value3);
- }
-
- @Test public void testUnknownExtensionDecoding() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecordExtended record = new TestRecordExtended();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("Enum value3: data hex: %s", hex));
- assertEquals("C000", hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assert(result.value == null);
- }
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeEnumTest.java b/src/org/uic/barcode/asn1/test/UperEncodeEnumTest.java
deleted file mode 100644
index d1d2d82..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeEnumTest.java
+++ /dev/null
@@ -1,126 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeEnumTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value EnumType DEFAULT value2,
- }
-
- EnumType ::= ENUMERATED {
- value1 (0),
- value2 (1)
- ,...
- }
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @Asn1Default(value="value2")
- @Asn1Optional EnumType value = EnumType.value2;
-
-
- public TestRecord() {}
-
- public TestRecord(EnumType value) {
- this.value = value;
- }
- }
-
- public enum EnumType {
- value1("value1"),
- value2("value2"),
- value3("value3"),
- value4("value4"),
- value5("value5"),
- value6("value6"),
- value7("value7"),
- value8("value8"),
- value9("value9"),
- value10("value10"),
- value11("value11"),
- value12("value12"),
- value13("value13"),
- value14("value14"),
- value15("value15"),
- value16("value16"),
- value17("value17"),
- value18("value18"),
- value19("value19"),
- value20("value20"),
- value21("value21"),
- value22("value22");
-
-
- public String text;
-
- EnumType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
- }
-
-
-
- @Test public void testNonDefaultValue() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(EnumType.value4);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("Enum value4: data hex: %s", hex));
- assertEquals("8C", hex);
- }
-
- @Test public void testDefaultValue() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(EnumType.value2);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("Enum value2: data hex: %s", hex));
- assertEquals("00", UperEncoder.hexStringFromBytes(encoded));
- }
-
- @Test public void testDecodeNonDefaultValue() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(EnumType.value4);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("Enum value4: data hex: %s", hex));
- assertEquals("8C", hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value,EnumType.value4);
- }
-
- @Test public void testDecodeDefaultValue() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(EnumType.value2);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("Enum value2: data hex: %s", hex));
- assertEquals("00", UperEncoder.hexStringFromBytes(encoded));
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value,EnumType.value2);
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeExtensionFieldOrderTest.java b/src/org/uic/barcode/asn1/test/UperEncodeExtensionFieldOrderTest.java
deleted file mode 100644
index ff97c27..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeExtensionFieldOrderTest.java
+++ /dev/null
@@ -1,100 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-import org.uic.barcode.asn1.datatypes.IsExtension;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeExtensionFieldOrderTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- number1 INTEGER,
- ...,
- number2 INTEGER,
- number3 INTEGER
- }
-
- value TestRecord ::= {
- value1 12345678909999899,
- value2 5555555555,
- value3 32001
- }
-
-Encoding to the file 'data.uper' using PER UNALIGNED encoding rule...
-TestRecord SEQUENCE [root fieldcount (not encoded) = 1]
- value1 INTEGER [length = 7.0]
- 12345678909999899
- value2 INTEGER [length = 5.0]
- 5555555555
- value3 INTEGER [length = 2.0]
- 32001
-Total encoded length = 20.2
-Encoded successfully in 21 bytes:
-8395EE2A 2EF8858D 81C18140 52C8C338 C0C09F40 40
-
-
-
- */
- @Sequence
- @HasExtensionMarker
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- Asn1BigInteger value1;
-
- @FieldOrder(order = 1)
- @IsExtension
- Asn1BigInteger value2;
-
- @FieldOrder(order = 2)
- @IsExtension
- Asn1BigInteger value3;
-
- public TestRecord() {
- value1 = new Asn1BigInteger(12345678909999899L);
- value2 = new Asn1BigInteger(5555555555L);
- value3 = new Asn1BigInteger(32001L);
- }
-
-
- }
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("8395EE2A2EF8858D81C1814052C8C338C0C09F4040",hex);
-
-
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("8395EE2A2EF8858D81C1814052C8C338C0C09F4040",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1.longValue(),record.value1.longValue());
- assertEquals(result.value2.longValue(),record.value2.longValue());
- assertEquals(result.value3.longValue(),record.value3.longValue());
-
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeFieldOrderTest.java b/src/org/uic/barcode/asn1/test/UperEncodeFieldOrderTest.java
deleted file mode 100644
index 5a23f24..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeFieldOrderTest.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeFieldOrderTest {
-
- /**
- * Example from the Standard on UPER.
-
- World-Schema DEFINITIONS AUTOMATIC TAGS ::=
- BEGIN
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- testString1 UTF8String OPTIONAL,
- testString2 IA5String OPTIONAL
- }
- END
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional() String string2;
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional() String string1;
-
-
- public TestRecord() {
- }
-
- public TestRecord(String utf8, String ia5) {
- this.string1 = utf8;
- this.string2 = ia5;
- }
- }
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord("String1", "String2");
- byte[] encoded = UperEncoder.encode(record);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.string1,"String1");
- assertEquals(result.string2,"String2");
- }
-
-
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeIntegerConstrainedTest.java b/src/org/uic/barcode/asn1/test/UperEncodeIntegerConstrainedTest.java
deleted file mode 100644
index 575597f..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeIntegerConstrainedTest.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.IntRange;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeIntegerConstrainedTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- number1 INTEGER (1..999),
- number2 INTEGER (0..999),
- number3 INTEGER (63..999)
- }
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1, maxValue=999)
- public Long value1;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=0, maxValue=999)
- public Long value2;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=63, maxValue=999)
- public Long value3;
-
-
- public TestRecord() {
- this(new Long(63L));
- }
-
- public TestRecord(Long num) {
- value1 = num;
- value2 = num;
- value3 = num;
- }
- }
-
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(63L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("0F83F000",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1.longValue(),record.value1.longValue());
- assertEquals(result.value2.longValue(),record.value2.longValue());
- assertEquals(result.value3.longValue(),record.value3.longValue());
-
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeIntegerExtensionTest.java b/src/org/uic/barcode/asn1/test/UperEncodeIntegerExtensionTest.java
deleted file mode 100644
index d0acd20..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeIntegerExtensionTest.java
+++ /dev/null
@@ -1,89 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-import org.uic.barcode.asn1.datatypes.IsExtension;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeIntegerExtensionTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- number1 INTEGER,
- ...,
- number2 INTEGER,
- number3 INTEGER
- }
-
- value TestRecord ::= {
- value1 12345678909999899,
- value2 5555555555,
- value3 32001
- }
-
-Encoding to the file 'data.uper' using PER UNALIGNED encoding rule...
-TestRecord SEQUENCE [root fieldcount (not encoded) = 1]
- value1 INTEGER [length = 7.0]
- 12345678909999899
- value2 INTEGER [length = 5.0]
- 5555555555
- value3 INTEGER [length = 2.0]
- 32001
-Total encoded length = 20.2
-Encoded successfully in 21 bytes:
-8395EE2A 2EF8858D 81C18140 52C8C338 C0C09F40 40
-
-
-
- */
- @Sequence
- @HasExtensionMarker
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- Asn1BigInteger value1;
-
- @FieldOrder(order = 2)
- @IsExtension
- Asn1BigInteger value3;
-
- @FieldOrder(order = 1)
- @IsExtension
- Asn1BigInteger value2;
-
-
- public TestRecord() {
- value1 = new Asn1BigInteger(12345678909999899L);
- value2 = new Asn1BigInteger(5555555555L);
- value3 = new Asn1BigInteger(32001L);
- }
-
-
- }
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- byte[] encoded = UperEncoder.encode(record);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1.longValue(),record.value1.longValue());
- assertEquals(result.value2.longValue(),record.value2.longValue());
- assertEquals(result.value3.longValue(),record.value3.longValue());
-
-
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeIntegerSmallTest.java b/src/org/uic/barcode/asn1/test/UperEncodeIntegerSmallTest.java
deleted file mode 100644
index 5ada54d..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeIntegerSmallTest.java
+++ /dev/null
@@ -1,130 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeIntegerSmallTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- number1 INTEGER,
- number2 INTEGER
- }
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- public Long value1;
-
- @FieldOrder(order = 1)
- public Integer value2;
-
- public TestRecord() {
- this(new Long(12345678909999899L));
- }
-
- public TestRecord(Long num) {
- value1 = num;
- value2 = Integer.valueOf(num.intValue());
- }
- }
-
-
-
- @Test public void test1() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(1L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("01010101",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1.longValue(),record.value1.longValue());
- assertEquals(result.value2.longValue(),record.value2.longValue());
-
- }
-
- @Test public void test16() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(16L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("01100110",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1.longValue(),record.value1.longValue());
- assertEquals(result.value2.longValue(),record.value2.longValue());
-
- }
-
-
- @Test public void test63() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(63L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("013F013F",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1.longValue(),record.value1.longValue());
- assertEquals(result.value2.longValue(),record.value2.longValue());
-
- }
-
- @Test public void test64() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(64L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("01400140",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1.longValue(),record.value1.longValue());
- assertEquals(result.value2.longValue(),record.value2.longValue());
-
- }
-
- @Test public void test127() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(127L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("017F017F",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1.longValue(),record.value1.longValue());
- assertEquals(result.value2.longValue(),record.value2.longValue());
-
- }
-
- @Test public void test128() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(128L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("020080020080",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1.longValue(),record.value1.longValue());
- assertEquals(result.value2.longValue(),record.value2.longValue());
-
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeIntegerTest.java b/src/org/uic/barcode/asn1/test/UperEncodeIntegerTest.java
deleted file mode 100644
index d57fd00..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeIntegerTest.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeIntegerTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- number INTEGER,
- }
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- Asn1BigInteger value;
-
- public TestRecord() {
- this(new Long(12345678909999899L));
- }
-
- public TestRecord(Long num) {
- value = new Asn1BigInteger(num);
- }
- }
-
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(12345678909999899L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("072BDC545DF10B1B",hex);
-
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(12345678909999899L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("072BDC545DF10B1B",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value.longValue(),record.value.longValue());
-
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeObjectIdentifierTest.java b/src/org/uic/barcode/asn1/test/UperEncodeObjectIdentifierTest.java
deleted file mode 100644
index edf3348..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeObjectIdentifierTest.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-import java.util.logging.Level;
-
-import org.junit.jupiter.api.Test;
-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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-class UperEncodeObjectIdentifierTest {
-
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value1 OBJECT IDENTIFIER,
- value2 OBJECT IDENTIFIER,
- value3 OBJECT IDENTIFIER
- }
-
- value TestRecord ::= {
- value1 2.16.840.1.101.3.4.3.1,
- value2 2.16.840.1.101.3.4.3.2,
- value3 1.2.840.10045.3.1.7
- }
-
- */
-
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.ObjectIdentifier)
- String value1 = "2.16.840.1.101.3.4.3.1"; //DSA SHA224
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.ObjectIdentifier)
- String value2 = "2.16.840.1.101.3.4.3.2"; //DSA SHA248
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.ObjectIdentifier)
- String value3 = "1.2.840.10045.3.1.7"; //ECC
-
- public TestRecord() {}
-
- }
-
- @Test
- public void testEncode() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("0960864801650304030109608648016503040302082A8648CE3D030107",hex);
- }
-
- @Test
- public void testDecode() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("0960864801650304030109608648016503040302082A8648CE3D030107",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1,record.value1);
- assertEquals(result.value2,record.value2);
- assertEquals(result.value3,record.value3);
- }
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeOctetStringTest.java b/src/org/uic/barcode/asn1/test/UperEncodeOctetStringTest.java
deleted file mode 100644
index af2a42e..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeOctetStringTest.java
+++ /dev/null
@@ -1,80 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.datatypesimpl.OctetString;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeOctetStringTest {
-
- /**
- * Example from the Standard on UPER.
-
- World-Schema DEFINITIONS AUTOMATIC TAGS ::=
- BEGIN
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value OCTET STRING
- }
- END
-
- value TestRecord ::= { value '83DA'H }
-
- Encoding to the file 'data.uper' using PER UNALIGNED encoding rule...
- TestRecord SEQUENCE [fieldcount (not encoded) = 1]
- value OCTET STRING [length = 2.0]
- 0x83da
- Total encoded length = 3.0
- Encoded successfully in 3 bytes:
- 0283DA
-
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- OctetString value;
-
- public TestRecord() {
- value = new OctetString();
- value.add(hexToByte("83"));
- value.add(hexToByte("DA"));
- }
- }
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("0283DA",hex);
-
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("0283DA",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value,record.value);
-
- }
-
- public static byte hexToByte(String s){
- return (byte) ((Character.digit(s.charAt(0), 16) << 4)
- + Character.digit(s.charAt(1), 16));
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeOptionalSequenceExtensionTest.java b/src/org/uic/barcode/asn1/test/UperEncodeOptionalSequenceExtensionTest.java
deleted file mode 100644
index 55e6026..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeOptionalSequenceExtensionTest.java
+++ /dev/null
@@ -1,118 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-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.IsExtension;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeOptionalSequenceExtensionTest {
-
- /** Example for extended sequence including extension
- World-Schema DEFINITIONS AUTOMATIC TAGS ::=
- BEGIN
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value1 IA5String,
- ...,
- value2 IA5String OPTIONAL
- }
- END
- */
- @Sequence
- @HasExtensionMarker
- public static class TestRecordExtended {
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- String value1;
-
- @FieldOrder(order = 1)
- @IsExtension
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional() String value2;
-
- public TestRecordExtended() { }
-
- public void setValue1(String value1) {
- this.value1 = value1;
- }
-
- public void setValue2(String value2) {
- this.value2 = value2;
- }
-
-
-
- }
-
- /** Example for extended sequence
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value1 IA5String,
- ,...
- }
- */
- @Sequence
- @HasExtensionMarker
- public static class TestRecord {
-
- @RestrictedString(CharacterRestriction.IA5String)
- String value1 = "regular";
- public TestRecord() { }
- }
-
-
- @Test public void testEncode() throws IllegalArgumentException, IllegalAccessException {
- TestRecordExtended record = new TestRecordExtended();
- record.setValue1("regular");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("03F2CB9FAECC3C80",hex);
- }
-
- @Test public void testEncodeWithoutOptionalElement() throws IllegalArgumentException, IllegalAccessException {
- TestRecordExtended record = new TestRecordExtended();
- record.setValue1("regular");
- record.setValue2("extension");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("83F2CB9FAECC3C80424272F8E997773D3BF700",hex);
- }
-
- @Test public void testDecodeExtended() throws IllegalArgumentException, IllegalAccessException {
- TestRecordExtended record = new TestRecordExtended();
- record.setValue1("regular");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("03F2CB9FAECC3C80",hex);
- TestRecordExtended result = UperEncoder.decode(encoded, TestRecordExtended.class);
- assertEquals(result.value1,record.value1);
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
- TestRecordExtended record = new TestRecordExtended();
- record.setValue1("regular");
- record.setValue2("extension");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("83F2CB9FAECC3C80424272F8E997773D3BF700",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1,record.value1);
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeRestrictedIntegerTest.java b/src/org/uic/barcode/asn1/test/UperEncodeRestrictedIntegerTest.java
deleted file mode 100644
index bc82621..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeRestrictedIntegerTest.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.IntRange;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeRestrictedIntegerTest {
-
- /**
- * Example from the Standard on UPER.
-
-TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- number INTEGER(32000..63000),
-}
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @IntRange(maxValue = 63000, minValue = 33000)
- Long value;
-
- public TestRecord() {
- this(new Long(33005));
- }
-
- public TestRecord(Long num) {
- value = num;
- }
- }
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(33005L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("000A",hex);
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord(33005L);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("000A",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value,record.value);
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeSequenceExtensionTest.java b/src/org/uic/barcode/asn1/test/UperEncodeSequenceExtensionTest.java
deleted file mode 100644
index 29d203b..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeSequenceExtensionTest.java
+++ /dev/null
@@ -1,93 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-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.IsExtension;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeSequenceExtensionTest {
-
- /** Example for extended sequence including extension
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value1 IA5String,
- ,...
- value2 IA5String
- }
- */
- @Sequence
- @HasExtensionMarker
- public static class TestRecordExtended {
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional() String value1 = "regular";
-
- @FieldOrder(order = 1)
- @IsExtension
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional() String value2 = "extension";
-
-
- public TestRecordExtended() { }
- }
-
- /** Example for extended sequence
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- value1 IA5String,
- ,...
- }
- */
- @Sequence
- @HasExtensionMarker
- public static class TestRecord {
-
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional() String value1 = "regular";
-
- public TestRecord() { }
- }
-
-
- @Test public void testEncode() throws IllegalArgumentException, IllegalAccessException {
- TestRecordExtended record = new TestRecordExtended();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C1F965CFD7661E402121397C74CBBB9E9DFB80",hex);
- }
-
- @Test public void testDecodeExtended() throws IllegalArgumentException, IllegalAccessException {
- TestRecordExtended record = new TestRecordExtended();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C1F965CFD7661E402121397C74CBBB9E9DFB80",hex);
- TestRecordExtended result = UperEncoder.decode(encoded, TestRecordExtended.class);
- assertEquals(result.value1,record.value1);
- assertEquals(result.value2,record.value2);
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
- TestRecordExtended record = new TestRecordExtended();
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C1F965CFD7661E402121397C74CBBB9E9DFB80",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.value1,record.value1);
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfIntegerTest.java b/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfIntegerTest.java
deleted file mode 100644
index 9194dca..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfIntegerTest.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfUnrestrictedLong;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeSequenceOfIntegerTest {
-
- /**
- * Example from the Standard on UPER.
-
-TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- number INTEGER,
-}
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- SequenceOfUnrestrictedLong numbers;
-
- public TestRecord() {
- }
-
- public TestRecord(List nums) {
- numbers = new SequenceOfUnrestrictedLong(nums);
- }
- }
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- ArrayList nums = new ArrayList();
- nums.add(new Long(12345678909999899L));
- nums.add(new Long(12345678909999899L));
- TestRecord record = new TestRecord(nums);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", UperEncoder.hexStringFromBytes(encoded)));
- assertEquals("02072BDC545DF10B1B072BDC545DF10B1B",hex);
-
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
-
- ArrayList nums = new ArrayList();
- nums.add(new Long(12345678909999899L));
- nums.add(new Long(12345678909999899L));
- TestRecord record = new TestRecord(nums);
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", UperEncoder.hexStringFromBytes(encoded)));
- assertEquals("02072BDC545DF10B1B072BDC545DF10B1B",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.numbers.get(0).longValue(),record.numbers.get(0).longValue());
- assertEquals(result.numbers.get(1).longValue(),record.numbers.get(1).longValue());
-
-
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfRestrictedIntegerTest.java b/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfRestrictedIntegerTest.java
deleted file mode 100644
index d1834d0..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfRestrictedIntegerTest.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.IntRange;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeSequenceOfRestrictedIntegerTest {
-
- /**
- * Example from the Standard on UPER.
-
-TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- numbers SEQUENCE OF INTEGER(0..9999999),
-}
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @IntRange(minValue=9500000,maxValue=99900001)
- TestSequenceOfLong numbers = null;;
-
- public TestRecord() {
- }
-
- public void addNumber(Long longValue){
- if (numbers == null) {
- numbers = new TestSequenceOfLong();
- }
- numbers.add(longValue);
- }
- }
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
-
- record.addNumber(new Long(9500001L));
- record.addNumber(new Long(9699999L));
-
-
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", UperEncoder.hexStringFromBytes(encoded)));
- assertEquals("02000000200C34FC",hex);
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
-
- record.addNumber(new Long(9500001L));
- record.addNumber(new Long(9699999L));
-
-
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", UperEncoder.hexStringFromBytes(encoded)));
- assertEquals("02000000200C34FC",hex);
-
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.numbers.get(0).longValue(),record.numbers.get(0).longValue());
- assertEquals(result.numbers.get(1).longValue(),record.numbers.get(1).longValue());
- }
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfStringListTest.java b/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfStringListTest.java
deleted file mode 100644
index 49350cc..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfStringListTest.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.CharacterRestriction;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeSequenceOfStringListTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- strings SEQUENCE OF IA5String,
- }
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- ArrayList strings = new ArrayList();
-
- public TestRecord() {
- }
-
- public List getStrings() {
- return strings;
- }
-
-
- }
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- record.getStrings().add("test1");
- record.getStrings().add("test2");
- record.getStrings().add("test3");
-
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", UperEncoder.hexStringFromBytes(encoded)));
- assertEquals("0305E9979F4620BD32F3E8C817A65E7D1980",hex);
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- record.getStrings().add("test1");
- record.getStrings().add("test2");
- record.getStrings().add("test3");
-
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", UperEncoder.hexStringFromBytes(encoded)));
- assertEquals("0305E9979F4620BD32F3E8C817A65E7D1980",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class, null);
- assert(result.getStrings().contains("test1"));
- assert(result.getStrings().contains("test2"));
- assert(result.getStrings().contains("test3"));
-
-
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfStringTest.java b/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfStringTest.java
deleted file mode 100644
index f8eccc6..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfStringTest.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.CharacterRestriction;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeSequenceOfStringTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- strings SEQUENCE OF IA5String,
- }
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- SequenceOfStringIA5 strings = new SequenceOfStringIA5();
-
- public TestRecord() {
- }
-
- public SequenceOfStringIA5 getStrings() {
- return strings;
- }
-
-
- }
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- record.getStrings().add("test1");
- record.getStrings().add("test2");
- record.getStrings().add("test3");
-
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", UperEncoder.hexStringFromBytes(encoded)));
- assertEquals("0305E9979F4620BD32F3E8C817A65E7D1980",hex);
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- record.getStrings().add("test1");
- record.getStrings().add("test2");
- record.getStrings().add("test3");
-
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", UperEncoder.hexStringFromBytes(encoded)));
- assertEquals("0305E9979F4620BD32F3E8C817A65E7D1980",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assert(result.getStrings().contains("test1"));
- assert(result.getStrings().contains("test2"));
- assert(result.getStrings().contains("test3"));
-
-
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfUtf8StringTest.java b/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfUtf8StringTest.java
deleted file mode 100644
index ab8fa2a..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeSequenceOfUtf8StringTest.java
+++ /dev/null
@@ -1,96 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringUTF8;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeSequenceOfUtf8StringTest {
-
- /**
- * Example from the Standard on UPER.
-
- World-Schema DEFINITIONS AUTOMATIC TAGS ::=
- BEGIN
- TestRecord ::= SEQUENCE {
- strings SEQUENCE OF UTF8String
- }
- END
-
- value TestRecord ::= {
- strings {"test1" , "test2" , "test3" }
- }
-
-
-Encoding to the file 'data.uper' using PER UNALIGNED encoding rule...
-TestRecord SEQUENCE [fieldcount (not encoded) = 1]
- strings SEQUENCE OF [count = 3]
- UTF8String [length = 5.0]
- 0x7465737431
- UTF8String [length = 5.0]
- 0x7465737432
- UTF8String [length = 5.0]
- 0x7465737433
-Total encoded length = 19.0
-Encoded successfully in 19 bytes:
-03057465 73743105 74657374 32057465 737433
-
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- SequenceOfStringUTF8 strings = new SequenceOfStringUTF8();
-
- public TestRecord() {
- }
-
- public SequenceOfStringUTF8 getStrings() {
- return strings;
- }
-
-
- }
-
-
- @Test public void test() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- record.getStrings().add("test1");
- record.getStrings().add("test2");
- record.getStrings().add("test3");
-
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", UperEncoder.hexStringFromBytes(encoded)));
- assertEquals("03057465737431057465737432057465737433",hex);
- }
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
-
- TestRecord record = new TestRecord();
- record.getStrings().add("test1");
- record.getStrings().add("test2");
- record.getStrings().add("test3");
-
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", UperEncoder.hexStringFromBytes(encoded)));
- assertEquals("03057465737431057465737432057465737433",hex);
-
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assert(result.getStrings().contains("test1"));
- assert(result.getStrings().contains("test2"));
- assert(result.getStrings().contains("test3"));
-
-
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeStringDefaultTest.java b/src/org/uic/barcode/asn1/test/UperEncodeStringDefaultTest.java
deleted file mode 100644
index d8e5029..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeStringDefaultTest.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeStringDefaultTest {
-
- /**
- * Example from the Standard on UPER.
-
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- testString1 UTF8String OPTIONAL,
- testString2 IA5String DEFAULT("TestString")
- }
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional() String valueUtf8;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Default(value="testString") String valueIA5;
-
- public TestRecord() {
- }
-
- public TestRecord(String utf8, String ia5) {
- this.valueUtf8 = utf8;
- this.valueIA5 = ia5;
- }
- }
-
-
- @Test public void testEncode() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("Müller", "testString");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("81D370EF1B1B195C80",hex);
- }
-
- @Test public void testEncodeDefault() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("Müller", "testString");
- byte[] encoded = UperEncoder.encode(record);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals(result.valueIA5,"testString");
- }
-
- @Test public void testEncodeDefault2() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("Müller", null);
- byte[] encoded = UperEncoder.encode(record);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals(result.valueIA5,"testString");
- }
-
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeStringLengthTest.java b/src/org/uic/barcode/asn1/test/UperEncodeStringLengthTest.java
deleted file mode 100644
index 9dd4389..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeStringLengthTest.java
+++ /dev/null
@@ -1,151 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeStringLengthTest {
-
- /**
- * Example from the Standard on UPER.
-
- World-Schema DEFINITIONS AUTOMATIC TAGS ::=
- BEGIN
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- testString1 UTF8String OPTIONAL
- }
- END
-
- value TestRecord ::= {
- testString1 "A"
- }
-
-
- */
-
-
-
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional() String valueUtf8;
-
- public TestRecord() {
- }
-
- public TestRecord(String utf8) {
- this.valueUtf8 = utf8;
- }
- }
-
-
- @Test public void testEncode1() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("A");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("80A080",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(record.valueUtf8,result.valueUtf8);
- }
-
-
- @Test public void testEncode63() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("123456789012345678901234567890123456789012345678901234567890123");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("9F9899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C9818991980",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(record.valueUtf8,result.valueUtf8);
- }
-
- @Test public void testEncode64() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("1234567890123456789012345678901234567890123456789012345678901234");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("A01899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A00",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(record.valueUtf8,result.valueUtf8);
- }
-
- @Test public void testEncode65() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("12345678901234567890123456789012345678901234567890123456789012345");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("A09899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A80",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(record.valueUtf8,result.valueUtf8);
- }
-
- @Test public void testEncode126() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("BF1899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C9818" +
- "99199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C98189919" +
- "9A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A" +
- "9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B00",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(record.valueUtf8,result.valueUtf8);
- }
-
-
- @Test public void testEncode127() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("BF9899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C9818" +
- "99199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C98189919" +
- "9A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A" +
- "9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B" +
- "80",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(record.valueUtf8,result.valueUtf8);
- }
-
- @Test public void testEncode128() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678");
-
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C0401899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C98" +
- "1899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899" +
- "199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A" +
- "1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B" +
- "1B9C00",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(record.valueUtf8,result.valueUtf8);
- }
-
- @Test public void testEncode129() throws IllegalArgumentException, IllegalAccessException {
- TestRecord record = new TestRecord("123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C0409899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C98" +
- "1899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899" +
- "199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A" +
- "1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B1B9C1C981899199A1A9B" +
- "1B9C1C80",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(record.valueUtf8,result.valueUtf8);
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/test/UperEncodeStringTest.java b/src/org/uic/barcode/asn1/test/UperEncodeStringTest.java
deleted file mode 100644
index 5f4edc8..0000000
--- a/src/org/uic/barcode/asn1/test/UperEncodeStringTest.java
+++ /dev/null
@@ -1,110 +0,0 @@
-package org.uic.barcode.asn1.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.util.logging.Level;
-
-import org.junit.Test;
-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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-
-public class UperEncodeStringTest {
-
- /**
- * Example from the Standard on UPER.
-
- World-Schema DEFINITIONS AUTOMATIC TAGS ::=
- BEGIN
- TestRecord ::= [APPLICATION 0] IMPLICIT SEQUENCE {
- testString1 UTF8String OPTIONAL,
- testString2 IA5String OPTIONAL
- }
- END
-
- */
- @Sequence
- public static class TestRecord {
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional() String valueUtf8;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional() String valueIA5;
-
- public TestRecord() {
- }
-
- public TestRecord(String utf8, String ia5) {
- this.valueUtf8 = utf8;
- this.valueIA5 = ia5;
- }
- }
-
-
- @Test public void testEncode() throws IllegalArgumentException, IllegalAccessException {
-
- //Teststring: AêñüC
- String original = new String("A" + "\u00ea" + "\u00f1" + "\u00fc" + "C");
-
- TestRecord record = new TestRecord(original, "Meier");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C21070EAB0EC70EF10C166E5D39790",hex);
-
- }
-
- @Test public void testEncodeUtf8() throws IllegalArgumentException, IllegalAccessException {
-
- //"ä½ å¥½å?—"
- String original = new String("\u00e4" + "\u00bd" + "\u00a0" + "\u00e5" + "\u00a5" + "\u00bd" + "\u00e5" + "\u0090" + "\u0097");
- TestRecord record = new TestRecord(original, "Meier");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C4B0E930AF70A830E970A970AF70E970A430A5C166E5D39790",hex);
- }
-
-
-
- @Test public void testDecode() throws IllegalArgumentException, IllegalAccessException {
-
- //Teststring: AêñüC
- String original = new String("A" + "\u00ea" + "\u00f1" + "\u00fc" + "C");
-
- TestRecord record = new TestRecord(original, "Meier");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C21070EAB0EC70EF10C166E5D39790",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.valueUtf8,record.valueUtf8);
- assertEquals(result.valueIA5,record.valueIA5);
- }
-
-
- @Test public void testDecodeUtf8() throws IllegalArgumentException, IllegalAccessException {
- //"ä½ å¥½å?—"
- String original = new String("\u00e4" + "\u00bd" + "\u00a0" + "\u00e5" + "\u00a5" + "\u00bd" + "\u00e5" + "\u0090" + "\u0097");
- TestRecord record = new TestRecord(original, "Meier");
- byte[] encoded = UperEncoder.encode(record);
- String hex = UperEncoder.hexStringFromBytes(encoded);
- UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex));
- assertEquals("C4B0E930AF70A830E970A970AF70E970A430A5C166E5D39790",hex);
- TestRecord result = UperEncoder.decode(encoded, TestRecord.class);
- assertEquals(result.valueUtf8,record.valueUtf8);
- assertEquals(result.valueIA5,record.valueIA5);
- }
-
-
-
-
-
-}
diff --git a/src/org/uic/barcode/asn1/uper/AnnotationStore.java b/src/org/uic/barcode/asn1/uper/AnnotationStore.java
deleted file mode 100644
index 6a23a75..0000000
--- a/src/org/uic/barcode/asn1/uper/AnnotationStore.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-import java.lang.annotation.Annotation;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Map;
-
-class AnnotationStore {
-
- private Map, Annotation> annotations = new HashMap<>();
-
- public AnnotationStore(Annotation[] classAnnot, Annotation[] fieldAnnot) {
- for (Annotation a : classAnnot) {
- annotations.put(a.annotationType(), a);
- }
- for (Annotation a : fieldAnnot) {
- annotations.put(a.annotationType(), a);
- }
- }
-
- public T getAnnotation(Class classOfT) {
- @SuppressWarnings("unchecked")
- // Annotations were added with value T for key classOfT.
- T result = (T) annotations.get(classOfT);
- return result;
- }
-
- public Collection getAnnotations() {
- return annotations.values();
- }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/asn1/uper/Asn1EncodingException.java b/src/org/uic/barcode/asn1/uper/Asn1EncodingException.java
deleted file mode 100644
index ae14cd0..0000000
--- a/src/org/uic/barcode/asn1/uper/Asn1EncodingException.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-public class Asn1EncodingException extends Exception {
-
- /**
- *
- */
- private static final long serialVersionUID = -8719453936776248228L;
-
- public Asn1EncodingException(String message) {
- super(message);
- }
-
- public Asn1EncodingException(String extraMessage, Asn1EncodingException cause) {
- super(extraMessage + cause.getMessage(), cause);
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/uper/BigIntCoder.java b/src/org/uic/barcode/asn1/uper/BigIntCoder.java
deleted file mode 100644
index 94e4b05..0000000
--- a/src/org/uic/barcode/asn1/uper/BigIntCoder.java
+++ /dev/null
@@ -1,97 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Field;
-import java.math.BigInteger;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-class BigIntCoder implements Encoder, Decoder {
-
- @Override public boolean canDecode(Class classOfT, Annotation[] extraAnnotations) {
- return Asn1BigInteger.class.isAssignableFrom(classOfT);
- }
-
- @Override public T decode(BitBuffer bitbuffer,
- Class classOfT, Field f,
- Annotation[] extraAnnotations) {
- AnnotationStore annotations = new AnnotationStore(classOfT.getAnnotations(),
- extraAnnotations);
-
- String pos = String.format("%d.%d", bitbuffer.position()/8 , bitbuffer.position() % 8);
- UperEncoder.logger.debug(String.format("Position %s BIG INT",pos));
- IntRange intRange = annotations.getAnnotation(IntRange.class);
- if (intRange != null && intRange.maxValue() > 0) {
- throw new UnsupportedOperationException("Big int with upper range is not supported yet");
- }
-
- int lengthInOctets = (int) UperEncoder.decodeLengthDeterminant(bitbuffer);
- BitBuffer valueBits = ByteBitBuffer.allocate(lengthInOctets * 8);
- for (int i = 0; i < lengthInOctets * 8; i++) {
- valueBits.put(bitbuffer.get());
- }
- valueBits.flip();
- BigInteger resultValue = new BigInteger(+1, valueBits.array());
- UperEncoder.logger.debug(String.format("big int Decoded as %s", resultValue));
-
-
- //CG support for int range
- if (intRange != null){
- resultValue.add(BigInteger.valueOf(intRange.minValue()));
- }
-
-
- return UperEncoder.instantiate(classOfT, resultValue);
- }
-
- @Override public boolean canEncode(T obj, Annotation[] extraAnnotations) {
- return obj instanceof Asn1BigInteger;
- }
-
- @Override public void encode(BitBuffer bitbuffer, T obj, Annotation[] extraAnnotations) throws Asn1EncodingException {
- Class> type = obj.getClass();
- AnnotationStore annotations = new AnnotationStore(type.getAnnotations(), extraAnnotations);
- IntRange range = annotations.getAnnotation(IntRange.class);
-
- //CG implementation with lower range limit added
- BigInteger bint = ((Asn1BigInteger) obj).toBigInteger();
- if (range != null) {
- throw new UnsupportedOperationException("Asn1 BigInteger with range is not supported");
- }
- byte[] array = bint.toByteArray();
- int lengthInOctets = array.length;
- int position1 = bitbuffer.position();
- try {
- UperEncoder.encodeLengthDeterminant(bitbuffer, lengthInOctets);
- } catch (Asn1EncodingException e) {
- throw new Asn1EncodingException(" length determinant of " + type.getName(), e);
- }
- int position2 = bitbuffer.position();
- for (byte b : array) {
- bitbuffer.putByte(b);
- }
- UperEncoder.logger.debug(String.format("Big Int(%s): len %s, val %s", obj,
- bitbuffer.toBooleanString(position1, position2 - position1),
- bitbuffer.toBooleanStringFromPosition(position2)));
- return;
- }
-
- @Override
- public T getDefault(Class classOfT, Annotation[] extraAnnotations) {
- AnnotationStore annotations = new AnnotationStore(classOfT.getAnnotations(), extraAnnotations);
- Asn1Default defaultAnnotation = annotations.getAnnotation(Asn1Default.class);
- if (defaultAnnotation == null) return null;
- //check whether the class has a constructor for numeric types
- String valueString = defaultAnnotation.value();
- long value = Long.parseLong(valueString);
- UperEncoder.logger.debug(String.format("Default INTEGER: %d",value ));
-
- @SuppressWarnings("unchecked")
- T t = (T) new Asn1BigInteger(value);
- return t;
-
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/asn1/uper/BitBuffer.java b/src/org/uic/barcode/asn1/uper/BitBuffer.java
deleted file mode 100644
index bba0de7..0000000
--- a/src/org/uic/barcode/asn1/uper/BitBuffer.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-/**
- * An interface for convenient storage of bits, similar to Java's ByteBuffer.
- *
- * This interface and its implementation are very useful for UPER, since UPER operates on bits
- * regardless of byte boundaries.
- *
- */
-public interface BitBuffer {
- boolean get();
- boolean get(int index);
- BitBuffer put(boolean element);
- BitBuffer put(int index, boolean element);
- int limit();
- int capacity();
- int position();
- int remaining();
- BitBuffer flip();
- String toBooleanString(int startIndex, int length);
- String toBooleanStringFromPosition(int startIndex);
- byte[] array();
- BitBuffer putByte(byte element);
- byte getByte();
- void putInteger(int index, int length,int number);
- void putChar6String(int index, int length, String s);
- int getInteger(int index, int length);
- String getChar6String(int position, int length);
- void putChar5String(int index, int length, String s);
- String getChar5String(int inxed, int length);
- BitBuffer putByteArray(int index, byte[] data);
-}
diff --git a/src/org/uic/barcode/asn1/uper/BitStringCoder.java b/src/org/uic/barcode/asn1/uper/BitStringCoder.java
deleted file mode 100644
index ba1692c..0000000
--- a/src/org/uic/barcode/asn1/uper/BitStringCoder.java
+++ /dev/null
@@ -1,165 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Field;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-
-import org.uic.barcode.asn1.datatypes.Asn1VarSizeBitstring;
-import org.uic.barcode.asn1.datatypes.Bitstring;
-import org.uic.barcode.asn1.datatypes.FixedSize;
-import org.uic.barcode.asn1.datatypes.SizeRange;
-import org.uic.barcode.asn1.uper.UperEncoder.Asn1ContainerFieldSorter;
-
-class BitStringCoder implements Decoder, Encoder {
-
- @Override public boolean canEncode(T obj, Annotation[] extraAnnotations) {
- Class> type = obj.getClass();
- AnnotationStore annotations = new AnnotationStore(type.getAnnotations(),
- extraAnnotations);
- return annotations.getAnnotation(Bitstring.class) != null;
- }
-
- @Override public void encode(BitBuffer bitbuffer, T obj, Annotation[] extraAnnotations) throws Asn1EncodingException {
- Class> type = obj.getClass();
- AnnotationStore annotations = new AnnotationStore(type.getAnnotations(),
- extraAnnotations);
- if (!(obj instanceof Asn1VarSizeBitstring)) {
- if (UperEncoder.hasExtensionMarker(annotations)) {
- throw new UnsupportedOperationException(
- "Bitstring with extensions is not implemented yet");
- }
- FixedSize size = type.getAnnotation(FixedSize.class);
- int position = bitbuffer.position();
- if (size != null) {
- Asn1ContainerFieldSorter sorter = new Asn1ContainerFieldSorter(type);
- if (sorter.ordinaryFields.size() != size.value()) { throw new AssertionError(
- "Declared size (" + size.value() +
- ") and number of fields (" + sorter.ordinaryFields.size() +
- ") do not match!"); }
- for (Field f : sorter.ordinaryFields) {
- try {
- bitbuffer.put(f.getBoolean(obj));
- } catch (IllegalArgumentException | IllegalAccessException e) {
- throw new IllegalArgumentException("can't encode" + obj, e);
- }
- }
- UperEncoder.logger.debug(String.format("BITSTRING %s, encoded as <%s>", obj.getClass().getName(),
- bitbuffer.toBooleanStringFromPosition(position)));
- return;
- } else {
- throw new UnsupportedOperationException(
- "Bitstrings of variable size are not implemented yet");
- }
- } else if (obj instanceof Asn1VarSizeBitstring) {
- int position = bitbuffer.position();
- if (UperEncoder.hasExtensionMarker(annotations)) { throw new UnsupportedOperationException(
- "Bitstring with extensions is not implemented yet"); }
- Asn1VarSizeBitstring bitstring = (Asn1VarSizeBitstring) obj;
- FixedSize fixedSize = annotations.getAnnotation(FixedSize.class);
- SizeRange sizeRange = annotations.getAnnotation(SizeRange.class);
- if (fixedSize != null) {
- for (int i = 0; i < fixedSize.value(); i++) {
- bitbuffer.put(bitstring.getBit(i));
- }
- UperEncoder.logger.debug(String.format("BITSTRING %s: %s", obj.getClass().getName(),
- bitbuffer.toBooleanStringFromPosition(position)));
- return;
- } else if (sizeRange != null) {
- int position1 = bitbuffer.position();
- UperEncoder.encodeConstrainedInt(bitbuffer, bitstring.size(), sizeRange.minValue(),
- sizeRange.maxValue());
- int position2 = bitbuffer.position();
- for (int i = 0; i < bitstring.size(); i++) {
- bitbuffer.put(bitstring.getBit(i));
- }
- UperEncoder.logger.debug(String.format("BITSTRING %s size %s: %S", obj.getClass().getName(),
- bitbuffer.toBooleanString(position1, position2 - position1),
- bitbuffer.toBooleanStringFromPosition(position2)));
- return;
- } else {
- throw new IllegalArgumentException("Both SizeRange and FixedSize are null");
- }
- }
- }
-
- @Override public boolean canDecode(Class classOfT, Annotation[] extraAnnotations) {
- AnnotationStore annotations = new AnnotationStore(classOfT.getAnnotations(),
- extraAnnotations);
- return annotations.getAnnotation(Bitstring.class) != null;
- }
-
- @Override public T decode(BitBuffer bitbuffer,
- Class classOfT, Field field,
- Annotation[] extraAnnotations) {
- AnnotationStore annotations = new AnnotationStore(classOfT.getAnnotations(),
- extraAnnotations);
- if (!Asn1VarSizeBitstring.class.isAssignableFrom(classOfT)) {
- UperEncoder.logger.debug("Bitlist(fixed-size, all-named)");
- FixedSize fixedSize = annotations.getAnnotation(FixedSize.class);
- if (fixedSize == null) { throw new UnsupportedOperationException(
- "bitstrings of non-fixed size that do not extend Asn1VarSizeBitstring are not supported yet");
- }
- Asn1ContainerFieldSorter sorter = new Asn1ContainerFieldSorter(classOfT);
- if (fixedSize.value() != sorter.ordinaryFields.size()) { throw new IllegalArgumentException(
- "Fixed size annotation " + fixedSize.value()
- + " does not match the number of fields "
- + sorter.ordinaryFields.size() + " in " + classOfT.getName()); }
- if (UperEncoder.hasExtensionMarker(annotations)) {
- boolean extensionPresent = bitbuffer.get();
- if (extensionPresent) { throw new UnsupportedOperationException(
- "extensions in fixed-size bitlist are not supported yet"); }
- }
- T result = UperEncoder.instantiate(classOfT);
- for (Field f : sorter.ordinaryFields) {
- boolean value = bitbuffer.get();
- UperEncoder.logger.debug(String.format("Field %s set to %s", f.getName(), value));
- try {
- f.set(result, value);
- } catch (IllegalArgumentException | IllegalAccessException e) {
- throw new IllegalArgumentException("can't decode " + classOfT, e);
- }
- }
- return result;
- } else {
- UperEncoder.logger.debug("Bitlist(var-size)");
- FixedSize fixedSize = annotations.getAnnotation(FixedSize.class);
- SizeRange sizeRange = annotations.getAnnotation(SizeRange.class);
- // We use reflection here to access protected method of Asn1VarSizeBitstring.
- // Alternative would be to mandate BitSet constructors for all subclasses of
- // Asn1VarSizeBitstring.
- Method setBitMethod;
- try {
- setBitMethod = Asn1VarSizeBitstring.class.getDeclaredMethod("setBit", int.class,
- boolean.class);
- setBitMethod.setAccessible(true);
- } catch (SecurityException | NoSuchMethodException e) {
- throw new AssertionError("Can't find/access setBit " + e);
- }
- Long size = (fixedSize != null) ? fixedSize.value() :
- (sizeRange != null) ? UperEncoder.decodeConstrainedInt(bitbuffer,
- UperEncoder.intRangeFromSizeRange(sizeRange)) :
- badSize(classOfT);
- T result = UperEncoder.instantiate(classOfT);
- for (int i = 0; i < size; i++) {
- try {
- setBitMethod.invoke(result, i, bitbuffer.get());
- } catch (IllegalArgumentException | InvocationTargetException | IllegalAccessException e) {
- throw new IllegalArgumentException("Can't invoke setBit", e);
- }
- }
- return result;
- }
- }
-
- /** This function only throws an exception, to be used in ternary (a?b:c) expression. */
- static Long badSize(Class classOfT) {
- throw new IllegalArgumentException("both size range and fixed size are null for "
- + classOfT.getName());
- }
-
- @Override
- public T getDefault(Class classOfT, Annotation[] extraAnnotations) {
- throw new IllegalArgumentException("Default Sequence not yet implemented");
- }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/asn1/uper/BooleanCoder.java b/src/org/uic/barcode/asn1/uper/BooleanCoder.java
deleted file mode 100644
index 3bd7a38..0000000
--- a/src/org/uic/barcode/asn1/uper/BooleanCoder.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Field;
-
-class BooleanCoder implements Decoder, Encoder {
-
- @Override public boolean canEncode(T obj, Annotation[] extraAnnotations) {
- return obj instanceof Boolean;
- }
-
- @Override public void encode(BitBuffer bitbuffer, T obj, Annotation[] extraAnnotations) {
- UperEncoder.logger.debug(String.format("BOOLEAN %s", obj));
- bitbuffer.put((Boolean) obj);
- }
-
- @Override public boolean canDecode(Class classOfT, Annotation[] extraAnnotations) {
- return Boolean.class.isAssignableFrom(classOfT)
- || boolean.class.isAssignableFrom(classOfT);
- }
-
- @SuppressWarnings("unchecked")
- @Override public T decode(BitBuffer bitbuffer,
- Class classOfT, Field field,
- Annotation[] extraAnnotations) {
- Boolean result = new Boolean(bitbuffer.get());
- UperEncoder.logger.debug(String.format("BOOL: decoded as %s",result));
- return (T) result;
- }
-
- @Override
- public T getDefault(Class classOfT, Annotation[] extraAnnotations) {
- throw new IllegalArgumentException("Default Boolean not yet implemented");
- }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/asn1/uper/ByteBitBuffer.java b/src/org/uic/barcode/asn1/uper/ByteBitBuffer.java
deleted file mode 100644
index 3ed3eed..0000000
--- a/src/org/uic/barcode/asn1/uper/ByteBitBuffer.java
+++ /dev/null
@@ -1,271 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-
-
-public class ByteBitBuffer implements BitBuffer {
-
- byte[] bytes;
- byte[] mask = new byte[] {
- (byte) 0b1000_0000,
- 0b0100_0000,
- 0b0010_0000,
- 0b0001_0000,
- 0b0000_1000,
- 0b0000_0100,
- 0b0000_0010,
- 0b0000_0001,
- };
-
- boolean isFinite;
-
- int mark;
- int position;
- int limit;
-
-
- @Override public boolean get(int index) {
- if (index < 0) {
- throw new IndexOutOfBoundsException("Index " + index + " is less than 0");
- } else if (index >= limit) {
- throw new IndexOutOfBoundsException("Index " + index + " violates the limit " + limit);
- }
- boolean result = (bytes[index / 8] & mask[index % 8]) != 0;
- return result;
- }
-
- @Override public boolean get() {
- boolean result = get(position);
- position++;
- return result;
- }
-
- private void grow() {
- byte[] newbytes = new byte[2 * bytes.length];
- System.arraycopy(bytes, 0, newbytes, 0, bytes.length);
- bytes = newbytes;
- }
-
- @Override public BitBuffer put(int index, boolean element) {
- if (bytes.length <= index / 8) {
- if (isFinite) { throw new IndexOutOfBoundsException(); }
- else { grow(); }
- }
- if (element) {
- bytes[index / 8] |= mask[index % 8];
- } else {
- bytes[index / 8] &= ~mask[index % 8];
- }
- return this;
- }
-
- @Override public BitBuffer put(boolean element) {
- put(position, element);
- position++;
- limit = limit < position ? position : limit; // TODO: should it be here?
- return this;
- }
-
- @Override public BitBuffer putByte(byte element) {
- for (int i = 0; i < 8; i++) {
- put((element & mask[i]) != 0);
- }
- return this;
- }
-
- @Override public BitBuffer putByteArray(int index, byte[] data) {
-
- for (int l = 0; l < data.length;l++) {
- for (int i = 0; i < 8; i++) {
- put((data[l] & mask[i]) != 0);
- }
- }
- return this;
- }
-
-
- @Override public byte getByte() {
- byte result = 0;
- for (int i = 0; i < 8; i++) {
- result |= (get() ? 1 : 0) << (7 - i);
- }
- return result;
- }
-
- @Override public int limit() {
- return limit;
- }
-
- @Override public String toBooleanString(int startIndex, int length) {
- StringBuilder sb = new StringBuilder(length);
- for (int i = startIndex; i < startIndex + length; i++) {
- sb.append(get(i) ? "1" : "0");
- }
- return sb.toString();
- }
-
- @Override public int capacity() {
- return isFinite ? bytes.length * 8 : Integer.MAX_VALUE;
- }
-
- @Override public int position() {
- return position;
- }
-
- @Override public int remaining() {
- return limit - position;
- }
-
- public ByteBitBuffer(byte[] backingArray) {
- this.bytes = backingArray;
- this.isFinite = true;
- }
-
- private ByteBitBuffer(int initialCapacity) {
- this.bytes = new byte[initialCapacity];
- this.isFinite = false;
- }
-
- public static ByteBitBuffer allocate(int lengthInBits) {
- return new ByteBitBuffer(new byte[(lengthInBits + 7) / 8]);
- }
-
- public static ByteBitBuffer createInfinite() {
- return new ByteBitBuffer(64);
- }
-
- @Override public BitBuffer flip() {
- limit = position;
- position = 0;
- return this;
- }
-
- @Override public String toBooleanStringFromPosition(int startIndex) {
- return toBooleanString(startIndex, position-startIndex);
- }
-
- @Override public byte[] array() {
- return bytes;
- }
-
- @Override
- public void putInteger(int position, int length,int number) {
- String s = Integer.toBinaryString(number);
- if (s.length() > length) {
- //value is to large
- return;
- }
-
- for (int i = 0;i < length;i++){
- int index = position + i;
- this.put(index,false);
- }
-
-
- int startIndex = position + length - s.length();
- for (int i = 0;i < s.length();i++){
- /*
- * i = max --> index = position + length - 1
- * i = 0 --> index = position +
- */
- int index = startIndex + i;
- if (s.charAt(i) == '1') {
- this.put(index, true );
- } else {
- this.put(index, false);
- }
- }
-
- }
-
- @Override
- public void putChar5String(int position, int length, String s) {
-
- String upperCaseString = s.toUpperCase();
- int offset = 0;
- for (int i = 0; i < s.length() ; i++) {
- char character = upperCaseString.charAt(i);
- int intValue = (int) character - 32;
- if (intValue > -1 && intValue < 64) {
- this.putInteger(position + offset,5, intValue);
- offset = offset + 5;
- } else {
- this.putInteger(position + offset,5,0);
- position = position + 5;
- }
- }
- }
-
- @Override
- public void putChar6String(int position, int length, String s) {
-
- String upperCaseString = s.toUpperCase();
- int offset = 0;
- for (int i = 0; i < s.length() ; i++) {
- char character = upperCaseString.charAt(i);
- int intValue = (int) character - 32;
- if (intValue > -1 && intValue < 64) {
- this.putInteger(position + offset,6, intValue);
- offset = offset + 6;
- } else {
- this.putInteger(position + offset,6,0);
- position = position + 6;
- }
- }
- }
-
- @Override
- public int getInteger(int position, int length) {
- StringBuffer sb = new StringBuffer();
- for (int i = 0;i < length;i++){
- if (this.get(position + i)) {
- sb.append("1");
- } else {
- sb.append("0");
- }
- }
- return Integer.parseInt(sb.toString(), 2);
- }
-
- @Override
- public String getChar6String(int position, int length) {
-
- StringBuilder stringBuilder = new StringBuilder();
-
- int chars = length / 6;
-
- for (int i = 0; i < chars; i++) {
- int newPosition = position + i * 6;
-
- int x = this.getInteger(newPosition, 6);
- x = x + 32;
-
- char c = (char) x;
- stringBuilder.append(c);
-
- }
-
- return stringBuilder.toString().trim();
- }
-
- @Override
- public String getChar5String(int position, int length) {
-
- StringBuilder stringBuilder = new StringBuilder();
-
- int chars = length / 5;
-
- for (int i = 0; i < chars; i++) {
- int newPosition = position + i * 5;
-
- int x = getInteger(newPosition, 5);
- x = x + 42;
-
- char c = (char) x;
- stringBuilder.append(c);
-
- }
-
- return stringBuilder.toString().trim();
- }
-
-}
diff --git a/src/org/uic/barcode/asn1/uper/ByteCoder.java b/src/org/uic/barcode/asn1/uper/ByteCoder.java
deleted file mode 100644
index f26a598..0000000
--- a/src/org/uic/barcode/asn1/uper/ByteCoder.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Field;
-
-class ByteCoder implements Decoder, Encoder {
-
- @Override public boolean canEncode(T obj, Annotation[] extraAnnotations) {
- return obj instanceof Byte;
- }
-
- @Override public void encode(BitBuffer bitbuffer, T obj, Annotation[] extraAnnotations) throws Asn1EncodingException {
- UperEncoder.encodeConstrainedInt(bitbuffer, ((Byte) obj).byteValue() & 0xff, 0, 255);
- UperEncoder.logger.debug(String.format("BYTE %s", ((Byte) obj).byteValue()));
- }
-
- @Override public boolean canDecode(Class classOfT, Annotation[] extraAnnotations) {
- return Byte.class.isAssignableFrom(classOfT) || byte.class.isAssignableFrom(classOfT);
- }
-
- @SuppressWarnings("unchecked")
- @Override public T decode(BitBuffer bitbuffer,
- Class classOfT, Field field,
- Annotation[] extraAnnotations) {
- UperEncoder.logger.debug("BYTE");
- return (T) new Byte((byte) UperEncoder.decodeConstrainedInt(bitbuffer, UperEncoder.newRange(0, 255, false)));
- }
-
- @Override
- public T getDefault(Class classOfT, Annotation[] extraAnnotations) {
- throw new IllegalArgumentException("Default Byte not yet implemented");
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/asn1/uper/ChoiceCoder.java b/src/org/uic/barcode/asn1/uper/ChoiceCoder.java
deleted file mode 100644
index d17a813..0000000
--- a/src/org/uic/barcode/asn1/uper/ChoiceCoder.java
+++ /dev/null
@@ -1,161 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Field;
-
-import org.uic.barcode.asn1.datatypes.Choice;
-import org.uic.barcode.asn1.uper.UperEncoder.Asn1ContainerFieldSorter;
-
-class ChoiceCoder implements Decoder, Encoder {
-
- @Override public boolean canEncode(T obj, Annotation[] extraAnnotations) {
- Class> type = obj.getClass();
- AnnotationStore annotations = new AnnotationStore(type.getAnnotations(),
- extraAnnotations);
- return annotations.getAnnotation(Choice.class) != null;
- }
-
- @Override public void encode(BitBuffer bitbuffer, T obj, Annotation[] extraAnnotations) throws Asn1EncodingException {
- Class> type = obj.getClass();
- AnnotationStore annotations = new AnnotationStore(type.getAnnotations(),extraAnnotations);
- UperEncoder.logger.debug("CHOICE");
- int nonNullIndex = 0;
- Field nonNullField = null;
- Object nonNullFieldValue = null;
- int currentIndex = 0;
- Asn1ContainerFieldSorter sorter = new Asn1ContainerFieldSorter(type);
- try {
- for (Field f : sorter.ordinaryFields) {
- if (f.get(obj) != null) {
- nonNullIndex = currentIndex;
- nonNullFieldValue = f.get(obj);
- nonNullField = f;
- break;
- }
- currentIndex++;
- }
- if (nonNullFieldValue != null) {
- if (UperEncoder.hasExtensionMarker(annotations)) {
- boolean extensionBit = false;
- UperEncoder.logger.debug(String.format("with extension marker, set to %s", extensionBit));
- bitbuffer.put(extensionBit);
- }
- if (sorter.ordinaryFields.size() > 1) { // Encode index only if more than one.
- UperEncoder.logger.debug(String.format("with chosen element indexed %d", nonNullIndex));
- UperEncoder.encodeConstrainedInt(bitbuffer, nonNullIndex, 0,
- sorter.ordinaryFields.size() - 1);
- }
- UperEncoder.encode2(bitbuffer, nonNullFieldValue, nonNullField.getAnnotations());
- return;
- } else if (UperEncoder.hasExtensionMarker(annotations)) {
- //CG encoding of extension fields
- currentIndex = 0;
- for (Field f : sorter.extensionFields) {
- if (f.get(obj) != null) {
- nonNullIndex = currentIndex;
- nonNullFieldValue = f.get(obj);
- nonNullField = f;
- break;
- }
- currentIndex++;
- }
- if (nonNullField == null) {
- UperEncoder.logger.debug(String.format("without choice of extension"));
- return;
- }
- boolean extensionBit = true;
- UperEncoder.logger.debug(String.format("with extension marker, set to <%s>", extensionBit));
- bitbuffer.put(extensionBit);
-
- //CG encode extension values
- //Always encode index of the element
- UperEncoder.logger.debug(String.format("with chosen extension element indexed %d", nonNullIndex));
-
- //encode small integer even with value 0
- UperEncoder.encodeSmallInt(bitbuffer, nonNullIndex);
-
- //Encode as open field
- UperEncoder.encodeAsOpenType(bitbuffer, nonNullFieldValue, nonNullField.getAnnotations());
- return;
- } else {
- throw new IllegalArgumentException("Not Extension and All ordinary fields of Choice are null");
- }
- } catch (IllegalArgumentException | IllegalAccessException e) {
- throw new IllegalArgumentException("can't encode " + obj, e);
- } catch (Asn1EncodingException e) {
- throw new Asn1EncodingException("." + type.getName(), e);
- }
- }
-
- @Override public boolean canDecode(Class classOfT, Annotation[] extraAnnotations) {
- AnnotationStore annotations = new AnnotationStore(classOfT.getAnnotations(),
- extraAnnotations);
- return annotations.getAnnotation(Choice.class) != null;
- }
-
- @Override public T decode(BitBuffer bitbuffer,
- Class classOfT, Field field1,
- Annotation[] extraAnnotations) {
- AnnotationStore annotations = new AnnotationStore(classOfT.getAnnotations(),extraAnnotations);
- UperEncoder.logger.debug(String.format("CHOICE: %s", classOfT.getName()));
- T result = UperEncoder.instantiate(classOfT);
- Asn1ContainerFieldSorter sorter = new Asn1ContainerFieldSorter(classOfT);
-
- // Reset all fields, since default constructor initializes one.
- for (Field f : sorter.allFields) {
- try {
- f.set(result, null);
- } catch (IllegalArgumentException | IllegalAccessException e) {
- throw new IllegalArgumentException("can't decode " + classOfT, e);
- }
- }
- if (UperEncoder.hasExtensionMarker(annotations)) {
- UperEncoder.logger.debug("with extension marker");
- boolean extensionPresent = bitbuffer.get();
- if (extensionPresent) {
- //CG extension support added
- int i = (int) UperEncoder.decodeSmallInt(bitbuffer);
- UperEncoder.logger.debug(String.format("extension with index %d is present",i));
- Field field = sorter.extensionFields.size() > i ? sorter.extensionFields.get(i) : null;
- Class> classOfElement = field != null ? field.getType() : null;
- if (field != null) {
- try {
- Object decodedValue = UperEncoder.decodeAsOpenType(bitbuffer, classOfElement,field, field.getAnnotations());
- if (field != null) {
- field.set(result, decodedValue);
- }
- return result;
- } catch (IllegalArgumentException | IllegalAccessException e) {
- throw new IllegalArgumentException("can't decode " + classOfT, e);
- }
- } else {
- //CG skip the unknown extension element
- UperEncoder.decodeSkipUnknownElement(bitbuffer, classOfT.getSimpleName());
- return null;
- }
- //throw new UnsupportedOperationException("choice extension is not implemented yet");
- } else {
- UperEncoder.logger.debug(String.format("no extension present"));
- //no extension is present
- //We already consumed the bit, keep processing as if there were no extension.
- }
- }
- int index = (int) UperEncoder.decodeConstrainedInt(bitbuffer,
- UperEncoder.newRange(0, sorter.ordinaryFields.size() - 1, false));
- Field f = sorter.ordinaryFields.get(index);
- UperEncoder.logger.debug(String.format("CHOICE: selected %s", f.getName()));
- Object fieldValue = UperEncoder.decodeAny(bitbuffer, f.getType(),f, f.getAnnotations());
- try {
- f.set(result, fieldValue);
- } catch (IllegalArgumentException | IllegalAccessException e) {
- throw new IllegalArgumentException("can't decode " + classOfT, e);
- }
- return result;
- }
-
- @Override
- public T getDefault(Class classOfT, Annotation[] extraAnnotations) {
- throw new IllegalArgumentException("Default Choice not yet implemented");
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/asn1/uper/Decoder.java b/src/org/uic/barcode/asn1/uper/Decoder.java
deleted file mode 100644
index 947a752..0000000
--- a/src/org/uic/barcode/asn1/uper/Decoder.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Field;
-
-public interface Decoder {
- boolean canDecode(Class classOfT, Annotation[] extraAnnotations);
- T decode(BitBuffer bitbuffer, Class classOfT,Field f, Annotation[] extraAnnotations);
- T getDefault(Class classOfT, Annotation[] extraAnnotations);
-}
diff --git a/src/org/uic/barcode/asn1/uper/Document2.txt b/src/org/uic/barcode/asn1/uper/Document2.txt
deleted file mode 100644
index 176ec23..0000000
--- a/src/org/uic/barcode/asn1/uper/Document2.txt
+++ /dev/null
@@ -1,34 +0,0 @@
- if (restrictionAnnotation.value() == CharacterRestriction.UTF8String) {
- // UTF8 length
- BitBuffer stringbuffer = ByteBitBuffer.createInfinite();
-
- //char array replaced - begin
- byte[] stringasbytearray = string.getBytes(StandardCharsets.UTF_8);
-
- for (byte b: stringasbytearray){
- UperEncoder.encodeConstrainedInt(stringbuffer, byte & 0xff, 0, 255);
- }
- //char array replaced - end
-
- stringbuffer.flip();
- if (stringbuffer.limit() % 8 != 0) {
- throw new AssertionError("utf8 encoding resulted not in multiple of 8 bits");
- }
- int numOctets = (stringbuffer.limit() + 7) / 8; // Actually +7 is not needed here,
- // since we already checked with %8.
- int position1 = bitbuffer.position();
- UperEncoder.encodeLengthDeterminant(bitbuffer, numOctets);
- UperEncoder.logger.debug(String.format("UTF8String %s, length %d octets, encoded as %s", string, numOctets, bitbuffer.toBooleanStringFromPosition(position1)));
- int position2 = bitbuffer.position();
- for (int i = 0; i < stringbuffer.limit(); i++) {
- bitbuffer.put(stringbuffer.get());
- }
- UperEncoder.logger.debug(String.format("UTF8String %s, encoded length %d octets, value bits: %s", string, numOctets, bitbuffer.toBooleanStringFromPosition(position2)));
- return;
-
-
-
-
-
-
-new String(bytearray, StandardCharsets.UTF_8));
\ No newline at end of file
diff --git a/src/org/uic/barcode/asn1/uper/Encoder.java b/src/org/uic/barcode/asn1/uper/Encoder.java
deleted file mode 100644
index 1b3688f..0000000
--- a/src/org/uic/barcode/asn1/uper/Encoder.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-import java.lang.annotation.Annotation;
-
-public interface Encoder {
- boolean canEncode(T obj, Annotation[] extraAnnotations);
- void encode(BitBuffer bitbuffer, T obj, Annotation[] extraAnnotations) throws Asn1EncodingException;
-}
diff --git a/src/org/uic/barcode/asn1/uper/EnumCoder.java b/src/org/uic/barcode/asn1/uper/EnumCoder.java
deleted file mode 100644
index 5d78bc7..0000000
--- a/src/org/uic/barcode/asn1/uper/EnumCoder.java
+++ /dev/null
@@ -1,156 +0,0 @@
-package org.uic.barcode.asn1.uper;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.Field;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.IsExtension;
-
-class EnumCoder implements Decoder, Encoder {
-
- @Override public boolean canEncode(T obj, Annotation[] extraAnnotations) {
- Class> type = obj.getClass();
- return type.isEnum();
- }
-
- @Override public void encode(BitBuffer bitbuffer, T obj, Annotation[] extraAnnotations) throws Asn1EncodingException {
- Class> type = obj.getClass();
- AnnotationStore annotations = new AnnotationStore(type.getAnnotations(), extraAnnotations);
- String pos = String.format("%d.%d", bitbuffer.position()/8 , bitbuffer.position() % 8);
- UperEncoder.logger.debug(String.format("Position %s ENUM",pos));
- try {
- int position = bitbuffer.position();
-
- List> values = Arrays.asList(type.getEnumConstants());
- int enumIndex = values.indexOf(obj);
-
- if (!UperEncoder.hasExtensionMarker(annotations)) {
- UperEncoder.logger.debug(String.format("enum without extension: index %d value %s, encoding index...", enumIndex,obj.toString()));
- UperEncoder.encodeConstrainedInt(bitbuffer, enumIndex, 0, values.size() - 1);
- return;
- } else {
- List
-
-
-
-
\ No newline at end of file
diff --git a/src/org/uic/barcode/staticFrame/DataRecord.java b/src/org/uic/barcode/staticFrame/DataRecord.java
deleted file mode 100644
index 16d3811..0000000
--- a/src/org/uic/barcode/staticFrame/DataRecord.java
+++ /dev/null
@@ -1,199 +0,0 @@
-package org.uic.barcode.staticFrame;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.util.Arrays;
-
-import org.uic.barcode.ticket.EncodingFormatException;
-
-/**
- * The Class DataRecord implements the basic decoding and encoding
- * of the data record structure, the split into tag, version, length and content.
- *
- * Implementing classes must provide decoding and encoding of the content
- *
- */
-public abstract class DataRecord {
-
- /** The id tag. */
- protected String idTag;
-
- /** The version id. */
- protected String versionId;
-
- /** The content. */
- protected byte[] content;
-
- /**
- * Instantiates a new data record.
- *
- * @param idTag the id tag
- * @param version the version
- */
- public DataRecord (String idTag, String version) {
- this.idTag = idTag;
- this.versionId = version;
- }
-
- /**
- * Instantiates a new data record.
- *
- * @param idTag the id tag
- */
- public DataRecord (String idTag) {
- this.idTag = idTag;
- }
-
- /**
- * Encode.
- *
- * @return the byte[]
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- public byte[] encode() throws IOException, EncodingFormatException {
-
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
-
- encodeContent();
-
- //size of tag + version + length
- int length = 12;
-
- //size of data
- length = length + content.length;
-
- String lengthElement = String.format("%04d",length);
-
- while (idTag.length() < 6) {
- idTag = idTag + " ";
- }
-
- while (versionId.length() < 2) {
- versionId = "0" + versionId;
- }
-
- outputStream.write(idTag.getBytes());
-
- outputStream.write(versionId.getBytes());
-
- outputStream.write(lengthElement.getBytes());
-
- outputStream.write(content);
-
- return outputStream.toByteArray();
- }
-
- /**
- * Decode.
- *
- * @param byteData the byte data
- * @return the int
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- public int decode(byte[] byteData) throws IOException, EncodingFormatException {
-
- int offset = 0;
- String tag = new String(Arrays.copyOfRange(byteData, offset, offset + 6));
- this.setIdTag(tag);
- offset = offset + 6;
-
- String version = new String(Arrays.copyOfRange(byteData, offset, offset + 2));
- this.setVersionId(version);
- offset = offset + 2;
-
- String dataSize = new String(Arrays.copyOfRange(byteData, offset, offset + 4));
- offset = offset + 4;
-
- int length = Integer.parseInt(dataSize) - 12;
- this.setData(Arrays.copyOfRange(byteData, offset, offset + length));
-
- decodeContent();
-
- return length + 12;
- }
-
-
- /**
- * Gets the id tag.
- *
- * @return the id tag
- */
- public String getIdTag() {
- return idTag;
- }
-
-
- /**
- * Sets the id tag.
- *
- * @param idTag the new id tag
- */
- public void setIdTag(String idTag) {
- this.idTag = idTag;
- }
-
-
- /**
- * Gets the version id.
- *
- * @return the version id
- */
- public String getVersionId() {
- return versionId;
- }
-
-
- /**
- * Sets the version id.
- *
- * @param versionId the new version id
- */
- public void setVersionId(String versionId) {
- this.versionId = versionId;
- }
-
-
- /**
- * Gets the data.
- *
- * @return the data
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- protected byte[] getData() throws IOException, EncodingFormatException {
- return content;
- }
-
-
- /**
- * Sets the data.
- *
- * @param data the new data
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- protected void setData(byte[] data) throws IOException, EncodingFormatException {
- this.content = data;
- }
-
-
-
- /**
- * Decode content.
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- protected abstract void decodeContent() throws IOException, EncodingFormatException;
-
- /**
- * Encode content.
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- protected abstract void encodeContent() throws IOException, EncodingFormatException;
-
-}
diff --git a/src/org/uic/barcode/staticFrame/GENERICDataRecord.java b/src/org/uic/barcode/staticFrame/GENERICDataRecord.java
deleted file mode 100644
index 4769670..0000000
--- a/src/org/uic/barcode/staticFrame/GENERICDataRecord.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.uic.barcode.staticFrame;
-
-import java.io.IOException;
-
-import org.uic.barcode.ticket.EncodingFormatException;
-
-
-/**
- * The Class GENERICDataRecord implements a generic bilateral data record included in a static bar code frame.
- */
-public class GENERICDataRecord extends DataRecord {
-
- /**
- * Instantiates a new GENERIC data record.
- *
- * @param idTag the id tag
- */
- public GENERICDataRecord(String idTag) {
- super(idTag);
- }
-
- /**
- * Decode content.
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- @Override
- protected void decodeContent() throws IOException, EncodingFormatException {
- // Do Nothing, needs to be implemented by subclasses
- }
-
- /**
- * Encode content.
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- @Override
- protected void encodeContent() throws IOException, EncodingFormatException {
- // Do Nothing, needs to be implemented by subclasses
- }
-
- /**
- * Gets the content.
- *
- * @return the content
- */
- public byte[] getContent() {
- return content;
- }
-
- /**
- * Sets the content.
- *
- * @param content the new content
- */
- public void setContent(byte[] content) {
- this.content = content;
- }
-
-}
diff --git a/src/org/uic/barcode/staticFrame/StaticFrame.java b/src/org/uic/barcode/staticFrame/StaticFrame.java
deleted file mode 100644
index 5246ac7..0000000
--- a/src/org/uic/barcode/staticFrame/StaticFrame.java
+++ /dev/null
@@ -1,764 +0,0 @@
-package org.uic.barcode.staticFrame;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.math.BigInteger;
-import java.nio.ByteBuffer;
-import java.security.InvalidKeyException;
-import java.security.NoSuchAlgorithmException;
-import java.security.PrivateKey;
-import java.security.Provider;
-import java.security.PublicKey;
-import java.security.Security;
-import java.security.Signature;
-import java.security.SignatureException;
-import java.security.Provider.Service;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.zip.DataFormatException;
-import java.util.zip.Deflater;
-import java.util.zip.Inflater;
-
-import org.uic.barcode.ticket.EncodingFormatException;
-
-
-/**
- * The Class StaticHeader implements the static bar code header frame defined in UIC IRS 90918-9.
- * It allows to decode and encode the bar code content and to add sub-records as defined in the IRS 90918-9 for:
- * - additional header data
- * - Ticket Layout content
- * - Flexible content
- * - bilateral data records
- */
-public class StaticFrame {
-
- /** The additional header record. */
- private UHEADDataRecord headerRecord;
-
- /** The bar code version. */
- private int version;
-
- /** The u_flex. */
- private UFLEXDataRecord uFlex;
-
- /** The u_tlay. */
- private UTLAYDataRecord uTlay;
-
- /** The security provider. */
- private String securityProvider;
-
- /** The signature key. */
- private String signatureKey;
-
- /** The signature. */
- private byte[] signature;
-
- /** The data records. */
- private ArrayList dataRecords = new ArrayList();
-
-
- private byte[] signedData = null;
-
- /**
- * Instantiates a new static header frame.
- */
- public StaticFrame (){ }
-
-
-
- /**
- * Instantiates a new static header and decodes the provided data.
- *
- * @param bytes the bar code data
- * @throws EncodingFormatException the encoding format exception
- * @throws DataFormatException the data format exception
- * @throws IOException Signals that an I/O exception has occurred.
- */
- public StaticFrame (byte[] bytes) throws EncodingFormatException, DataFormatException, IOException{
- decode(bytes);
- }
-
-
- /**
- * Encode the barcode data.
- *
- * @param version the barcode version
- * @return byte[] the encoded data as
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws Exception the exception
- */
- /*
- * creates a UIC bar code of version 1
- *
- * limits:
- * - version 1 allows for signatures up to 50 byte length
- * - max data length 2048 Byte
- * input:
- * data to be included
- * provider of the signature
- * processing:
- * 1. create header informations
- * 2. compression of the data content
- * 3. adding a signature
- * output:
- * raw data to be included in an aztec bar code
- *
- */
- public byte[] encode() throws IOException, Exception {
-
- if (headerRecord == null && uFlex == null && uTlay == null
- && (dataRecords == null || dataRecords.isEmpty())) return null;
-
- if (signedData == null) {
- signedData = encodeData();
- }
-
- if (version != 1 && version != 2) {
- throw (new Exception(String.format("UIC Barcode Version %d not supported", version)));
- }
-
- if (signedData.length < 1) {
- throw new IOException("data missing!");
- }
- if (signedData.length > 2048) {
- throw new IOException("too many data!"); //2048 should be enough
- }
-
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
-
- //UIC bar code version 1
- String header = "#UT01";
- if (version == 2) {
- header = "#UT02";
- }
- outputStream.write(header.getBytes());
-
- outputStream.write(securityProvider.getBytes());
-
-
- while (signatureKey.length() < 5) {
- signatureKey = "0" + signatureKey;
- }
- outputStream.write(signatureKey.getBytes());
-
- if (signature.length < 1) {
- // signature too small for bar code version 1
- throw new IOException("signature size too small!");
- }
-
- if (version == 1) {
- if (signature.length > 50) {
- // signature too large for bar code version 1
- throw new IOException("signature size too large!");
- }
- outputStream.write(Arrays.copyOfRange(signature, 0, 50));
- } else if (version == 2) {
- BigInteger[] bInts = null;
- byte zeroByte = 0;
-
- bInts = decodeSignatureIntegerSequence(signature);
- byte[] r = toUnsignedBytes(bInts[0]);
-
- byte[] s = toUnsignedBytes(bInts[1]);
-
- if (r.length > 32 || s.length > 32) {
- throw (new EncodingFormatException(String.format("DSA signature too big")));
- }
- for (int i = 0; i < 32 - r.length; i++) {
- outputStream.write(zeroByte);
- }
- outputStream.write(r);
- for (int i = 0; i < 32 - s.length; i++) {
- outputStream.write(zeroByte);
- }
- outputStream.write(s);
- //outputStream.write(Arrays.copyOfRange(signature, 0, 64));
- }
-
- String length = String.format("%04d", signedData.length);
- outputStream.write(length.getBytes());
-
- outputStream.write(signedData);
-
- outputStream.close();
-
- return outputStream.toByteArray();
- }
-
-
- /**
- * Adds a proprietary data record.
- *
- * @param record the record
- */
- public void addDataRecord(DataRecord record) {
- dataRecords.add(record);
- }
-
- /**
- * Gets the version of the header frame.
- *
- * @return the version
- */
- public int getVersion() {
- return version;
- }
-
- /**
- * Sets the version of the header frame.
- * supported values are 1 and 2
- *
- * @param version the new version
- */
- public void setVersion(int version) {
- this.version = version;
- }
-
- /**
- * Gets the security provider.
- *
- * @return the security provider
- */
- public String getSecurityProvider() {
- return securityProvider;
- }
-
- /**
- * Sets the security provider.
- *
- * @param securityProvider the new security provider
- */
- public void setSecurityProvider(String securityProvider) {
- this.securityProvider = securityProvider;
- }
-
- /**
- * Gets the signature key identifier.
- *
- * @return the signature key
- */
- public String getSignatureKey() {
- return signatureKey;
- }
-
- /**
- * Sets the signature key identifier.
- *
- * @param signatureKey the new signature key
- */
- public void setSignatureKey(String signatureKey) {
- this.signatureKey = signatureKey;
- }
-
- /**
- * Gets the signature.
- *
- * @return the signature
- */
- public byte[] getSignature() {
- return signature;
- }
-
- /**
- * Sets the signature.
- *
- * @param signature the new signature
- */
- public void setSignature(byte[] signature) {
- this.signature = signature;
- }
-
- /**
- * Gets the additional header record.
- *
- * @return the header record
- */
- public UHEADDataRecord getHeaderRecord() {
- return headerRecord;
- }
-
- /**
- * Gets the list of bilateral data records.
- *
- * @return the data records
- */
- public ArrayList getDataRecords() {
- return dataRecords;
- }
-
- /**
- * Gets the data for signing.
- *
- * @return the data to be signed
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- public byte[] getDataForSignature() throws IOException, EncodingFormatException {
- // data compression
- if (signedData != null) return signedData;
-
- Deflater deflater = new Deflater();
- byte[] data = encodeData();
- deflater.setInput(data);
- ByteArrayOutputStream compressStream = new ByteArrayOutputStream(data.length);
- byte[] buffer = new byte[2048];
- deflater.finish();
- while (!deflater.finished()) {
- int count = deflater.deflate(buffer); // returns the number of result bytes
- compressStream.write(buffer, 0, count);
- }
- compressStream.close();
-
- return compressStream.toByteArray();
- }
-
- /**
- * Get the encoded data for the bar code.
- *
- * @return the byte[]
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- private byte[] encodeData() throws IOException, EncodingFormatException {
-
- if (this.uFlex == null && this.uTlay == null && this.headerRecord == null &&
- (dataRecords == null || dataRecords.isEmpty())) return null;
-
- ByteArrayOutputStream totalStream = new ByteArrayOutputStream();
-
- //encode header for layout
- if (headerRecord != null) {
- byte[] header = headerRecord.encode();
-
- if (header != null && header.length > 0) {
- totalStream.write(header);
- }
- }
-
- //encode layout
- if (uTlay != null) {
- byte[] layout = uTlay.encode();
- if (layout != null && layout.length > 0) {
- totalStream.write(layout);
- }
- }
-
- if (uFlex != null) {
- byte[] content = uFlex.encode();
- if (content != null && content.length > 0){
- totalStream.write(content);
- }
- }
-
- //third party content
- for (DataRecord dataRecord : dataRecords){
-
- byte[] content = dataRecord.encode();
- if (content != null && content.length > 0){
- totalStream.write(content);
- }
- }
- return totalStream.toByteArray();
- }
-
- /**
- * Encode signature integer sequence.
- *
- * Support function to format two parameters as DER encoded integer list
- * to get a valid formated DSA signature from the signature parameter
- *
- * @param i1 the i 1
- * @param i2 the i 2
- * @return the byte[]
- * @throws IOException Signals that an I/O exception has occurred.
- */
- public static byte[] encodeSignatureIntegerSequence(BigInteger i1, BigInteger i2) throws IOException {
-
- //SEQUENCE OF --> tag 16
- int sequenceTag = 16 + 32; // (bits 6 = 1 constructed)
- //INTEGER --> tag 2
- int integerTag = 2;
-
- byte[] b1 = i1.toByteArray();
- int lb1 = b1.length;
- byte[] b2 = i2.toByteArray();
- int lb2 = b2.length;
-
- int sequenceLength = lb1 + lb2 + 4;
-
- ByteArrayOutputStream out = new ByteArrayOutputStream();
-
- out.write((byte) sequenceTag);
- out.write((byte) sequenceLength);
- out.write((byte) integerTag);
- out.write((byte) lb1);
- out.write(b1);
- out.write((byte) integerTag);
- out.write((byte) lb2);
- out.write(b2);
-
- return out.toByteArray();
- }
-
- /**
- * Decode signature integer sequence.
- *
- * Support function to decode a DSA signature
- * Provides the two DSA signature parameter encoded in a DSA signature
- *
- * @param bytes the bytes
- * @return the big integer[]
- * @throws Exception the exception
- */
- public static BigInteger[] decodeSignatureIntegerSequence(byte[] bytes) throws Exception {
-
- int sequenceTag = (int) bytes[0];
-
- if (sequenceTag != 48) throw new Exception("signature is not a sequence");
-
- int sequenceLength = (int) bytes[1];
-
- if (sequenceLength < 6) throw new Exception("signature sequence too short");
-
- BigInteger[] result = new BigInteger[2];
-
- int offset = 2;
- int i = 0;
- while (offset < bytes.length && i < 2) {
- int integerTag = (int) bytes[offset];
- if (integerTag != 2) throw new Exception("signature is not an integer sequence");
- int integerLength = (int) bytes[offset + 1];
- byte[] value = Arrays.copyOfRange(bytes, offset + 2, offset + 2 + integerLength);
- result[i] = new BigInteger(+1, value);
- offset = offset + integerLength + 2;
- i++;
- }
-
- return result;
- }
-
- /**
- * Decode.
- *
- * @param inputData the input data
- * @throws EncodingFormatException the encoding format exception
- * @throws DataFormatException the data format exception
- * @throws IOException Signals that an I/O exception has occurred.
- */
- public void decode(byte[] inputData) throws EncodingFormatException, DataFormatException, IOException {
-
-
- int offset = 0;
- String headerTag = new String( Arrays.copyOfRange(inputData,offset,offset + 3));
- offset = offset + 3;
- if (!headerTag.equals("#UT")) {
- throw (new EncodingFormatException("not a UIC barcode"));
- }
-
-
- String versionValue = new String(Arrays.copyOfRange(inputData,offset,offset + 2));
- offset = offset + 2;
- int barcodeVersion = 0;
- try {
- barcodeVersion = Integer.parseInt(versionValue);
- this.setVersion(barcodeVersion);
- } catch (NumberFormatException e2) {
- throw (new EncodingFormatException(String.format("UIC Barcode Version %s not supported", versionValue)));
- }
-
- String providerValue = new String( Arrays.copyOfRange(inputData,offset,offset + 4));
- this.setSecurityProvider(providerValue);
- offset = offset + 4;
-
- String signatureKeyIdValue = new String( Arrays.copyOfRange(inputData,offset,offset + 5));
- this.setSignatureKey(signatureKeyIdValue);
- offset = offset + 5;
-
- byte[] sealdata = null;
-
- if (barcodeVersion == 1) {
- sealdata = Arrays.copyOfRange(inputData, offset, offset + 50);
- signature = trimDsaSignature(sealdata);
- offset = offset + 50;
- } else if (barcodeVersion == 2) {
- sealdata = Arrays.copyOfRange(inputData, offset, offset + 64);
- signature = recombineDsaSignature(sealdata);
- offset = offset + 64;
- } else {
- throw (new EncodingFormatException(String.format("UIC Barcode Version %s not supported", versionValue)));
- }
-
-
- String lengthValue = new String( Arrays.copyOfRange(inputData,offset,offset + 4));
- offset = offset + 4;
-
- int dataLength = 0;
- dataLength = Integer.parseInt(lengthValue);
-
- signedData = Arrays.copyOfRange(inputData, offset, offset + dataLength);
-
- ByteBuffer containedDataBuffer = ByteBuffer.allocate(dataLength);
- containedDataBuffer.put(signedData);
-
- byte[] inflatedDataBuffer = new byte[2000];
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
- Inflater inflater = new Inflater();
- byte[] inflaterInput = containedDataBuffer.array();
- inflater.setInput(inflaterInput);
- while (!inflater.finished()) {
- int count = inflater.inflate(inflatedDataBuffer,0,2000);
- if (inflater.needsDictionary()) {
- break;
- }
- outputStream.write(inflatedDataBuffer, 0, count);
- }
-
- outputStream.close();
-
- byte[] byteData = outputStream.toByteArray();
-
- offset = 0;
- int remainingBytes = byteData.length;
-
- while (remainingBytes > 0) {
-
- String tag = new String(Arrays.copyOfRange(byteData, offset, offset + 6));
- int length = 0;
-
- if (tag.startsWith("U_TLAY")) {
- UTLAYDataRecord record = new UTLAYDataRecord();
- length = record.decode(Arrays.copyOfRange(byteData, offset, byteData.length));
- this.uTlay = record;
- } else if (tag.startsWith("U_FLEX")) {
- UFLEXDataRecord record = new UFLEXDataRecord();
- length = record.decode(Arrays.copyOfRange(byteData, offset, byteData.length));
- this.uFlex = record;
- } else if (tag.startsWith("U_HEAD")) {
- UHEADDataRecord record = new UHEADDataRecord();
- length = record.decode(Arrays.copyOfRange(byteData, offset, byteData.length));
- this.headerRecord = record;
- } else {
- DataRecord record = new GENERICDataRecord(tag);
- length = record.decode(Arrays.copyOfRange(byteData, offset, byteData.length));
- addDataRecord(record);
- }
- offset = offset + length;
- remainingBytes = remainingBytes - length;
- }
- }
-
-
- private byte[] recombineDsaSignature(byte[] sealdata) throws IOException {
-
- //check whether the encoding is wrong and the sealdata contain a signature
- //remove trailing zeroes from the signature
- BigInteger[] bInts = null;
- try {
- bInts = decodeSignatureIntegerSequence(sealdata);
- byte[] sig = encodeSignatureIntegerSequence(bInts[0],bInts[1]);
- //decoding the entire signature was ok, so there was no split
- return sig;
- } catch (Exception e) {
- //the signature is correctly implemented, continue with recombination
- }
-
- // split the data into two blocks
- int length = sealdata.length / 2;
- byte[] rBytes = Arrays.copyOfRange(sealdata, 0, length);
- byte[] sBytes = Arrays.copyOfRange(sealdata, length, length + length);
-
- //convert to BigInteger to get rid of leading zeroes
- BigInteger r = new BigInteger(1,rBytes);
- BigInteger s = new BigInteger(1,sBytes);
-
- //encode as DSA signature structure
- //SEQUENCE OF --> tag 16
- int sequenceTag = 16 + 32; // (bits 6 = 1 constructed)
- //INTEGER --> tag 2
- int integerTag = 2;
-
- byte[] b1 = r.toByteArray();
- int lb1 = b1.length;
-
- byte[] b2 = s.toByteArray();
- int lb2 = b2.length;
- int sequenceLength = lb1 + lb2 + 4;
-
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- out.write((byte) sequenceTag);
- out.write((byte) sequenceLength);
- out.write((byte) integerTag);
- out.write((byte) lb1);
- out.write(b1);
- out.write((byte) integerTag);
- out.write((byte) lb2);
- out.write(b2);
- return out.toByteArray();
-
-
- }
-
- private static byte[] toUnsignedBytes(BigInteger i) {
- byte[] b = i.abs().toByteArray();
- //remove top sign bit
- if (b[0] == 0) {
- b = Arrays.copyOfRange(b, 1, b.length);
- }
- return b;
- }
-
-
- private byte[] trimDsaSignature(byte[] sealdata) throws EncodingFormatException {
- //remove trailing zeroes from the signature
- BigInteger[] bInts = null;
- try {
- bInts = decodeSignatureIntegerSequence(sealdata);
- return encodeSignatureIntegerSequence(bInts[0],bInts[1]);
- } catch (Exception e) {
- throw (new EncodingFormatException(String.format("Invalid DSA signature")));
- }
- }
-
-
-
- /**
- * Verify the signature
- *
- * Note: an appropriate security provider (e.g. BC) must be registered before
- *
- * @param key the key
- * @param algo the algorithm name
- * @return true, if successful
- * @throws InvalidKeyException the invalid key exception
- * @throws NoSuchAlgorithmException the no such algorithm exception
- * @throws SignatureException the signature exception
- * @throws IllegalArgumentException the illegal argument exception
- * @throws UnsupportedOperationException the unsupported operation exception
- * @throws EncodingFormatException
- * @throws IOException
- */
- public boolean ByAlgorithmName(PublicKey key, String algo) throws InvalidKeyException, NoSuchAlgorithmException, SignatureException, IllegalArgumentException, UnsupportedOperationException, IOException, EncodingFormatException {
- Signature sig = Signature.getInstance(algo);
- sig.initVerify(key);
- sig.update(this.getDataForSignature());
- return sig.verify(this.getSignature());
- }
-
- /**
- * Verify the signature
- *
- * Note: an appropriate security provider (e.g. BC) must be registered before
- *
- * @param key the key
- * @param singningAlg the Object ID of the signing algorithm
- * @return true, if successful
- * @throws InvalidKeyException the invalid key exception
- * @throws NoSuchAlgorithmException the no such algorithm exception
- * @throws SignatureException the signature exception
- * @throws IllegalArgumentException the illegal argument exception
- * @throws UnsupportedOperationException the unsupported operatign exception
- * @throws EncodingFormatException
- * @throws IOException
- */
- public boolean verifyByAlgorithmOid(PublicKey key, String signingAlg) throws InvalidKeyException, NoSuchAlgorithmException, SignatureException, IllegalArgumentException, UnsupportedOperationException, IOException, EncodingFormatException {
- //find the algorithm name for the signature OID
- String algo = null;
- Provider[] provs = Security.getProviders();
- for (Provider prov : provs) {
- Service service = prov.getService("Signature",signingAlg);
- if (service != null) {
- algo = service.getAlgorithm();
- }
- }
- Signature sig = Signature.getInstance(algo);
- sig.initVerify(key);
- sig.update(getDataForSignature());
- return sig.verify(this.getSignature());
- }
-
- /**
- * Sign the contained data block.
- *
- * Note: an appropriate security provider (e.g. BC) must be registered before
- *
- * @param key the key
- * @param singningAlg the Object ID of the signing algorithm
- * @return
- * @throws NoSuchAlgorithmException the no such algorithm exception
- * @throws InvalidKeyException the invalid key exception
- * @throws SignatureException the signature exception
- * @throws EncodingFormatException
- * @throws IOException
- */
- public void signByAlgorithmOID(PrivateKey key,String signingAlg) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, IOException, EncodingFormatException {
- //find the algorithm name for the signature OID
- String algo = null;
- Provider[] provs = Security.getProviders();
- for (Provider prov : provs) {
- Service service = prov.getService("Signature",signingAlg);
- if (service != null) {
- algo = service.getAlgorithm();
- }
- }
- Signature sig = Signature.getInstance(algo);
- sig.initSign(key);
- signedData = getDataForSignature();
- sig.update(signedData);
- signature = sig.sign();
- }
-
- /**
- * Sign the contained data block.
- *
- * Note: an appropriate security provider (e.g. BC) must be registered before
- *
- * @param key the key
- * @param algo the name of the signing algorithm
- * @return
- * @throws NoSuchAlgorithmException the no such algorithm exception
- * @throws InvalidKeyException the invalid key exception
- * @throws SignatureException the signature exception
- * @throws EncodingFormatException
- * @throws IOException
- */
- public void signUsingAlgorithmName(PrivateKey key,String algo) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, IOException, EncodingFormatException {
- Signature sig = Signature.getInstance(algo);
- sig.initSign(key);
- sig.update(getDataForSignature());
- signature = sig.sign();
- }
-
-
-
- public UFLEXDataRecord getuFlex() {
- return uFlex;
- }
-
-
-
- public UTLAYDataRecord getuTlay() {
- return uTlay;
- }
-
-
-
- public void setuFlex(UFLEXDataRecord uFlex) {
- this.uFlex = uFlex;
- }
-
-
-
- public void setuTlay(UTLAYDataRecord uTlay) {
- this.uTlay = uTlay;
- }
-
-
-
- public void setHeaderRecord(UHEADDataRecord headerRecord) {
- this.headerRecord = headerRecord;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/staticFrame/UFLEXDataRecord.java b/src/org/uic/barcode/staticFrame/UFLEXDataRecord.java
deleted file mode 100644
index fad2be8..0000000
--- a/src/org/uic/barcode/staticFrame/UFLEXDataRecord.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.uic.barcode.staticFrame;
-
-import java.io.IOException;
-
-import org.uic.barcode.ticket.EncodingFormatException;
-import org.uic.barcode.ticket.UicRailTicketCoder;
-import org.uic.barcode.ticket.api.spec.IUicRailTicket;
-
-/**
- * The Class UFLEXDataRecord implements the dara record to hold the data of an ASN.1 PER encoded UIC ticket.
- */
-public class UFLEXDataRecord extends DataRecord {
-
-
- /** The ticket. */
- private IUicRailTicket ticket;
-
- /**
- * Instantiates a new UFLEX data record.
- */
- public UFLEXDataRecord() {
- super("U_FLEX");
- }
-
- /**
- * Instantiates a new UFLEX data record.
- *
- * @param version the version
- */
- public UFLEXDataRecord(String version) {
- super("U_FLEX", version);
- }
-
-
- /**
- * Gets the ticket.
- *
- * @return the ticket
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- public IUicRailTicket getTicket() throws IOException, EncodingFormatException {
- if (ticket != null) {
- return ticket;
- }
- return null;
- }
-
- /**
- * Sets the ticket.
- *
- * @param ticket the new ticket
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- public void setTicket(IUicRailTicket ticket) throws IOException, EncodingFormatException {
- this.ticket = ticket;
- super.setData(null);
- }
-
-
- /**
- * Decode content.
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- @Override
- protected void decodeContent() throws IOException, EncodingFormatException {
- UicRailTicketCoder coder = new UicRailTicketCoder();
- int version = Integer.parseInt(super.getVersionId());
- this.ticket = coder.decodeFromAsn(content,version);
- }
-
- /**
- * Encode content.
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- @Override
- protected void encodeContent() throws IOException, EncodingFormatException {
- UicRailTicketCoder coder = new UicRailTicketCoder();
- int version = Integer.parseInt(super.getVersionId());
- content = coder.encode(ticket, version);
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/staticFrame/UHEADDataRecord.java b/src/org/uic/barcode/staticFrame/UHEADDataRecord.java
deleted file mode 100644
index 855c9d5..0000000
--- a/src/org/uic/barcode/staticFrame/UHEADDataRecord.java
+++ /dev/null
@@ -1,269 +0,0 @@
-package org.uic.barcode.staticFrame;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Calendar;
-import java.util.Date;
-
-import org.uic.barcode.ticket.EncodingFormatException;
-
-/**
- * The Class UHEADDataRecord implements the additional header record of a statis UIC bar code
- */
-public class UHEADDataRecord extends DataRecord{
-
-
- /** The issuing date. */
- private Date issuingDate = null;
-
- /** The flags. */
- private int flags;
-
- /** The issuer. */
- private String issuer;
-
- /** The identifier. */
- private String identifier;
-
- /** The language. */
- private String language;
-
- /** The additional language. */
- private String additionalLanguage;
-
- /**
- * Instantiates a new UHEAD data record.
- */
- public UHEADDataRecord() {
- super("U_HEAD");
- }
-
-
- /**
- * Gets the issuing date.
- *
- * @return the issuing date
- */
- public Date getIssuingDate() {
- return issuingDate;
- }
-
- /**
- * Sets the issuing date.
- *
- * @param issuingDate the new issuing date
- */
- public void setIssuingDate(Date issuingDate) {
- this.issuingDate = issuingDate;
- }
-
- /**
- * Gets the flags.
- *
- * @return the flags
- */
- public int getFlags() {
- return flags;
- }
-
- /**
- * Sets the flags.
- *
- * @param flags the new flags
- */
- public void setFlags(int flags) {
- this.flags = flags;
- }
-
- /**
- * Gets the issuer.
- *
- * @return the issuer
- */
- public String getIssuer() {
- return issuer;
- }
-
- /**
- * Sets the issuer.
- *
- * @param issuer the new issuer
- */
- public void setIssuer(String issuer) {
- this.issuer = issuer;
- }
-
- /**
- * Gets the identifier.
- *
- * @return the identifier
- */
- public String getIdentifier() {
- return identifier;
- }
-
- /**
- * Sets the identifier.
- *
- * @param identifier the new identifier
- */
- public void setIdentifier(String identifier) {
- this.identifier = identifier;
- }
-
- /**
- * Gets the language.
- *
- * @return the language
- */
- public String getLanguage() {
- return language;
- }
-
- /**
- * Sets the language.
- *
- * @param language the new language
- */
- public void setLanguage(String language) {
- this.language = language;
- }
-
- /**
- * Gets the additional language.
- *
- * @return the additional language
- */
- public String getAdditionalLanguage() {
- return additionalLanguage;
- }
-
- /**
- * Sets the additional language.
- *
- * @param additionalLanguage the new additional language
- */
- public void setAdditionalLanguage(String additionalLanguage) {
- this.additionalLanguage = additionalLanguage;
- }
-
-
- /**
- * Decode content.
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- protected void decodeContent() throws IOException, EncodingFormatException{
-
- if (content == null || content.length == 0 ) return;
-
- issuer = decodeString(content, 0 , 4);
-
- identifier = decodeString(content, 4 , 20);
-
- String issuingDateString = decodeString(content, 24 , 12);
-
- String flagsString = decodeString(content,36 , 1);
-
- language = decodeString(content, 37 , 2);
-
- additionalLanguage = decodeString(content,39 , 2);
-
-
- try {
- flags = Integer.parseInt(flagsString);
- } catch (Exception e) {
- flags = 9;
- }
-
- // date format "DDMMYYYYHHMM"
- SimpleDateFormat formatter = new SimpleDateFormat("ddMMyyyyhhmm");
- try {
- issuingDate = formatter.parse(issuingDateString);
- } catch (ParseException e) {
- e.printStackTrace();
- }
-
- }
-
-
- /**
- * Decode string.
- *
- * @param byteData the byte data
- * @param offset the offset
- * @param length the length
- * @return the string
- */
- private String decodeString(byte[] byteData, int offset, int length) {
-
- char[] chars = new char[length];
-
- for (int i = 0; i < length && i < byteData.length;i++) {
- byte byteValue = byteData[offset + i];
- if (byteValue == '\n') {
- byteValue = ' ';
- }
- chars[i] = (char) byteValue;
- }
-
- return String.copyValueOf(chars);
- }
-
- /**
- * Encode content.
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- protected void encodeContent() throws IOException, EncodingFormatException {
-
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
-
- String issuerElement = String.format("%4s", this.issuer);
-
- String idElement = String.format("%20s", this.identifier);
-
- //DDMMYYYYHHMM"
- Calendar now = Calendar.getInstance();
-
- // issuing date can be in the ticket or in the header
- if (this.issuingDate != null) {
- now.setTime(this.issuingDate);
- }
-
- String timeElement = String.format("%02d%02d%04d%02d%02d",
- now.get(Calendar.DAY_OF_MONTH),
- now.get(Calendar.MONTH),
- now.get(Calendar.YEAR),
- now.get(Calendar.HOUR),
- now.get(Calendar.MINUTE));
-
-
- String flagsElement = String.format("%01d",this.flags);
-
-
- String languageElement = String.format("%2s%2s" ,this.language, this.additionalLanguage);
-
- try {
-
- outputStream.write(issuerElement.getBytes());
- outputStream.write(idElement.getBytes());
- outputStream.write(timeElement.getBytes());
-
- outputStream.write(flagsElement.getBytes());
- outputStream.write(languageElement.getBytes());
-
- } catch (IOException e) {
- e.printStackTrace();
- }
-
- super.setData(outputStream.toByteArray());
-
-
- }
-
-}
diff --git a/src/org/uic/barcode/staticFrame/UTLAYDataRecord.java b/src/org/uic/barcode/staticFrame/UTLAYDataRecord.java
deleted file mode 100644
index 549a2e7..0000000
--- a/src/org/uic/barcode/staticFrame/UTLAYDataRecord.java
+++ /dev/null
@@ -1,272 +0,0 @@
-/*
- *
- */
-package org.uic.barcode.staticFrame;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.UnsupportedEncodingException;
-import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
-
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.FormatType;
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.LayoutElement;
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.TicketLayout;
-import org.uic.barcode.ticket.EncodingFormatException;
-
-/**
- * The Class UTLAYDataRecord implements a bar code data record containing the ticket layout.
- */
-public class UTLAYDataRecord extends DataRecord {
-
- /** The ticket layout. */
- private TicketLayout layout;
-
- /**
- * Instantiates a new empty UTLAY data record.
- */
- public UTLAYDataRecord() {
- super("U_TLAY","01");
- }
-
- /**
- * Decode utf-8 string.
- *
- * @param byteData the byte data
- * @param offset the offset
- * @param length the length
- * @return the string
- * @throws UnsupportedEncodingException the unsupported encoding exception
- */
- private static String decodeUtf8String(byte[] byteData, int offset, int length) throws UnsupportedEncodingException {
- byte[] bytes = new byte[length];
- for (int i = 0; i < length; i++){
- bytes[i] = byteData[i + offset];
- }
- return StandardCharsets.UTF_8.decode(ByteBuffer.wrap(bytes)).toString();
- }
-
- /**
- * Decode string.
- *
- * @param byteData the byte data
- * @param offset the offset
- * @param length the length
- * @return the string
- */
- private static String decodeString(byte[] byteData, int offset, int length) {
- byte[] bytes = new byte[length];
- for (int i = 0; i < length; i++){
- bytes[i] = byteData[i + offset];
- }
- return StandardCharsets.ISO_8859_1.decode(ByteBuffer.wrap(bytes)).toString();
- }
-
- /**
- * Encode utf-8.
- *
- * @param value the value
- * @return the byte[]
- */
- private static byte[] encodeUtf8(String value) {
-
- try {
- return value.getBytes("UTF-8");
- } catch (UnsupportedEncodingException e) {
- throw new RuntimeException("UTF8 String encoding wrong!",e);
- }
- }
-
- /**
- * To string.
- *
- * @return the string
- */
- public String toString() {
-
- StringBuilder sb = new StringBuilder();
-
- sb.append("TLB: ").append(layout.getLayoutStandard()).append('\n');
-
- for (LayoutElement e : layout.getElements()){
- sb.append("column: ").append(e.getColumn()).append(" - ");
- sb.append("line: ").append(e.getLine()).append(" - ");
- sb.append("width: ").append(e.getWidth()).append(" - ");
- sb.append("heigth: ").append(e.getHeight()).append(" - ");
- sb.append("text: ").append(e.getText()).append(" - ");
- sb.append("format: ").append(e.getFormat().toString()).append('\n');
- }
-
- return sb.toString();
-
- }
-
- /**
- * Decode content.
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- @Override
- protected void decodeContent() throws IOException, EncodingFormatException {
-
- layout = new TicketLayout();
-
- if (content == null || content.length == 0 ) return;
-
- int offset = 0;
-
- String layoutType = decodeString(content, offset , 4);
- layout.setLayoutStandard(layoutType);
- offset = offset + 4;
-
- String numberValue = decodeString(content, offset , 4);
- offset = offset + 4;
-
- int elements = 0;
- try {
- elements = Integer.parseInt(numberValue);
- } catch(NumberFormatException e){
- //Do Nothing
- }
-
- int remainingBytes = content.length - offset;
-
- for (int i = 0; i < elements && remainingBytes > 0 ;i++){
-
- String lineValue = decodeString(content, offset , 2);
- offset = offset + 2;
- int line = 0;
- try {
- line = Integer.parseInt(lineValue);
- } catch(NumberFormatException e){
- //Do Nothing
- }
- String columnValue = decodeString(content, offset , 2);
- offset = offset + 2;
- int column = 0;
- try {
- column = Integer.parseInt(columnValue);
- } catch(NumberFormatException e){
- //Do Nothing
- }
- String heightValue = decodeString(content, offset , 2);
- offset = offset + 2;
- int height = 0;
- try {
- height = Integer.parseInt(heightValue);
- } catch(NumberFormatException e){
- //Do Nothing
- }
- String widthValue = decodeString(content, offset , 2);
- offset = offset + 2;
- int width = 0;
- try {
- width = Integer.parseInt(widthValue);
- } catch(NumberFormatException e){
- //Do Nothing
- }
- String formatValue = decodeString(content, offset , 1);
- offset = offset + 1;
- int format = 0;
- try {
- format = Integer.parseInt(formatValue);
- } catch(NumberFormatException e){
- //Do Nothing
- }
- String lengthValue = decodeString(content, offset , 4);
- offset = offset + 4;
- int length = 0;
- try {
- length = Integer.parseInt(lengthValue);
- } catch(NumberFormatException e){
- //Do Nothing
- }
-
- String text;
- try {
- text = decodeUtf8String(content, offset ,length);
- } catch (UnsupportedEncodingException e) {
- text = "unsupported character set";
- }
- offset = offset + length;
-
- LayoutElement layoutElement = new LayoutElement();
-
- layoutElement.setColumn(column);
- layoutElement.setLine(line);
- layoutElement.setHeight(height);
- layoutElement.setWidth(width);
- layoutElement.setText(text);
-
- layoutElement.setFormat(FormatType.values()[format]);
-
- layout.addLayoutElement(layoutElement);
-
- }
-
- }
-
- /**
- * Encode content.
- *
- * @throws IOException Signals that an I/O exception has occurred.
- * @throws EncodingFormatException the encoding format exception
- */
- @Override
- protected void encodeContent() throws IOException, EncodingFormatException {
-
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
-
- if (layout == null || layout.getElements() == null || layout.getElements().isEmpty()) {
- return;
- }
-
- //number of text elements
- String numberOfFields = String.format("%04d",layout.getElements().size());
-
- outputStream.write(layout.getLayoutStandard().getBytes());
- outputStream.write(numberOfFields.getBytes());
-
- for (LayoutElement e : layout.getElements()){
-
- String line = String.format("%02d",e.getLine());
- String column = String.format("%02d",e.getColumn());
- String heigth = String.format("%02d",e.getHeight());
- String width = String.format("%02d",e.getWidth());
- String format = String.format("%01d",e.getFormat().ordinal());
- String size = String.format("%04d",encodeUtf8(e.getText()).length);
-
- outputStream.write(line.getBytes());
- outputStream.write(column.getBytes());
- outputStream.write(heigth.getBytes());
- outputStream.write(width.getBytes());
- outputStream.write(format.getBytes());
- outputStream.write(size.getBytes());
- outputStream.write(encodeUtf8(e.getText()));
-
- }
-
- content = outputStream.toByteArray();
- }
-
- /**
- * Sets the layout.
- *
- * @param layout the new layout
- */
- public void setLayout(TicketLayout layout) {
- this.layout = layout;
- }
-
-
- /**
- * Gets the layout.
- *
- * @return the layout
- */
- public TicketLayout getLayout() {
- return layout;
- }
-
-}
diff --git a/src/org/uic/barcode/staticFrame/package.html b/src/org/uic/barcode/staticFrame/package.html
deleted file mode 100644
index b76540b..0000000
--- a/src/org/uic/barcode/staticFrame/package.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-static bar code header frame
-
-Provides an implementation of the static bar code header frame specified in UIC IRS 90918-9 including:
-
-
- - encoding of the data for creating a bar code
- - decoding of data from bar code content
- - support for the additional header information required with the TLB content
- - support for the TLB bar code content
- - support for the FCB content (using the UIC FCB implementation)
- - support for bilaterally on unilaterally defined additional content
-
-
-
-
-
\ No newline at end of file
diff --git a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/FormatType.java b/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/FormatType.java
deleted file mode 100644
index e6b9414..0000000
--- a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/FormatType.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.uic.barcode.staticFrame.ticketLayoutBarcode;
-
-
-public enum FormatType {
- NORMAL("NORMAL"),
- BOLD("BOLD"),
- ITALIC("ITALIC"),
- BOLDITALIC("BOLDITALIC"),
- SMALL("SMALL"),
- SMALLBOLD("SMALLBOLD"),
- SMALLITALIC("SMALLITALIC"),
- SMALLBOLDITALIC("SMALLBOLDITALIC");
-
-
-
- public String text;
-
- FormatType(String text) {
- this.text = text;
- }
-
- public static FormatType getFormatType(int i) {
- try {
- return FormatType.values()[i];
- } catch (Exception e) {
- return null;
- }
- }
-
- public String toString(){
- return text;
- }
-
-}
diff --git a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/LayoutElement.java b/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/LayoutElement.java
deleted file mode 100644
index 861629d..0000000
--- a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/LayoutElement.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package org.uic.barcode.staticFrame.ticketLayoutBarcode;
-
-public class LayoutElement {
-
- private int column;
- private int line;
- private int height;
- private int width;
- private String text;
- private FormatType format = FormatType.NORMAL;
-
- public int getColumn() {
- return column;
- }
- public void setColumn(int column) {
- this.column = column;
- }
- public int getLine() {
- return line;
- }
- public void setLine(int line) {
- this.line = line;
- }
- public int getHeight() {
- return height;
- }
- public void setHeight(int height) {
- this.height = height;
- }
- public int getWidth() {
- return width;
- }
- public void setWidth(int width) {
- this.width = width;
- }
- public String getText() {
- return text;
- }
- public void setText(String text) {
- this.text = text;
- }
- public FormatType getFormat() {
- return format;
- }
- public void setFormat(FormatType format) {
- this.format = format;
- }
-
-
-}
diff --git a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/TicketLayout.java b/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/TicketLayout.java
deleted file mode 100644
index 8ca8083..0000000
--- a/src/org/uic/barcode/staticFrame/ticketLayoutBarcode/TicketLayout.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package org.uic.barcode.staticFrame.ticketLayoutBarcode;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public class TicketLayout {
-
- private String layoutStandard = "RCT2";
-
- /** The layout elements. */
- private List elements = new ArrayList();
-
-
- /**
- * Gets the layout standard.
- *
- * @return the layout standard
- */
- public String getLayoutStandard() {
- if (layoutStandard == null || layoutStandard.length() != 4) {
- layoutStandard = "RCT2";
- }
- return layoutStandard;
- }
-
- /**
- * Sets the layout standard.
- *
- * @param layoutStandard the new layout standard
- */
- public void setLayoutStandard(String layoutStandard) {
- this.layoutStandard = layoutStandard;
- }
-
- /**
- * Adds the layout element.
- *
- * @param element the element
- */
- public void addLayoutElement(LayoutElement element){
- elements.add(element);
- }
-
- /**
- * Removes the layout elements.
- */
- public void removeLayoutElements(){
- elements.clear();
- }
-
- /**
- * Gets the elements.
- *
- * @return the elements
- */
- public List getElements(){
- return elements;
- }
-
-
-}
diff --git a/src/org/uic/barcode/test/DynamicFrameDoubleSignatureTest.java b/src/org/uic/barcode/test/DynamicFrameDoubleSignatureTest.java
deleted file mode 100644
index aa377e8..0000000
--- a/src/org/uic/barcode/test/DynamicFrameDoubleSignatureTest.java
+++ /dev/null
@@ -1,212 +0,0 @@
-package org.uic.barcode.test;
-
-import java.io.IOException;
-import java.security.InvalidAlgorithmParameterException;
-import java.security.InvalidKeyException;
-import java.security.KeyPair;
-import java.security.KeyPairGenerator;
-import java.security.NoSuchAlgorithmException;
-import java.security.NoSuchProviderException;
-import java.security.SecureRandom;
-import java.security.Security;
-import java.security.SignatureException;
-import java.util.Arrays;
-import java.util.zip.DataFormatException;
-
-import org.bouncycastle.jce.ECNamedCurveTable;
-import org.bouncycastle.jce.provider.BouncyCastleProvider;
-import org.bouncycastle.jce.spec.ECParameterSpec;
-import org.junit.Before;
-import org.junit.Test;
-import org.uic.barcode.Decoder;
-import org.uic.barcode.Encoder;
-import org.uic.barcode.dynamicFrame.Constants;
-import org.uic.barcode.dynamicFrame.DataType;
-import org.uic.barcode.test.utils.Level2TestDataFactory;
-import org.uic.barcode.test.utils.SimpleUICTestTicket;
-import org.uic.barcode.ticket.EncodingFormatException;
-import org.uic.barcode.ticket.api.spec.IUicRailTicket;
-import org.uic.barcode.utils.AlgorithmNameResolver;
-
-public class DynamicFrameDoubleSignatureTest {
-
- public String signatureAlgorithmOID = null;
- public String elipticCurve = null;
- public String keyPairAlgorithmOID = null;
-
- public KeyPair keyPairLevel1 = null;
- public KeyPair keyPairLevel2 = null;
-
- public IUicRailTicket testFCBticket = null;
-
-
- @Before public void initialize() {
-
- signatureAlgorithmOID = Constants.ECDSA_SHA256;
- keyPairAlgorithmOID = Constants.KG_EC_256;
- elipticCurve = "secp256k1";
-
- testFCBticket = SimpleUICTestTicket.getUicTestTicket();
-
- Security.addProvider(new BouncyCastleProvider());
-
- try {
- keyPairLevel1 = generateECKeys(keyPairAlgorithmOID, elipticCurve);
- keyPairLevel2 = generateECKeys(keyPairAlgorithmOID, elipticCurve);
- } catch (Exception e) {
- assert(false);
- }
-
- assert(keyPairLevel1 != null);
-
- }
-
-
- @Test public void testDynamicHeaderBarcodeEncoding() {
-
- IUicRailTicket ticket = testFCBticket;
-
- Encoder enc = null;
-
- try {
- enc = new Encoder(ticket, null, Encoder.UIC_BARCODE_TYPE_DOSIPAS, 1, 13);
- } catch (IOException | EncodingFormatException e1) {
- assert(false);
- }
-
- assert(enc != null);
-
- try {
- enc.setLevel1Algs(signatureAlgorithmOID, keyPairAlgorithmOID);
- enc.setLevel2Algs(signatureAlgorithmOID, keyPairAlgorithmOID,keyPairLevel2.getPublic());
- enc.signLevel1("1080", keyPairLevel1.getPrivate(), signatureAlgorithmOID, "1");
- } catch (Exception e) {
- assert(false);
- }
-
- assert(enc != null);
-
- try {
- enc.setLevel2Data(Level2TestDataFactory.getLevel2SimpleTestData());
- enc.signLevel2(keyPairLevel2.getPrivate());
- } catch (Exception e) {
- assert(false);
- }
-
-
- byte[] encoded = null;
- try {
- encoded = enc.encode();
- } catch (Exception e) {
- assert(false);
- }
-
- assert(encoded != null);
-
-
-
- }
-
- @Test public void testDynamicHeaderBarcodeDecoding() {
-
- IUicRailTicket ticket = testFCBticket;
-
- Encoder enc = null;
-
- try {
- enc = new Encoder(ticket, null, Encoder.UIC_BARCODE_TYPE_DOSIPAS, 1, 13);
- } catch (IOException | EncodingFormatException e1) {
- assert(false);
- }
-
- assert(enc != null);
-
- try {
- enc.setLevel1Algs(signatureAlgorithmOID, keyPairAlgorithmOID);
- enc.setLevel2Algs(signatureAlgorithmOID, keyPairAlgorithmOID,keyPairLevel2.getPublic());
- enc.signLevel1("1080", keyPairLevel1.getPrivate(), signatureAlgorithmOID, "1");
- } catch (Exception e) {
- assert(false);
- }
-
- assert(enc != null);
-
-
- DataType level2Data = Level2TestDataFactory.getLevel2SimpleTestData();
- try {
- enc.setLevel2Data(level2Data);
- enc.signLevel2(keyPairLevel2.getPrivate());
- } catch (Exception e) {
- assert(false);
- }
-
-
- byte[] encoded = null;
- try {
- encoded = enc.encode();
- } catch (Exception e) {
- assert(false);
- }
-
- assert(encoded != null);
-
- Decoder dec = null;
- try {
- dec = new Decoder(encoded);
- } catch (IOException e) {
- assert(false);
- } catch (EncodingFormatException e) {
- assert(false);
- } catch (DataFormatException e) {
- assert(false);
- }
- assert(dec != null);
-
- int signatureCheck = 0;
- try {
- signatureCheck = dec.validateLevel1(keyPairLevel1.getPublic(),null);
- } catch (InvalidKeyException | NoSuchAlgorithmException | SignatureException | IllegalArgumentException
- | UnsupportedOperationException | IOException | EncodingFormatException e) {
- assert(false);
- }
- assert(signatureCheck == Constants.LEVEL1_VALIDATION_OK);
-
- signatureCheck = 0;
- try {
- signatureCheck = dec.validateLevel2();
- } catch (IllegalArgumentException | UnsupportedOperationException e) {
- assert(false);
- }
- assert(signatureCheck == Constants.LEVEL2_VALIDATION_OK);
-
-
- DataType level2DataDec = dec.getLevel2Data();
-
- assert(level2Data.getFormat().equals(level2DataDec.getFormat()));
- assert(Arrays.equals(level2Data.getData().toByteArray(),level2DataDec.getData().toByteArray()));
-
- SimpleUICTestTicket.compare(ticket, dec.getUicTicket());
-
-
- }
-
- public KeyPair generateECDSAKeys(String keyAlgorithmName, String paramName) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException{
- ECParameterSpec ecSpec = ECNamedCurveTable.getParameterSpec(paramName);
- KeyPairGenerator g = KeyPairGenerator.getInstance(keyAlgorithmName, "BC");
- g.initialize(ecSpec, new SecureRandom());
- return g.generateKeyPair();
- }
-
- public KeyPair generateECKeys(String keyAlgorithmOid, String curve) throws Exception{
-
- String keyAlgorithmName = AlgorithmNameResolver.getName(AlgorithmNameResolver.TYPE_KEY_GENERATOR_ALG, keyAlgorithmOid, "BC");
-
- keyAlgorithmName = "ECDSA";
- ECParameterSpec ecSpec = ECNamedCurveTable.getParameterSpec(curve);
- KeyPairGenerator g = KeyPairGenerator.getInstance(keyAlgorithmName, "BC");
- g.initialize(ecSpec, new SecureRandom());
- return g.generateKeyPair();
- }
-
-
-}
diff --git a/src/org/uic/barcode/test/DynamicFrameLOwLevelTest.java b/src/org/uic/barcode/test/DynamicFrameLOwLevelTest.java
deleted file mode 100644
index 5dd9668..0000000
--- a/src/org/uic/barcode/test/DynamicFrameLOwLevelTest.java
+++ /dev/null
@@ -1,115 +0,0 @@
-package org.uic.barcode.test;
-
-import java.security.InvalidAlgorithmParameterException;
-import java.security.KeyFactory;
-import java.security.KeyPair;
-import java.security.KeyPairGenerator;
-import java.security.NoSuchAlgorithmException;
-import java.security.NoSuchProviderException;
-import java.security.PrivateKey;
-import java.security.PublicKey;
-import java.security.SecureRandom;
-import java.security.Security;
-import java.security.spec.InvalidKeySpecException;
-import java.security.spec.PKCS8EncodedKeySpec;
-import java.security.spec.X509EncodedKeySpec;
-
-import org.bouncycastle.jce.ECNamedCurveTable;
-import org.bouncycastle.jce.provider.BouncyCastleProvider;
-import org.bouncycastle.jce.spec.ECParameterSpec;
-import org.junit.Before;
-import org.junit.Test;
-import org.uic.barcode.asn1.uper.UperEncoder;
-import org.uic.barcode.dynamicFrame.Constants;
-import org.uic.barcode.dynamicFrame.DynamicFrame;
-import org.uic.barcode.test.utils.SimpleDynamicFrameTestBarcode;
-
-public class DynamicFrameLOwLevelTest {
-
- public String algorithmOID = Constants.ECDSA_SHA256;
- public KeyPair keyPair = null;
- public String publicKeyHex = "3081A7301006072A8648CE3D020106052B81040027038192000405B2797BB27F96EC3769B81E563EEB97A4CE3B5BB4EE19BC90A3F496B805644AA042736E5FA9B3A5FBEA5B01CD1D9EC13C009F9655B31FFF9AA52AC6D90B5D6220B58853A1D18BF20779BE5C52356AE70B19242065F82B76961E2A079F42CA9A41A1AB4D5518446AC3721953AE6323C60E15389498DE5F592A24DDDA45F736D93695C797C0F28A712EC25B9CD8078457";
- public String privateKeyHex = "30820109020100301006072A8648CE3D020106052B810400270481F13081EE020101044801EF44914319A5DD528C06419D7B0FD0CDD7F62A231BEB197E45A0074C02E11FE82ABAD916BE94FD8256260AA9191F19241CFC7E372B3A4E0ADA06CCA51678C54198667DFC9B0DA8A00706052B81040027A18195038192000405B2797BB27F96EC3769B81E563EEB97A4CE3B5BB4EE19BC90A3F496B805644AA042736E5FA9B3A5FBEA5B01CD1D9EC13C009F9655B31FFF9AA52AC6D90B5D6220B58853A1D18BF20779BE5C52356AE70B19242065F82B76961E2A079F42CA9A41A1AB4D5518446AC3721953AE6323C60E15389498DE5F592A24DDDA45F736D93695C797C0F28A712EC25B9CD8078457";
-
- public String hexReferenceContent = "400EAC986010DF80A021DE008808014374F3E7D72F2A9979F4A13A90086280B40020894DED0DC0688DEEE0AC593368D60220DCF2EED3BF903B6BCA3B937BAB801280EB44AC0505B4200000000100E6F70656E5469636B6574496E666F120220103B830B9B9B0B3B28084A0B6B9BA32B93230B680202F698040100B20004C6C8020404E9979F40201620505B402C80A0F68020AA192338F4100C08008097308194024800DA0C61105BAD7E13ADF9D5A00CBC47732865EA67E8371A5FBE38B4FABBBABD37459D12048DA6664700E787C32962A607A784FD2FC669A9A8EC9F91CD53AF2B922EFECE24FF3D68024800A1F7CF1C0625FB19CF089E74D668F5E8C15179BEF7BA79D9D169A12FA47F6340ED50BADB57CD83110060FEC08B1EF978C6DB08A172B0DE20C442D4507442623A74A624457590040";
-
-
- @Before public void initialize() {
-
- Security.addProvider(new BouncyCastleProvider());
-
- try {
- keyPair = generateECDSAKeys();
- } catch (NoSuchAlgorithmException | NoSuchProviderException | InvalidAlgorithmParameterException e) {
- e.printStackTrace();
- }
- privateKeyHex = UperEncoder.hexStringFromBytes(keyPair.getPrivate().getEncoded());
- publicKeyHex = UperEncoder.hexStringFromBytes(keyPair.getPublic().getEncoded());
-
- assert(keyPair != null);
-
- try {
- PublicKey publicKey = KeyFactory.getInstance("ECDSA").generatePublic(new X509EncodedKeySpec(UperEncoder.bytesFromHexString(publicKeyHex)));
- PrivateKey privateKey = KeyFactory.getInstance("ECDSA").generatePrivate(new PKCS8EncodedKeySpec(UperEncoder.bytesFromHexString(privateKeyHex)));
- keyPair = new KeyPair(publicKey,privateKey);
- } catch (InvalidKeySpecException | NoSuchAlgorithmException e) {
- e.printStackTrace();
- }
- assert(keyPair != null);
-
- }
-
-
- @Test public void testDynamicHeaderBarcodeEncoding() {
-
- DynamicFrame barcode1 = SimpleDynamicFrameTestBarcode.getSimpleDynamicHeaderBarcode(algorithmOID, keyPair);
-
- byte[] encoded = barcode1.encode();
-
- //String hex = UperEncoder.hexStringFromBytes(encoded);
-
- /*
- * check the available implementations
- String s = null;
- try {
- s = AlgorithmNameResolver.getSecurityNames();
- } catch (Exception e) {
- e.printStackTrace();
- }
- */
-
-
- //note: hex is different each time due to the random seed in the signature
- assert(encoded != null);
-
- }
-
- @Test public void testDynamicHeaderBarcodeDecoding() {
-
- DynamicFrame barcode1 = SimpleDynamicFrameTestBarcode.getSimpleDynamicHeaderBarcode(algorithmOID, keyPair);
-
- byte[] encoded = barcode1.encode();
-
- DynamicFrame barcode = DynamicFrame.decode(encoded);
-
- int signatureCheck = barcode.validateLevel1(keyPair.getPublic());
-
- assert(signatureCheck == Constants.LEVEL1_VALIDATION_OK);
-
- SimpleDynamicFrameTestBarcode.compareFrame(barcode1, barcode);
-
-
-
-
- }
-
- public KeyPair generateECDSAKeys() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException{
- ECParameterSpec ecSpec = ECNamedCurveTable.getParameterSpec("B-571");
- KeyPairGenerator g = KeyPairGenerator.getInstance("ECDSA", "BC");
- g.initialize(ecSpec, new SecureRandom());
- return g.generateKeyPair();
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/test/DynamicFrameSimpleTest.java b/src/org/uic/barcode/test/DynamicFrameSimpleTest.java
deleted file mode 100644
index a3a1b0e..0000000
--- a/src/org/uic/barcode/test/DynamicFrameSimpleTest.java
+++ /dev/null
@@ -1,171 +0,0 @@
-package org.uic.barcode.test;
-
-import java.io.IOException;
-import java.security.InvalidAlgorithmParameterException;
-import java.security.InvalidKeyException;
-import java.security.KeyPair;
-import java.security.KeyPairGenerator;
-import java.security.NoSuchAlgorithmException;
-import java.security.NoSuchProviderException;
-import java.security.SecureRandom;
-import java.security.Security;
-import java.security.SignatureException;
-import java.util.zip.DataFormatException;
-
-import org.bouncycastle.jce.ECNamedCurveTable;
-import org.bouncycastle.jce.provider.BouncyCastleProvider;
-import org.bouncycastle.jce.spec.ECParameterSpec;
-import org.junit.Before;
-import org.junit.Test;
-import org.uic.barcode.Decoder;
-import org.uic.barcode.Encoder;
-import org.uic.barcode.dynamicFrame.Constants;
-import org.uic.barcode.test.utils.SimpleUICTestTicket;
-import org.uic.barcode.ticket.EncodingFormatException;
-import org.uic.barcode.ticket.api.spec.IUicRailTicket;
-import org.uic.barcode.utils.AlgorithmNameResolver;
-
-public class DynamicFrameSimpleTest {
-
- public String signatureAlgorithmOID = null;
- public String elipticCurve = null;
- public String keyPairAlgorithmOID = null;
-
- public KeyPair keyPair = null;
-
- public IUicRailTicket testFCBticket = null;
-
-
- @Before public void initialize() {
-
- signatureAlgorithmOID = Constants.ECDSA_SHA256;
- keyPairAlgorithmOID = Constants.KG_EC_256;
- elipticCurve = "secp256k1";
-
- testFCBticket = SimpleUICTestTicket.getUicTestTicket();
-
- Security.addProvider(new BouncyCastleProvider());
-
- try {
- keyPair = generateECKeys(Constants.KG_EC, elipticCurve);
- //keyPair = generateECDSAKeys("ECDSA", "B-571");
- } catch (Exception e) {
- assert(false);
- }
-
- assert(keyPair != null);
-
- }
-
-
- @Test public void testDynamicHeaderBarcodeEncoding() {
-
- IUicRailTicket ticket = testFCBticket;
-
- Encoder enc = null;
-
- try {
- enc = new Encoder(ticket, null, Encoder.UIC_BARCODE_TYPE_DOSIPAS, 1, 13);
- } catch (IOException | EncodingFormatException e1) {
- assert(false);
- }
-
- assert(enc != null);
-
- try {
- enc.signLevel1("1080", keyPair.getPrivate(), signatureAlgorithmOID, "1");
- } catch (Exception e) {
- assert(false);
- }
-
-
- byte[] encoded = null;
- try {
- encoded = enc.encode();
- } catch (Exception e) {
- assert(false);
- }
-
- assert(encoded != null);
-
-
-
- }
-
- @Test public void testDynamicHeaderBarcodeDecoding() {
-
- IUicRailTicket ticket = testFCBticket;
-
- Encoder enc = null;
-
- try {
- enc = new Encoder(ticket, null, Encoder.UIC_BARCODE_TYPE_DOSIPAS, 1, 13);
- } catch (IOException | EncodingFormatException e1) {
- assert(false);
- }
-
- assert(enc != null);
-
- try {
- enc.signLevel1("1080", keyPair.getPrivate(), signatureAlgorithmOID, "1");
- } catch (Exception e) {
- assert(false);
- }
-
-
- byte[] encoded = null;
- try {
- encoded = enc.encode();
- } catch (Exception e) {
- assert(false);
- }
-
- assert(encoded != null);
-
- Decoder dec = null;
- try {
- dec = new Decoder(encoded);
- } catch (IOException e) {
- assert(false);
- } catch (EncodingFormatException e) {
- assert(false);
- } catch (DataFormatException e) {
- assert(false);
- }
- assert(dec != null);
-
- int signatureCheck = 0;
- try {
- signatureCheck = dec.validateLevel1(keyPair.getPublic(),null);
- } catch (InvalidKeyException | NoSuchAlgorithmException | SignatureException | IllegalArgumentException
- | UnsupportedOperationException | IOException | EncodingFormatException e) {
- assert(false);
- }
-
- assert(signatureCheck == Constants.LEVEL1_VALIDATION_OK);
-
- SimpleUICTestTicket.compare(ticket, dec.getUicTicket());
-
-
- }
-
- public KeyPair generateECDSAKeys(String keyAlgorithmName, String paramName) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException{
- ECParameterSpec ecSpec = ECNamedCurveTable.getParameterSpec(paramName);
- KeyPairGenerator g = KeyPairGenerator.getInstance(keyAlgorithmName, "BC");
- g.initialize(ecSpec, new SecureRandom());
- return g.generateKeyPair();
- }
-
- public KeyPair generateECKeys(String keyAlgorithmOid, String curve) throws Exception{
-
- String keyAlgorithmName = AlgorithmNameResolver.getName(AlgorithmNameResolver.TYPE_KEY_GENERATOR_ALG, keyAlgorithmOid, "BC");
-
- keyAlgorithmName = "ECDSA";
- ECParameterSpec ecSpec = ECNamedCurveTable.getParameterSpec(curve);
- KeyPairGenerator g = KeyPairGenerator.getInstance(keyAlgorithmName, "BC");
- g.initialize(ecSpec, new SecureRandom());
- return g.generateKeyPair();
- }
-
-
-}
diff --git a/src/org/uic/barcode/test/SignatureSplitTest.java b/src/org/uic/barcode/test/SignatureSplitTest.java
deleted file mode 100644
index 08fe3ad..0000000
--- a/src/org/uic/barcode/test/SignatureSplitTest.java
+++ /dev/null
@@ -1,76 +0,0 @@
-package org.uic.barcode.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.io.IOException;
-import java.math.BigInteger;
-
-import org.junit.Test;
-import org.uic.barcode.staticFrame.StaticFrame;
-import org.uic.barcode.test.utils.TestUtils;
-import org.uic.barcode.ticket.EncodingFormatException;
-
-public class SignatureSplitTest {
-
-
- /*
- *
- *
- * World-Schema DEFINITIONS AUTOMATIC TAGS ::=
- BEGIN
- Signature ::= SEQUENCE OF INTEGER
- END
-
-
- value Signature ::= {
- 340282366920938463,
- 134515671861986
- }
-
-
- Encoding using DER encoding rule
- Signature SEQUENCE OF: tag = [UNIVERSAL 16] constructed; length = 18
- INTEGER: tag = [UNIVERSAL 2] primitive; length = 8
- 340282366920938463
- INTEGER: tag = [UNIVERSAL 2] primitive; length = 6
- 134515671861986
- Encoded successfully in 20 bytes: 30120208 04B8ED02 83A6D3DF 02067A57 5ED68AE2
-
-
- *
- *
- */
-
-
- @Test public void testSplitSignature() throws IOException, EncodingFormatException{
-
- BigInteger i1 = BigInteger.valueOf(340282366920938463L);
- BigInteger i2 = BigInteger.valueOf(134515671861986L);
-
- byte[] encoded = StaticFrame.encodeSignatureIntegerSequence(i1,i2);
-
-
- String hex = TestUtils.hexStringFromBytes(encoded);
-
- assertEquals(hex,"3012020804B8ED0283A6D3DF02067A575ED68AE2");
-
- BigInteger[] ints = null;
- try {
- ints = StaticFrame.decodeSignatureIntegerSequence(encoded);
- } catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
-
- assert(ints != null);
-
- assert(ints.length == 2);
-
- assert(i1.equals(ints[0]));
-
- assert(i2.equals(ints[1]));
-
- }
-
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/test/StaticFrameBarcodeTest.java b/src/org/uic/barcode/test/StaticFrameBarcodeTest.java
deleted file mode 100644
index 9600191..0000000
--- a/src/org/uic/barcode/test/StaticFrameBarcodeTest.java
+++ /dev/null
@@ -1,193 +0,0 @@
-package org.uic.barcode.test;
-
-import java.io.IOException;
-import java.security.InvalidAlgorithmParameterException;
-import java.security.InvalidKeyException;
-import java.security.KeyPair;
-import java.security.KeyPairGenerator;
-import java.security.NoSuchAlgorithmException;
-import java.security.NoSuchProviderException;
-import java.security.SecureRandom;
-import java.security.Security;
-import java.security.SignatureException;
-import java.util.zip.DataFormatException;
-
-import org.bouncycastle.jce.provider.BouncyCastleProvider;
-import org.junit.Before;
-import org.junit.Test;
-import org.uic.barcode.Decoder;
-import org.uic.barcode.Encoder;
-import org.uic.barcode.dynamicFrame.Constants;
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.TicketLayout;
-import org.uic.barcode.test.utils.SimpleTestTicketLayout;
-import org.uic.barcode.test.utils.SimpleUICTestTicket;
-import org.uic.barcode.ticket.EncodingFormatException;
-import org.uic.barcode.ticket.api.spec.IUicRailTicket;
-
-/**
- * The Class StaticFrameBarcodeTest.
- */
-public class StaticFrameBarcodeTest {
-
- /** The algorithm OID. */
- public String algorithmOID = Constants.DSA_SHA224;
-
- public int keySize = 2048;
-
- /** The key pair. */
- public KeyPair keyPair = null;
-
-
- public IUicRailTicket testFCBticket = null;
-
- public TicketLayout testLayout = null;
-
-
- /**
- * Initialize.
- *
- * set the signature algorithm
- * generate a key pair
- * set the test content
- * for ticket and layout
- */
- @Before public void initialize() {
-
- algorithmOID = Constants.DSA_SHA224;
- keySize = 2048;
- testFCBticket = SimpleUICTestTicket.getUicTestTicket();
- testLayout = SimpleTestTicketLayout.getSimpleTestTicketLayout();
-
- Security.addProvider(new BouncyCastleProvider());
-
- try {
- keyPair = generateDSAKeys(keySize);
- } catch (NoSuchAlgorithmException | NoSuchProviderException | InvalidAlgorithmParameterException e) {
- e.printStackTrace();
- }
-
- assert(keyPair != null);
-
- }
-
-
- /**
- * Test dynamic header barcode encoding.
- */
- @Test public void testDynamicHeaderBarcodeEncoding() {
-
- IUicRailTicket ticket = testFCBticket;
-
- TicketLayout layout = testLayout;
-
- Encoder enc = null;
-
- try {
- enc = new Encoder(ticket, layout, Encoder.UIC_BARCODE_TYPE_CLASSIC, 2, 13);
- } catch (IOException | EncodingFormatException e1) {
- assert(false);
- }
-
- enc.setStaticHeaderParams("123456789012", "de");
-
- assert(enc != null);
-
- try {
- enc.signLevel1("1080", keyPair.getPrivate(), algorithmOID, "1");
- } catch (Exception e) {
- assert(false);
- }
-
- byte[] encoded = null;
- try {
- encoded = enc.encode();
- } catch (Exception e) {
- assert(false);
- }
-
- assert(encoded != null);
-
- }
-
- /**
- * Test dynamic header barcode decoding.
- */
- @Test public void testDynamicHeaderBarcodeDecoding() {
-
-
- IUicRailTicket ticket = testFCBticket;
-
- TicketLayout layout = testLayout;
-
-
- Encoder enc = null;
-
- try {
- enc = new Encoder(ticket, layout, Encoder.UIC_BARCODE_TYPE_CLASSIC, 2, 13);
- } catch (IOException | EncodingFormatException e1) {
- assert(false);
- }
-
- enc.setStaticHeaderParams("123456789012", "de");
-
- assert(enc != null);
-
- try {
- enc.signLevel1("1080", keyPair.getPrivate(), algorithmOID, "1");
- } catch (Exception e) {
- assert(false);
- }
-
-
- byte[] encoded = null;
- try {
- encoded = enc.encode();
- } catch (Exception e) {
- assert(false);
- }
-
- assert(encoded != null);
-
- Decoder dec = null;
- try {
- dec = new Decoder(encoded);
- } catch (IOException e) {
- assert(false);
- } catch (EncodingFormatException e) {
- assert(false);
- } catch (DataFormatException e) {
- assert(false);
- }
- assert(dec != null);
-
- int signatureCheck = 0;
- try {
- signatureCheck = dec.validateLevel1(keyPair.getPublic(),algorithmOID);
- } catch (InvalidKeyException | NoSuchAlgorithmException | SignatureException | IllegalArgumentException
- | UnsupportedOperationException | IOException | EncodingFormatException e) {
- assert(false);
- }
-
- assert(signatureCheck == Constants.LEVEL1_VALIDATION_OK);
-
- SimpleUICTestTicket.compare(ticket, dec.getUicTicket());
-
- SimpleTestTicketLayout.compare(layout, dec.getLayout());
-
- }
-
- /**
- * Generate DSA keys.
- *
- * @return the key pair
- * @throws NoSuchAlgorithmException the no such algorithm exception
- * @throws NoSuchProviderException the no such provider exception
- * @throws InvalidAlgorithmParameterException the invalid algorithm parameter exception
- */
- public KeyPair generateDSAKeys(int keySize) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException{
- KeyPairGenerator g = KeyPairGenerator.getInstance("DSA", "BC");
- g.initialize(keySize, new SecureRandom());
- return g.generateKeyPair();
- }
-
-}
diff --git a/src/org/uic/barcode/test/StaticFrameBarcodeTestFCB2.java b/src/org/uic/barcode/test/StaticFrameBarcodeTestFCB2.java
deleted file mode 100644
index 048d684..0000000
--- a/src/org/uic/barcode/test/StaticFrameBarcodeTestFCB2.java
+++ /dev/null
@@ -1,193 +0,0 @@
-package org.uic.barcode.test;
-
-import java.io.IOException;
-import java.security.InvalidAlgorithmParameterException;
-import java.security.InvalidKeyException;
-import java.security.KeyPair;
-import java.security.KeyPairGenerator;
-import java.security.NoSuchAlgorithmException;
-import java.security.NoSuchProviderException;
-import java.security.SecureRandom;
-import java.security.Security;
-import java.security.SignatureException;
-import java.util.zip.DataFormatException;
-
-import org.bouncycastle.jce.provider.BouncyCastleProvider;
-import org.junit.Before;
-import org.junit.Test;
-import org.uic.barcode.Decoder;
-import org.uic.barcode.Encoder;
-import org.uic.barcode.dynamicFrame.Constants;
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.TicketLayout;
-import org.uic.barcode.test.utils.SimpleTestTicketLayout;
-import org.uic.barcode.test.utils.SimpleUICTestTicket;
-import org.uic.barcode.ticket.EncodingFormatException;
-import org.uic.barcode.ticket.api.spec.IUicRailTicket;
-
-/**
- * The Class StaticFrameBarcodeTest.
- */
-public class StaticFrameBarcodeTestFCB2 {
-
- /** The algorithm OID. */
- public String algorithmOID = Constants.DSA_SHA224;
-
- public int keySize = 2048;
-
- /** The key pair. */
- public KeyPair keyPair = null;
-
-
- public IUicRailTicket testFCBticket = null;
-
- public TicketLayout testLayout = null;
-
-
- /**
- * Initialize.
- *
- * set the signature algorithm
- * generate a key pair
- * set the test content
- * for ticket and layout
- */
- @Before public void initialize() {
-
- algorithmOID = Constants.DSA_SHA224;
- keySize = 2048;
- testFCBticket = SimpleUICTestTicket.getUicTestTicket();
- testLayout = SimpleTestTicketLayout.getSimpleTestTicketLayout();
-
- Security.addProvider(new BouncyCastleProvider());
-
- try {
- keyPair = generateDSAKeys(keySize);
- } catch (NoSuchAlgorithmException | NoSuchProviderException | InvalidAlgorithmParameterException e) {
- e.printStackTrace();
- }
-
- assert(keyPair != null);
-
- }
-
-
- /**
- * Test dynamic header barcode encoding.
- */
- @Test public void testStaticHeaderBarcodeEncoding() {
-
- IUicRailTicket ticket = testFCBticket;
-
- TicketLayout layout = testLayout;
-
- Encoder enc = null;
-
- try {
- enc = new Encoder(ticket, layout, Encoder.UIC_BARCODE_TYPE_CLASSIC, 2, 2);
- } catch (IOException | EncodingFormatException e1) {
- assert(false);
- }
-
- enc.setStaticHeaderParams("123456789012", "de");
-
- assert(enc != null);
-
- try {
- enc.signLevel1("1080", keyPair.getPrivate(), algorithmOID, "1");
- } catch (Exception e) {
- assert(false);
- }
-
- byte[] encoded = null;
- try {
- encoded = enc.encode();
- } catch (Exception e) {
- assert(false);
- }
-
- assert(encoded != null);
-
- }
-
- /**
- * Test dynamic header barcode decoding.
- */
- @Test public void testStaticHeaderBarcodeDecoding() {
-
-
- IUicRailTicket ticket = testFCBticket;
-
- TicketLayout layout = testLayout;
-
-
- Encoder enc = null;
-
- try {
- enc = new Encoder(ticket, layout, Encoder.UIC_BARCODE_TYPE_CLASSIC, 2, 2);
- } catch (IOException | EncodingFormatException e1) {
- assert(false);
- }
-
- enc.setStaticHeaderParams("123456789012", "de");
-
- assert(enc != null);
-
- try {
- enc.signLevel1("1080", keyPair.getPrivate(), algorithmOID, "1");
- } catch (Exception e) {
- assert(false);
- }
-
-
- byte[] encoded = null;
- try {
- encoded = enc.encode();
- } catch (Exception e) {
- assert(false);
- }
-
- assert(encoded != null);
-
- Decoder dec = null;
- try {
- dec = new Decoder(encoded);
- } catch (IOException e) {
- assert(false);
- } catch (EncodingFormatException e) {
- assert(false);
- } catch (DataFormatException e) {
- assert(false);
- }
- assert(dec != null);
-
- int signatureCheck = 0;
- try {
- signatureCheck = dec.validateLevel1(keyPair.getPublic(),algorithmOID);
- } catch (InvalidKeyException | NoSuchAlgorithmException | SignatureException | IllegalArgumentException
- | UnsupportedOperationException | IOException | EncodingFormatException e) {
- assert(false);
- }
-
- assert(signatureCheck == Constants.LEVEL1_VALIDATION_OK);
-
- SimpleUICTestTicket.compare(ticket, dec.getUicTicket());
-
- SimpleTestTicketLayout.compare(layout, dec.getLayout());
-
- }
-
- /**
- * Generate DSA keys.
- *
- * @return the key pair
- * @throws NoSuchAlgorithmException the no such algorithm exception
- * @throws NoSuchProviderException the no such provider exception
- * @throws InvalidAlgorithmParameterException the invalid algorithm parameter exception
- */
- public KeyPair generateDSAKeys(int keySize) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException{
- KeyPairGenerator g = KeyPairGenerator.getInstance("DSA", "BC");
- g.initialize(keySize, new SecureRandom());
- return g.generateKeyPair();
- }
-
-}
diff --git a/src/org/uic/barcode/test/TicketLayoutTest.java b/src/org/uic/barcode/test/TicketLayoutTest.java
deleted file mode 100644
index 3d053e7..0000000
--- a/src/org/uic/barcode/test/TicketLayoutTest.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package org.uic.barcode.test;
-
-import static org.junit.Assert.assertEquals;
-
-import java.io.IOException;
-
-import org.junit.Test;
-import org.uic.barcode.staticFrame.UTLAYDataRecord;
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.LayoutElement;
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.TicketLayout;
-import org.uic.barcode.test.utils.SimpleTestTicketLayout;
-import org.uic.barcode.test.utils.TestUtils;
-import org.uic.barcode.ticket.EncodingFormatException;
-
-
-public class TicketLayoutTest {
-
-
- @Test public void testTicketLayout() throws IOException, EncodingFormatException{
-
- UTLAYDataRecord tl1 = new UTLAYDataRecord();
-
- TicketLayout layout = SimpleTestTicketLayout.getSimpleTestTicketLayout();
- tl1.setLayout(layout);
-
- byte[] encoded = null;
- try {
- encoded = tl1.encode();
- } catch (IOException e) {
- throw (e);
- }
-
- String hex = TestUtils.hexStringFromBytes(encoded);
-
- assertEquals(hex,"555F544C41593031303034305243543230303031303130313031323030303030374DC3BC6C6C6572");
-
- UTLAYDataRecord tl2 = new UTLAYDataRecord();
-
- tl2.decode(tl1.encode());
-
-
- assertEquals(tl1.toString(),tl2.toString());
-
- compare(layout, tl2.getLayout());
-
- }
-
- public static void compare(TicketLayout layout1, TicketLayout layout2) {
-
- assert(layout1.getLayoutStandard().equals(layout2.getLayoutStandard()));
-
- for (LayoutElement e1: layout1.getElements() ) {
-
- for (LayoutElement e2 :layout2.getElements()) {
-
- boolean found = false;
- if (e1.getLine() == e2.getLine() && e1.getColumn() == e2.getColumn()) {
- found = true;
- assert(e1.getText().equals(e2.getText()));
- }
- assert(found == true);
-
- }
-
- }
-
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/test/utils/Level2TestDataFactory.java b/src/org/uic/barcode/test/utils/Level2TestDataFactory.java
deleted file mode 100644
index b1eb0f5..0000000
--- a/src/org/uic/barcode/test/utils/Level2TestDataFactory.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package org.uic.barcode.test.utils;
-
-import org.uic.barcode.asn1.datatypesimpl.OctetString;
-import org.uic.barcode.dynamicFrame.DataType;
-
-public class Level2TestDataFactory {
-
- public static DataType getLevel2SimpleTestData() {
-
- String testContent = "2020.10.01T12:12.20";
-
- DataType level2Data = new DataType();
- level2Data.setFormat("TEST");
- level2Data.setData(new OctetString(testContent.getBytes()));
-
- return level2Data;
- }
-
-}
diff --git a/src/org/uic/barcode/test/utils/SimpleDynamicFrameTestBarcode.java b/src/org/uic/barcode/test/utils/SimpleDynamicFrameTestBarcode.java
deleted file mode 100644
index 0060fcd..0000000
--- a/src/org/uic/barcode/test/utils/SimpleDynamicFrameTestBarcode.java
+++ /dev/null
@@ -1,80 +0,0 @@
-package org.uic.barcode.test.utils;
-
-import java.security.KeyPair;
-
-import org.uic.barcode.dynamicFrame.Constants;
-import org.uic.barcode.dynamicFrame.DataType;
-import org.uic.barcode.dynamicFrame.DynamicFrame;
-import org.uic.barcode.dynamicFrame.Level1DataType;
-import org.uic.barcode.dynamicFrame.Level2DataType;
-import org.uic.barcode.dynamicFrame.SequenceOfDataType;
-import org.uic.barcode.ticket.EncodingFormatException;
-import org.uic.barcode.ticket.api.asn.omv1.UicRailTicketData;
-import org.uic.barcode.ticket.api.test.testtickets.SimpleUicTestTicket;
-
-
-public class SimpleDynamicFrameTestBarcode {
-
- public static DynamicFrame getSimpleDynamicHeaderBarcode(String algorithm, KeyPair keyPair) {
-
-
-
- DynamicFrame barcode = null;
-
-
-
- try {
- barcode = new DynamicFrame();
- barcode.setFormat(Constants.DYNAMIC_BARCODE_FORMAT_DEFAULT);
- Level2DataType level2Data = new Level2DataType();
- barcode.setLevel2SignedData(level2Data);
-
- Level1DataType level1Data = new Level1DataType();
- level2Data.setLevel1Data(level1Data);
-
- level1Data.setSecurityProvider("1080");
- level1Data.setKeyId(1L);
-
- level1Data.setLevel1SigningAlg(Constants.ECDSA_SHA256);
-
- DataType data = new DataType();
- UicRailTicketData ticket = SimpleUicTestTicket.getUicTestTicket();
- byte[] ticketData = ticket.encode();
- data.setByteData(ticketData);
- data.setFormat(Constants.DATA_TYPE_FCB_VERSION_1);
- SequenceOfDataType dataSequence = new SequenceOfDataType();
- level1Data.setData(dataSequence);
- level1Data.getData().add(data);
-
- try {
- level2Data.signLevel1(keyPair.getPrivate());
- } catch (Exception e) {
- assert(false);
- }
-
-
- } catch (EncodingFormatException e) {
- e.printStackTrace();
- return null;
- }
-
- return barcode;
- }
-
-
- public static void compareFrame(DynamicFrame frame1, DynamicFrame frame2) {
-
- assert(frame1.getLevel2SignedData().getLevel1Data().getKeyId() == frame2.getLevel2SignedData().getLevel1Data().getKeyId());
-
- assert(frame1.getLevel2SignedData().getLevel1Data().getLevel1SigningAlg().equals(frame2.getLevel2SignedData().getLevel1Data().level1SigningAlg));
-
- assert(frame1.getLevel2SignedData().getLevel1Data().getSecurityProvider().equals(frame2.getLevel2SignedData().getLevel1Data().getSecurityProvider()));
-
- DataType data1 = frame1.getLevel2SignedData().getLevel1Data().getData().get(0);
- DataType data2 = frame2.getLevel2SignedData().getLevel1Data().getData().get(0);
-
- assert(data1.getFormat().equals(data2.getFormat()));
-
- }
-
-}
diff --git a/src/org/uic/barcode/test/utils/SimpleTestTicketLayout.java b/src/org/uic/barcode/test/utils/SimpleTestTicketLayout.java
deleted file mode 100644
index 7b9ae1b..0000000
--- a/src/org/uic/barcode/test/utils/SimpleTestTicketLayout.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package org.uic.barcode.test.utils;
-
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.LayoutElement;
-import org.uic.barcode.staticFrame.ticketLayoutBarcode.TicketLayout;
-
-public class SimpleTestTicketLayout {
-
-
- public static TicketLayout getSimpleTestTicketLayout() {
-
- TicketLayout layout = new TicketLayout();
-
- layout.setLayoutStandard("RCT2");
-
- LayoutElement element = new LayoutElement();
- element.setColumn(1);
- element.setLine(1);
- element.setHeight(1);
- element.setWidth(20);
- element.setText("Müller");
- layout.addLayoutElement(element);
-
- return layout;
-
- }
-
- public static void compare(TicketLayout layout1, TicketLayout layout2) {
-
- assert(layout1.getLayoutStandard().equals(layout2.getLayoutStandard()));
-
- for (LayoutElement e1: layout1.getElements() ) {
-
- for (LayoutElement e2 :layout2.getElements()) {
-
- boolean found = false;
- if (e1.getLine() == e2.getLine() && e1.getColumn() == e2.getColumn()) {
- found = true;
- assert(e1.getText().equals(e2.getText()));
- }
- assert(found == true);
-
- }
-
- }
-
- }
-
-}
diff --git a/src/org/uic/barcode/test/utils/SimpleUICTestTicket.java b/src/org/uic/barcode/test/utils/SimpleUICTestTicket.java
deleted file mode 100644
index be34535..0000000
--- a/src/org/uic/barcode/test/utils/SimpleUICTestTicket.java
+++ /dev/null
@@ -1,254 +0,0 @@
-package org.uic.barcode.test.utils;
-
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-import org.uic.barcode.ticket.api.impl.SimpleCardReference;
-import org.uic.barcode.ticket.api.impl.SimpleControlDetail;
-import org.uic.barcode.ticket.api.impl.SimpleCustomerStatusDescription;
-import org.uic.barcode.ticket.api.impl.SimpleExtension;
-import org.uic.barcode.ticket.api.impl.SimpleIssuingDetail;
-import org.uic.barcode.ticket.api.impl.SimpleOpenTicket;
-import org.uic.barcode.ticket.api.impl.SimpleStationPassage;
-import org.uic.barcode.ticket.api.impl.SimpleTicketLink;
-import org.uic.barcode.ticket.api.impl.SimpleToken;
-import org.uic.barcode.ticket.api.impl.SimpleTraveler;
-import org.uic.barcode.ticket.api.impl.SimpleTravelerDetail;
-import org.uic.barcode.ticket.api.impl.SimpleUicRailTicket;
-import org.uic.barcode.ticket.api.spec.ICardReference;
-import org.uic.barcode.ticket.api.spec.IControlDetail;
-import org.uic.barcode.ticket.api.spec.ICustomerStatusDescription;
-import org.uic.barcode.ticket.api.spec.IExtension;
-import org.uic.barcode.ticket.api.spec.IIssuingDetail;
-import org.uic.barcode.ticket.api.spec.ILinkMode;
-import org.uic.barcode.ticket.api.spec.IOpenTicket;
-import org.uic.barcode.ticket.api.spec.IStationPassage;
-import org.uic.barcode.ticket.api.spec.ITicketLink;
-import org.uic.barcode.ticket.api.spec.IToken;
-import org.uic.barcode.ticket.api.spec.ITraveler;
-import org.uic.barcode.ticket.api.spec.IUicRailTicket;
-
-public class SimpleUICTestTicket {
-
-
- public static IUicRailTicket getUicTestTicket() {
- IUicRailTicket ticket = new SimpleUicRailTicket();
- populateTicket(ticket);
- return ticket;
- }
-
-
- private static void populateTicket(IUicRailTicket ticket) {
-
- ticket.setControlDetails(new SimpleControlDetail());
- populate(ticket.getControlDetails());
-
-
- ticket.setIssuerDetails(new SimpleIssuingDetail());
- populateIssuingData(ticket.getIssuerDetails());
-
- SimpleTravelerDetail td = new SimpleTravelerDetail();
- populateTravelerData(td);
- ticket.setTravelerDetails(td);
-
-
- //OpenTicket
- IOpenTicket do1 = new SimpleOpenTicket();
- populate(do1);
- ticket.addOpenTicket(do1);
-
- //StationPassage
- IStationPassage do2 = new SimpleStationPassage();
- populateStationPassage(do2);
- ticket.addStationPassage(do2);
-
- //token
- IToken to = new SimpleToken();
- to.setTokenProvider("VDV");
- byte[] ba = { (byte) 0x82, (byte) 0xDA };
- to.setToken(ba);
-
-
- ticket.addExtension(populateExtension());
-
- }
-
- /*
- ticket stationPassage : {
- productName "passage"
- ,station {8312345}
- ,stationNameUTF8 { "Amsterdam" }
- ,validFromDay 0
- ,validUntilDay 4
- }
- */
- private static void populateStationPassage(IStationPassage sp) {
- sp.setProductName("passage");
-
- try {
- Date date = new SimpleDateFormat("dd/MM/yyyy").parse("01/01/2018");
- sp.setValidFrom(date);
- } catch (ParseException e) {
- e.printStackTrace();
- }
- try {
- Date date = new SimpleDateFormat("dd/MM/yyyy").parse("04/01/2018");
- sp.setValidUntil(date);
- } catch (ParseException e) {
- e.printStackTrace();
- }
-
- sp.addStation("8312345");
- sp.addStationName("Amsterdam");
-
- }
-
- /*
- {
- token {tokenProviderIA5 "VDV", token '82DA'H }
- ,ticket openTicket : {
- returnIncluded FALSE
- infoText "openTicketInfo"
- }
- }
- */
-
- private static void populate(IOpenTicket otd) {
- otd.setInfoText("openTicketInfo");
- otd.setReturnIncluded(false);
- }
-
-
- /*
- ,travelerDetail{
- traveler {
- {
- firstName "John"
- ,secondName "Dow"
- ,idCard "12345"
- ,ticketHolder TRUE
- ,status {{customerStatusDescr "senior" }}
- }
- }
- ,groupName "myGroup"
- }
- */
-
- private static void populateTravelerData(SimpleTravelerDetail td) {
- td.setGroupName("myGroup");
- ITraveler tr = new SimpleTraveler();
- tr.setIdCard("12345");
- tr.setFirstName("John");
- tr.setSecondName("Dow");
- tr.setTicketHolder(true);
- ICustomerStatusDescription cst = new SimpleCustomerStatusDescription();
- tr.addStatusDescription(cst);
- cst.setDescription("senior");
- td.addTraveler(tr);
- }
-
- /*
- ,issuingDetail {
- issuerNum 1080
- issuingYear 2018
- issuingDay 1
- specimen TRUE,
- securePaperTicket FALSE,
- activated TRUE,
- issuerPNR "issuerTestPNR",
- issuedOnLine 12
- }
- */
- private static void populateIssuingData(IIssuingDetail iIssuingDetail) {
-
- try {
- Date date = new SimpleDateFormat("dd/MM/yyyy").parse("01/01/2018");
- iIssuingDetail.setIssuer("1080");
- iIssuingDetail.setIssuingDate(date);
- } catch (ParseException e) {
- e.printStackTrace();
- }
-
-
- iIssuingDetail.setIssuerPNR("issuerTestPNR");
- iIssuingDetail.setSpecimen(true);
- iIssuingDetail.setSecurePaperTicket(false);
- iIssuingDetail.setActivated(true);
- iIssuingDetail.setIssuedOnLine(12);
- }
-
- /*
- ,extension {
- { extensionId "1", extensionData '82DA'H }
- ,{ extensionId "2", extensionData '83DA'H }
- }
- */
- private static IExtension populateExtension() {
- IExtension ed1 = new SimpleExtension();
- ed1.setId("1");
- byte[] ba1 = { (byte) 0x82, (byte) 0xDA };
- ed1.setBinarydata(ba1);
- return ed1;
- }
-
- /*
- ,controlDetail {
- identificationByCardReference {
- { trailingCardIdNum 100 }
- }
- ,identificationByIdCard FALSE
- ,identificationByPassportId FALSE
- ,passportValidationRequired FALSE
- ,onlineValidationRequired FALSE
- ,ageCheckRequired FALSE
- ,reductionCardCheckRequired FALSE
- ,infoText "cd"
- ,includedTickets {
- { productOwnerIA5 "test" }
- }
- }
- */
- private static void populate(IControlDetail iControlDetail) {
- iControlDetail.setInfoText("cd");
- iControlDetail.setAgeCheckRequired(false);
- iControlDetail.setIdentificationByIdCard(false);
- iControlDetail.setIdentificationByPassportId(false);
- iControlDetail.setOnlineValidationRequired(false);
- iControlDetail.setPassportValidationRequired(false);
- iControlDetail.setReductionCardCheckRequired(false);
- iControlDetail.getIdentificationByCardReference().add(populateCardRefrence());
- iControlDetail.addLinkedTicket(populateLinkedTicket());
- }
-
-
- /*
- *
- */
- private static ITicketLink populateLinkedTicket() {
- ITicketLink it = new SimpleTicketLink();
- it.setProductOwner("test");
- it.setLinkMode(ILinkMode.issuedTogether);
- return it;
- }
-
- /*
- {
- trailingCardIdNum 100
- }
- */
- private static ICardReference populateCardRefrence() {
- ICardReference cr = new SimpleCardReference();
- cr.setTrailingCardId("100");
- return cr;
- }
-
-
- public static void compare(IUicRailTicket ticket1, IUicRailTicket ticket2) {
-
- assert(ticket1.getIssuerDetails().getIssuer().equals(ticket2.getIssuerDetails().getIssuer()));
-
- }
-
-
-}
diff --git a/src/org/uic/barcode/test/utils/TestUtils.java b/src/org/uic/barcode/test/utils/TestUtils.java
deleted file mode 100644
index 7311ae4..0000000
--- a/src/org/uic/barcode/test/utils/TestUtils.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.uic.barcode.test.utils;
-
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.Date;
-
-public class TestUtils {
-
- final protected static char[] hexArray = "0123456789ABCDEF".toCharArray();
-
- public static String hexStringFromBytes(byte[] bytes) {
- char[] hexChars = new char[bytes.length * 2];
- for (int j = 0; j < bytes.length; j++) {
- int v = bytes[j] & 0xFF;
- hexChars[j * 2] = hexArray[v >>> 4];
- hexChars[j * 2 + 1] = hexArray[v & 0x0F];
- }
- return new String(hexChars);
- }
-
-
- public static Date parseDate (String source){
-
- SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
-
- try {
- return formatter.parse(source);
- } catch (ParseException e) {
- try {
- return formatter.parse("2001-01-01");
- } catch (ParseException e1) {
- return null;
- }
- }
-
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/EncodingFormatException.java b/src/org/uic/barcode/ticket/EncodingFormatException.java
deleted file mode 100644
index 1014184..0000000
--- a/src/org/uic/barcode/ticket/EncodingFormatException.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- *
- */
-package org.uic.barcode.ticket;
-
-
-/**
- * The Class EncodingFormatException.
- */
-public class EncodingFormatException extends Exception {
-
- /**
- *
- */
- private static final long serialVersionUID = -6949233719793346110L;
-
- /**
- * Instantiates a new encoding format exception. The exception indicates a violation of the asn.1 ticket format specification
- *
- * @param message the message
- */
- public EncodingFormatException(String message) {
- super(message);
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/UicRailTicketCoder.java b/src/org/uic/barcode/ticket/UicRailTicketCoder.java
deleted file mode 100644
index 62fda2d..0000000
--- a/src/org/uic/barcode/ticket/UicRailTicketCoder.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/*
- *
- */
-package org.uic.barcode.ticket;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-
-import org.uic.barcode.ticket.api.spec.IUicRailTicket;
-import org.uic.barcode.ticket.api.utils.Api2OpenAsnEncoder;
-import org.uic.barcode.ticket.api.utils.Api2OpenAsnEncoderV2;
-import org.uic.barcode.ticket.api.utils.OpenAsn2ApiDecoder;
-import org.uic.barcode.ticket.api.utils.OpenAsn2ApiDecoderV2;
-
-
-/**
- * The Class UicRailTicketCoder.
- */
-public class UicRailTicketCoder {
-
- /**
- * encode an UicRailTicket to asn.1 format using PER unaligned encoding
- *
- * @param outputStream the output stream for the encoded data
- * @param uicRailTicket the uic rail ticket to be encoded
- * @param version of the asn1 specification
- * @throws IOException signals that an I/O exception has occurred.
- * @throws EncodingFormatException signals that a format rule of the asn.1 specification was violated.
- */
- public byte[] encode (IUicRailTicket uicRailTicket, int version) throws IOException, EncodingFormatException{
-
-
- if (version == 13) {
-
- Api2OpenAsnEncoder uicEncoder = new Api2OpenAsnEncoder();
-
- return uicEncoder.encode(uicRailTicket);
-
-
- } else if (version == 2) {
-
- Api2OpenAsnEncoderV2 uicEncoder = new Api2OpenAsnEncoderV2();
-
- return uicEncoder.encode(uicRailTicket);
-
- }
-
- throw new EncodingFormatException(String.format("Encoding version %d not supported", version));
-
-
- }
-
-
- /**
- * encode an UicRailTicket to asn.1 format using PER unaligned encoding
- *
- * @param outputStream the output stream for the encoded data
- * @param uicRailTicket the uic rail ticket to be encoded
- * @param version of the asn1 specification
- * @throws IOException signals that an I/O exception has occurred.
- * @throws EncodingFormatException signals that a format rule of the asn.1 specification was violated.
- */
- public void encode ( ByteArrayOutputStream outputStream, IUicRailTicket uicRailTicket, int version) throws IOException, EncodingFormatException{
-
-
-
- if (version == 13) {
-
- Api2OpenAsnEncoder uicEncoder = new Api2OpenAsnEncoder();
-
- org.uic.barcode.ticket.api.asn.omv1.UicRailTicketData asnUicRailTicketData = uicEncoder.populateToAsn1Model(uicRailTicket);
-
- outputStream.write(asnUicRailTicketData.encode());
-
- return;
-
-
- } else if (version == 2) {
-
- Api2OpenAsnEncoderV2 uicEncoder = new Api2OpenAsnEncoderV2();
-
- org.uic.barcode.ticket.api.asn.omv2.UicRailTicketData asnUicRailTicketData = uicEncoder.populateToAsn1Model(uicRailTicket);
-
- outputStream.write(asnUicRailTicketData.encode());
-
- return;
-
- }
-
- throw new EncodingFormatException(String.format("Encoding version %d not supported", version));
-
- }
-
- /**
- * Decode a rail ticket from asn.1 unaligned PER encoded data.
- *
- * @param byteData the asn.1 PER encoded byte data
- * @return the decoded uic rail ticket
- * @throws IOException signals that an I/O exception has occurred.
- * @throws EncodingFormatException
- */
- public IUicRailTicket decodeFromAsn (byte[] byteData, int version) throws IOException, EncodingFormatException{
-
- if (version == 1 || version == 13) {
-
- OpenAsn2ApiDecoder uicDecoder = new OpenAsn2ApiDecoder();
-
- IUicRailTicket uicRailTicket = uicDecoder.decodeFromAsn(byteData);
-
- return uicRailTicket;
-
- } else if (version == 2) {
-
- OpenAsn2ApiDecoderV2 uicDecoder = new OpenAsn2ApiDecoderV2();
-
- IUicRailTicket uicRailTicket = uicDecoder.decodeFromAsn(byteData);
-
- return uicRailTicket;
-
- }
-
- throw new EncodingFormatException(String.format("Encoding version %d not supported", version));
-
- }
-
-
- /**
- * Decode a rail ticket from asn.1 unaligned PER encoded data.
- * @param version of the asn1 specification
- * @param input stream of the asn.1 PER encoded data
- * @return the decoded uic rail ticket
- * @throws IOException signals that an I/O exception has occurred.
- * @throws EncodingFormatException
- */
- public IUicRailTicket decodeFromAsn (InputStream input, int version) throws IOException, EncodingFormatException{
-
- if (version != 1 && version != 2 && version != 13) {
- throw new EncodingFormatException(String.format("Encoding version %d not supported", version));
- }
-
- ByteArrayOutputStream buffer = new ByteArrayOutputStream();
-
- int nRead;
- byte[] data = new byte[16384];
-
- while ((nRead = input.read(data, 0, data.length)) != -1) {
- buffer.write(data, 0, nRead);
- }
-
- buffer.flush();
-
- byte[] byteData = buffer.toByteArray();
-
- return decodeFromAsn (byteData, version);
-
-
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/UnsuportedFeatureException.java b/src/org/uic/barcode/ticket/UnsuportedFeatureException.java
deleted file mode 100644
index c1f7686..0000000
--- a/src/org/uic/barcode/ticket/UnsuportedFeatureException.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- *
- */
-package org.uic.barcode.ticket;
-
-/**
- * The Class EncodingFormatException.
- */
-public class UnsuportedFeatureException extends Exception {
-
- /**
- *
- */
- private static final long serialVersionUID = -3156877999150353704L;
-
- /**
- *
- */
-
-
- /**
- * Instantiates a new encoding format exception. The exception indicates a violation of the asn.1 ticket format specification
- *
- * @param message the message
- */
- public UnsuportedFeatureException(String message) {
- super(message);
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/BerthDetailData.java b/src/org/uic/barcode/ticket/api/asn/omv1/BerthDetailData.java
deleted file mode 100644
index 94feb61..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/BerthDetailData.java
+++ /dev/null
@@ -1,78 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-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.Sequence;
-
-
-@Sequence
-@HasExtensionMarker
-public class BerthDetailData extends Object {
- public BerthDetailData() {}
-
- @FieldOrder(order = 0)
- public BerthTypeType berthType;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1, maxValue=999)
- public Long numberOfBerths;
-
- @FieldOrder(order = 2)
- @Asn1Default(value="family")
- @Asn1Optional public CompartmentGenderType gender;
-
-
- public BerthTypeType getBerthType() {
- return this.berthType;
- }
-
- public Long getNumberOfBerths() {
- return this.numberOfBerths;
- }
-
- public CompartmentGenderType getGender() {
-
- if (gender == null){
- return CompartmentGenderType.family;
- } else {
- return this.gender;
- }
- }
-
- public void setBerthType(BerthTypeType berthType) {
-
- this.berthType = berthType;
- }
-
- public void setNumberOfBerths(Long numberOfBerths) {
- this.numberOfBerths = numberOfBerths;
- }
-
- public void setGender(CompartmentGenderType gender) {
- this.gender = gender;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/BerthTypeType.java b/src/org/uic/barcode/ticket/api/asn/omv1/BerthTypeType.java
deleted file mode 100644
index 14470a6..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/BerthTypeType.java
+++ /dev/null
@@ -1,41 +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.omv1;
-
-public enum BerthTypeType {
- single("single"),
- special("special"),
- double_("double_"),
- t2("t2"),
- t3("t3"),
- t4("t4");
-
-
- public String text;
-
- BerthTypeType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/CarCarriageReservationData.java b/src/org/uic/barcode/ticket/api/asn/omv1/CarCarriageReservationData.java
deleted file mode 100644
index 1eb0533..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/CarCarriageReservationData.java
+++ /dev/null
@@ -1,735 +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.omv1;
-
-import java.util.Calendar;
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.asn.omv1.SequenceOfCarrierNum;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-
-
-@Sequence
-@HasExtensionMarker
-public class CarCarriageReservationData extends Object {
- public CarCarriageReservationData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger trainNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trainIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=-1,maxValue=370)
- @Asn1Default(value="0")
- @Asn1Optional public Long beginLoadingDate;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long beginLoadingTime;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long endLoadingTime;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long loadingUTCOffset;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 7)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 8)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 10)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 11)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long serviceBrand;
-
- @FieldOrder(order = 13)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String serviceBrandAbrUTF8;
-
- @FieldOrder(order = 14)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String serviceBrandNameUTF8;
-
- @FieldOrder(order = 15)
- @Asn1Default("stationUICReservation")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 16)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 17)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 18)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 19)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 20)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 21)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- @FieldOrder(order = 22)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String coach;
-
- @FieldOrder(order = 23)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String place;
-
- @FieldOrder(order = 24)
- @Asn1Optional public CompartmentDetailsType compartmentDetails;
-
- @FieldOrder(order = 25)
- @RestrictedString(CharacterRestriction.IA5String)
- public String numberPlate;
-
- @FieldOrder(order = 26)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trailerPlate;
-
- @FieldOrder(order = 27)
- @IntRange(minValue=0,maxValue=9)
- public Long carCategory;
-
- @FieldOrder(order = 28)
- @IntRange(minValue=0,maxValue=6)
- @Asn1Optional public Long boatCategory;
-
- @FieldOrder(order = 29)
- public Boolean textileRoof = false;
-
- @FieldOrder(order = 30)
- @Asn1Default(value ="norack")
- @Asn1Optional public RoofRackType roofRackType;
-
- @FieldOrder(order = 31)
- @IntRange(minValue=0,maxValue=99)
- @Asn1Optional public Long roofRackHeight;
-
- @FieldOrder(order = 32)
- @IntRange(minValue=0,maxValue=2)
- @Asn1Optional public Long attachedBoats;
-
- @FieldOrder(order = 33)
- @IntRange(minValue=0,maxValue=4)
- @Asn1Optional public Long attachedBicycles;
-
- @FieldOrder(order = 34)
- @IntRange(minValue=0,maxValue=5)
- @Asn1Optional public Long attachedSurfboards;
-
- @FieldOrder(order = 35)
- @IntRange(minValue=0,maxValue=999)
- @Asn1Optional public Long loadingListEntry;
-
- @FieldOrder(order = 36)
- @Asn1Default(value="upper")
- @Asn1Optional public LoadingDeckType loadingDeck;
-
- @FieldOrder(order = 37)
- @Asn1Optional public SequenceOfCarrierNum carrierNum;
-
- @FieldOrder(order = 38)
- @Asn1Optional public SequenceOfStringIA5 carrierIA5;
-
- @FieldOrder(order = 39)
- public TariffType tariff;
-
- @FieldOrder(order = 40)
- @Asn1Default(value="travelPrice")
- @Asn1Optional public PriceTypeType priceType;
-
- @FieldOrder(order = 41)
- @Asn1Optional Asn1BigInteger price;
-
- @FieldOrder(order = 42)
- @Asn1Optional SequenceOfVatDetail vatDetails;
-
- @FieldOrder(order = 43)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 44)
- @Asn1Optional public ExtensionData extension;
-
- public Long getTrainNum() {
- if (this.trainNum == null) return null;
- return Asn1BigInteger.toLong(this.trainNum);
- }
-
- public String getTrainIA5() {
-
- return this.trainIA5;
- }
-
- public Long getBeginLoadingDate() {
-
- return this.beginLoadingDate;
- }
-
- public Long getBeginLoadingTime() {
-
- if (beginLoadingTime == null) return new Long(0);
- return beginLoadingTime;
- }
-
- public Long getEndLoadingTime() {
-
- return this.endLoadingTime;
- }
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Long getReferenceNum() {
- return Asn1BigInteger.toLong(this.referenceNum);
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getServiceBrand() {
-
- return this.serviceBrand;
- }
-
- public String getServiceBrandAbrUTF8() {
-
- return this.serviceBrandAbrUTF8;
- }
-
- public String getServiceBrandNameUTF8() {
-
- return this.serviceBrandNameUTF8;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUICReservation;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public String getCoach() {
-
- return this.coach;
- }
-
- public String getPlace() {
-
- return this.place;
- }
-
- public CompartmentDetailsType getCompartmentDetails() {
-
- return this.compartmentDetails;
- }
-
- public String getNumberPlate() {
-
- return this.numberPlate;
- }
-
- public String getTrailerPlate() {
-
- return this.trailerPlate;
- }
-
- public Long getCarCategory() {
-
- return this.carCategory;
- }
-
- public Long getBoatCategory() {
-
- return this.boatCategory;
- }
-
- public Boolean getTextileRoof() {
-
- return this.textileRoof;
- }
-
- public RoofRackType getRoofRackType() {
-
- if (this.roofRackType == null) return RoofRackType.norack;
- return this.roofRackType;
- }
-
- public Long getRoofRackHeight() {
-
- return this.roofRackHeight;
- }
-
- public Long getAttachedBoats() {
-
- return this.attachedBoats;
- }
-
- public Long getAttachedBicycles() {
-
- return this.attachedBicycles;
- }
-
- public Long getAttachedSurfboards() {
-
- return this.attachedSurfboards;
- }
-
- public Long getLoadingListEntry() {
-
- return this.loadingListEntry;
- }
-
- public LoadingDeckType getLoadingDeck() {
-
- if (this.loadingDeck == null) return LoadingDeckType.upper;
- return this.loadingDeck;
- }
-
- public SequenceOfCarrierNum getCarrierNum() {
-
- return this.carrierNum;
- }
-
- public SequenceOfStringIA5 getCarrierIA5() {
-
- return this.carrierIA5;
- }
-
- public TariffType getTariff() {
-
- return this.tariff;
- }
-
- public PriceTypeType getPriceType() {
- if (this.priceType == null) return PriceTypeType.travelPrice;
- return this.priceType;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setTrainNum(Long trainNum) {
-
- this.trainNum = new Asn1BigInteger(trainNum);
- }
-
- public void setTrainIA5(String trainIA5) {
-
- this.trainIA5 = trainIA5;
- }
-
- public void setBeginLoadingDate(Long beginLoadingDate) {
-
- this.beginLoadingDate = beginLoadingDate;
- }
-
- public void setBeginLoadingTime(Long beginLoadingTime) {
-
- this.beginLoadingTime = beginLoadingTime;
- }
-
- public void setEndLoadingTime(Long endLoadingTime) {
- this.endLoadingTime = endLoadingTime;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Long referenceNum) {
-
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setServiceBrand(Long serviceBrand) {
-
- this.serviceBrand = serviceBrand;
- }
-
- public void setServiceBrandAbrUTF8(String serviceBrandAbrUTF8) {
-
- this.serviceBrandAbrUTF8 = serviceBrandAbrUTF8;
- }
-
- public void setServiceBrandNameUTF8(String serviceBrandNameUTF8) {
-
- this.serviceBrandNameUTF8 = serviceBrandNameUTF8;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
- public void setCoach(String coach) {
-
- this.coach = coach;
- }
-
- public void setPlace(String place) {
-
- this.place = place;
- }
-
- public void setCompartmentDetails(CompartmentDetailsType compartmentDetails) {
-
- this.compartmentDetails = compartmentDetails;
- }
-
- public void setNumberPlate(String numberPlate) {
-
- this.numberPlate = numberPlate;
- }
-
- public void setTrailerPlate(String trailerPlate) {
-
- this.trailerPlate = trailerPlate;
- }
-
- public void setCarCategory(Long carCategory) {
-
- this.carCategory = carCategory;
- }
-
- public void setBoatCategory(Long boatCategory) {
-
- this.boatCategory = boatCategory;
- }
-
- public void setTextileRoof(Boolean textileRoof) {
-
- this.textileRoof = textileRoof;
- }
-
- public void setRoofRackType(RoofRackType roofRackType) {
-
- this.roofRackType = roofRackType;
- }
-
- public void setRoofRackHeight(Long roofRackHeight) {
-
- this.roofRackHeight = roofRackHeight;
- }
-
- public void setAttachedBoats(Long attachedBoats) {
-
- this.attachedBoats = attachedBoats;
- }
-
- public void setAttachedBicycles(Long attachedBicycles) {
-
- this.attachedBicycles = attachedBicycles;
- }
-
- public void setAttachedSurfboards(Long attachedSurfboards) {
-
- this.attachedSurfboards = attachedSurfboards;
- }
-
- public void setLoadingListEntry(Long loadingListEntry) {
-
- this.loadingListEntry = loadingListEntry;
- }
-
- public void setLoadingDeck(LoadingDeckType loadingDeck) {
-
- this.loadingDeck = loadingDeck;
- }
-
- public void setCarrierNum(SequenceOfCarrierNum carrierNum) {
-
- this.carrierNum = carrierNum;
- }
-
- public void setCarrierNum(List longs) {
- if (longs == null || longs.isEmpty()) return;
- this.carrierNum = new SequenceOfCarrierNum(longs);
- }
-
-
- public void setCarrierIA5(SequenceOfStringIA5 carrierIA5) {
-
- this.carrierIA5 = carrierIA5;
- }
-
- public void setTariff(TariffType tariff) {
-
- this.tariff = tariff;
- }
-
- public void setPriceType(PriceTypeType priceType) {
-
- this.priceType = priceType;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public Long getPrice() {
- return Asn1BigInteger.toLong(price);
- }
-
- public void setPrice(Long price) {
- this.price = Asn1BigInteger.toAsn1(price);
- }
-
- public SequenceOfVatDetail getVatDetails() {
- return vatDetails;
- }
-
- public void setVatDetails(SequenceOfVatDetail vatDetails) {
- this.vatDetails = vatDetails;
- }
-
- public void addVatDetail(VatDetailType vatDetail) {
- if (this.vatDetails == null) {
- this.vatDetails = new SequenceOfVatDetail();
- }
- this.vatDetails.add(vatDetail);
- }
-
- public void setLoadingDates (Date beginLoading, Date endLoading, Date issuingDate){
-
- if (issuingDate == null || beginLoading == null) return;
-
- this.beginLoadingDate = DateTimeUtils.getDateDifference(issuingDate,beginLoading);
- this.beginLoadingTime = DateTimeUtils.getTime(beginLoading);
-
- if (endLoading != null) {
- this.endLoadingTime = DateTimeUtils.getTime(endLoading);
- }
- }
-
- public Date getBeginLoadingDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.beginLoadingDate == null) {
- this.beginLoadingDate = 0L;
- }
-
- return DateTimeUtils.getDate(issuingDate, this.beginLoadingDate, this.beginLoadingTime);
-
- }
-
- public Date getEndLoadingDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.beginLoadingDate == null) {
- this.beginLoadingDate = 0L;
- }
-
- if (this.endLoadingTime == null) {
- return null;
- }
-
- Date begin = DateTimeUtils.getDate(issuingDate, this.beginLoadingDate, this.beginLoadingTime);
- Date end = DateTimeUtils.getDate(issuingDate, this.beginLoadingDate, this.endLoadingTime);
-
- //max one day difference assumed
- if (end.before(begin)) {
- Calendar cal = Calendar.getInstance();
- cal.clear();
- cal.setTime(end);
- cal.add(Calendar.DAY_OF_YEAR,1);
- return cal.getTime();
- } else {
- return end;
- }
-
- }
-
- public Long getLoadingUTCOffset() {
- return loadingUTCOffset;
- }
-
- public void setLoadingUTCOffset(Long loadingUTCOffset) {
- this.loadingUTCOffset = loadingUTCOffset;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/CardReferenceType.java b/src/org/uic/barcode/ticket/api/asn/omv1/CardReferenceType.java
deleted file mode 100644
index a5a327c..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/CardReferenceType.java
+++ /dev/null
@@ -1,183 +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.omv1;
-
-import java.math.BigInteger;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-
-@Sequence
-@HasExtensionMarker
-public class CardReferenceType extends Object {
- public CardReferenceType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger cardIssuerNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String cardIssuerIA5;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger cardIdNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String cardIdIA5;
-
- @FieldOrder(order = 4)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String cardName;
-
- @FieldOrder(order = 5)
- @Asn1Optional public Asn1BigInteger cardType;
-
- @FieldOrder(order = 6)
- @Asn1Optional public Asn1BigInteger leadingCardIdNum;
-
- @FieldOrder(order = 7)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String leadingCardIdIA5;
-
- @FieldOrder(order = 8)
- @Asn1Optional public Asn1BigInteger trailingCardIdNum;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trailingCardIdIA5;
-
-
- public Asn1BigInteger getCardIssuerNum() {
-
- return this.cardIssuerNum;
- }
-
- public String getCardIssuerIA5() {
-
- return this.cardIssuerIA5;
- }
-
- public Asn1BigInteger getCardIdNum() {
-
- return this.cardIdNum;
- }
-
- public String getCardIdIA5() {
-
- return this.cardIdIA5;
- }
-
- public String getCardName() {
-
- return this.cardName;
- }
-
- public Asn1BigInteger getCardType() {
- return this.cardType;
- }
-
- public BigInteger getLeadingCardIdNum() {
- if (leadingCardIdNum != null) {
- return leadingCardIdNum.toBigInteger();
- }
- return null;
- }
-
- public String getLeadingCardIdIA5() {
-
- return this.leadingCardIdIA5;
- }
-
- public Long getTrailingCardIdNum() {
-
- return Asn1BigInteger.toLong(this.trailingCardIdNum);
- }
-
- public String getTrailingCardIdIA5() {
-
- return this.trailingCardIdIA5;
- }
-
- public void setCardIssuerNum(Long cardIssuerNum) {
-
- this.cardIssuerNum = Asn1BigInteger.toAsn1(cardIssuerNum);
- }
-
- public void setCardIssuerIA5(String cardIssuerIA5) {
-
- this.cardIssuerIA5 = cardIssuerIA5;
- }
-
- public void setCardIdNum(Asn1BigInteger asn1BigInteger) {
-
- this.cardIdNum = asn1BigInteger;
- }
-
- public void setCardIdNum(Long cardIdNum) {
-
- this.cardIdNum = new Asn1BigInteger(cardIdNum);
- }
-
- public void setCardIdIA5(String cardIdIA5) {
-
- this.cardIdIA5 = cardIdIA5;
- }
-
- public void setCardName(String cardName) {
-
- this.cardName = cardName;
- }
-
- public void setCardType(Long cardType) {
-
- this.cardType = Asn1BigInteger.toAsn1(cardType);
- }
-
- public void setLeadingCardIdNum(Long leadingCardIdNum) {
-
- this.leadingCardIdNum = Asn1BigInteger.toAsn1(leadingCardIdNum);
- }
-
- public void setLeadingCardIdIA5(String leadingCardIdIA5) {
-
- this.leadingCardIdIA5 = leadingCardIdIA5;
- }
-
- public void setTrailingCardIdNum(Long trailingCardIdNum) {
-
- this.trailingCardIdNum = Asn1BigInteger.toAsn1(trailingCardIdNum);
- }
-
- public void setTrailingCardIdIA5(String trailingCardIdIA5) {
-
- this.trailingCardIdIA5 = trailingCardIdIA5;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/CodeTableType.java b/src/org/uic/barcode/ticket/api/asn/omv1/CodeTableType.java
deleted file mode 100644
index 61f7a75..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/CodeTableType.java
+++ /dev/null
@@ -1,40 +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.omv1;
-
-
-public enum CodeTableType {
- stationUIC("stationUIC"),
- stationUICReservation("stationUICReservation"),
- stationERA("stationERA"),
- localCarrierStationCodeTable("localCarrierStationCodeTable"),
- proprietaryIssuerStationCodeTable("proprietaryIssuerStationCodeTable");
-
- public String text;
-
- CodeTableType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/CompartmentDetailsType.java b/src/org/uic/barcode/ticket/api/asn/omv1/CompartmentDetailsType.java
deleted file mode 100644
index cdec42b..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/CompartmentDetailsType.java
+++ /dev/null
@@ -1,136 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-
-
-@Sequence
-@HasExtensionMarker
-public class CompartmentDetailsType extends Object {
- public CompartmentDetailsType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=99)
- @Asn1Optional public Long coachType;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1,maxValue=99)
- @Asn1Optional public Long compartmentType;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=99)
- @Asn1Optional public Long specialAllocation;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String coachTypeDescr;
-
- @FieldOrder(order = 4)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String compartmentTypeDescr;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String specialAllocationDescr;
-
- @FieldOrder(order = 6)
- @Asn1Default(value="unspecified")
- public CompartmentPositionType position;
-
- public Long getCoachType() {
-
- return this.coachType;
- }
-
- public Long getCompartmentType() {
-
- return this.compartmentType;
- }
-
- public Long getSpecialAllocation() {
-
- return this.specialAllocation;
- }
-
- public String getCoachTypeDescr() {
-
- return this.coachTypeDescr;
- }
-
- public String getCompartmentTypeDescr() {
-
- return this.compartmentTypeDescr;
- }
-
- public String getSpecialAllocationDescr() {
-
- return this.specialAllocationDescr;
- }
-
- public CompartmentPositionType getPosition() {
- if (position == null) return CompartmentPositionType.unspecified;
- return this.position;
- }
-
- public void setCoachType(Long coachType) {
- this.coachType = coachType;
- }
-
- public void setCompartmentType(Long compartmentType) {
-
- this.compartmentType = compartmentType;
- }
-
- public void setSpecialAllocation(Long specialAllocation) {
-
- this.specialAllocation = specialAllocation;
- }
-
- public void setCoachTypeDescr(String coachTypeDescr) {
-
- this.coachTypeDescr = coachTypeDescr;
- }
-
- public void setCompartmentTypeDescr(String compartmentTypeDescr) {
-
- this.compartmentTypeDescr = compartmentTypeDescr;
- }
-
- public void setSpecialAllocationDescr(String specialAllocationDescr) {
-
- this.specialAllocationDescr = specialAllocationDescr;
- }
-
- public void setPosition(CompartmentPositionType position) {
-
- this.position = position;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/CompartmentGenderType.java b/src/org/uic/barcode/ticket/api/asn/omv1/CompartmentGenderType.java
deleted file mode 100644
index 8499b6b..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/CompartmentGenderType.java
+++ /dev/null
@@ -1,42 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum CompartmentGenderType {
- unspecified("unspecified"),
- family("family"),
- female("female"),
- male("male"),
- mixed("mixed");
-
- public String text;
-
- CompartmentGenderType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/CompartmentPositionType.java b/src/org/uic/barcode/ticket/api/asn/omv1/CompartmentPositionType.java
deleted file mode 100644
index c071dbb..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/CompartmentPositionType.java
+++ /dev/null
@@ -1,38 +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.omv1;
-
-
-public enum CompartmentPositionType {
- unspecified("unspecified"),
- upperLevel("upperLevel"),
- lowerLevel("lowerLevel");
-
- public String text;
-
- CompartmentPositionType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ConfirmationTypeType.java b/src/org/uic/barcode/ticket/api/asn/omv1/ConfirmationTypeType.java
deleted file mode 100644
index f77f784..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ConfirmationTypeType.java
+++ /dev/null
@@ -1,42 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum ConfirmationTypeType {
- trainDelayConfirmation ("trainDelayConfirmation"),
- travelerDelayConfirmation ("travelerDelayConfirmation"),
- trainLinkedTicketDelay ("trainLinkedTicketDelay");
-
-
-
- public String text;
-
- ConfirmationTypeType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ControlData.java b/src/org/uic/barcode/ticket/api/asn/omv1/ControlData.java
deleted file mode 100644
index d7dab8c..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ControlData.java
+++ /dev/null
@@ -1,200 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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;
-
-
-
-@Sequence
-@HasExtensionMarker
-public class ControlData extends Object {
- public ControlData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public SequenceOfCardReferenceType identificationByCardReference;
-
- @FieldOrder(order = 1)
- public Boolean identificationByIdCard = false;
-
- @FieldOrder(order = 2)
- public Boolean identificationByPassportId = false;
-
- @FieldOrder(order = 3)
- @Asn1Optional public Asn1BigInteger identificationItem;
-
- @FieldOrder(order = 4)
- public Boolean passportValidationRequired = false;
-
- @FieldOrder(order = 5)
- public Boolean onlineValidationRequired = false;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=0,maxValue=99)
- @Asn1Optional public Long randomDetailedValidationRequired;
-
- @FieldOrder(order = 7)
- public Boolean ageCheckRequired = false;
-
- @FieldOrder(order = 8)
- public Boolean reductionCardCheckRequired = false;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 10)
- @Asn1Optional public SequenceOfTicketLinkType includedTickets;
-
- @FieldOrder(order = 11)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
- public SequenceOfCardReferenceType getIdentificationByCardReference() {
-
- return this.identificationByCardReference;
- }
-
- public Boolean getIdentificationByIdCard() {
-
- return this.identificationByIdCard;
- }
-
- public Boolean getIdentificationByPassportId() {
-
- return this.identificationByPassportId;
- }
-
- public Long getIdentificationItem() {
-
- return Asn1BigInteger.toLong(this.identificationItem);
- }
-
- public Boolean getPassportValidationRequired() {
-
- return this.passportValidationRequired;
- }
-
- public Boolean getOnlineValidationRequired() {
-
- return this.onlineValidationRequired;
- }
-
- public Long getRandomDetailedValidationRequired() {
-
- return this.randomDetailedValidationRequired;
- }
-
- public Boolean getAgeCheckRequired() {
-
- return this.ageCheckRequired;
- }
-
- public Boolean getReductionCardCheckRequired() {
-
- return this.reductionCardCheckRequired;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public SequenceOfTicketLinkType getIncludedTickets() {
-
- return this.includedTickets;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setIdentificationByCardReference(SequenceOfCardReferenceType identificationByCardReference) {
-
- this.identificationByCardReference = identificationByCardReference;
- }
-
- public void setIdentificationByIdCard(Boolean identificationByIdCard) {
-
- this.identificationByIdCard = identificationByIdCard;
- }
-
- public void setIdentificationByPassportId(Boolean identificationByPassportId) {
-
- this.identificationByPassportId = identificationByPassportId;
- }
-
- public void setIdentificationItem(Long identificationItem) {
-
- this.identificationItem = Asn1BigInteger.toAsn1(identificationItem);
- }
-
- public void setPassportValidationRequired(Boolean passportValidationRequired) {
-
- this.passportValidationRequired = passportValidationRequired;
- }
-
- public void setOnlineValidationRequired(Boolean onlineValidationRequired) {
-
- this.onlineValidationRequired = onlineValidationRequired;
- }
-
- public void setRandomDetailedValidationRequired(Long randomDetailedValidationRequired) {
- this.randomDetailedValidationRequired = randomDetailedValidationRequired;
- }
-
- public void setAgeCheckRequired(Boolean ageCheckRequired) {
- this.ageCheckRequired = ageCheckRequired;
- }
-
- public void setReductionCardCheckRequired(Boolean reductionCardCheckRequired) {
-
- this.reductionCardCheckRequired = reductionCardCheckRequired;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setIncludedTickets(SequenceOfTicketLinkType includedTickets) {
-
- this.includedTickets = includedTickets;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/CountermarkData.java b/src/org/uic/barcode/ticket/api/asn/omv1/CountermarkData.java
deleted file mode 100644
index 76625d4..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/CountermarkData.java
+++ /dev/null
@@ -1,574 +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.omv1;
-
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class CountermarkData extends Object {
- public CountermarkData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String ticketReferenceIA5;
-
- @FieldOrder(order = 7)
- @Asn1Optional public Asn1BigInteger ticketReferenceNum;
-
- @FieldOrder(order = 8)
- @IntRange(minValue=1,maxValue=200)
- @Asn1Optional public Long numberOfCountermark;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=1,maxValue=200)
- @Asn1Optional public Long totalOfCountermarks;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String groupName;
-
- @FieldOrder(order = 11)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 13)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 14)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 15)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 16)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 17)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- @FieldOrder(order = 18)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String validRegionDesc;
-
- @FieldOrder(order = 19)
- @Asn1Optional public SequenceOfRegionalValidityType validRegion;
-
- @FieldOrder(order = 20)
- public Boolean returnIncluded = false;
-
- @FieldOrder(order = 21)
- @Asn1Optional public ReturnRouteDescriptionType returnDescription;
-
- @FieldOrder(order = 22)
- @IntRange(minValue=-1,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 22)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 23)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 24)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 25)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 26)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- @FieldOrder(order = 27)
- @Asn1Default(value="second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 28)
- @Asn1Optional public SequenceOfCarrierNum carrierNum;
-
- @FieldOrder(order = 29)
- @Asn1Optional public SequenceOfStringIA5 carrierIA5;
-
- @FieldOrder(order = 30)
- @Asn1Optional public SequenceOfServiceBrands includedServiceBrands;
-
- @FieldOrder(order = 31)
- @Asn1Optional public SequenceOfServiceBrands excludedServiceBrands;
-
- @FieldOrder(order = 32)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 33)
- @Asn1Optional public ExtensionData extension;
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Long getReferenceNum() {
-
- return Asn1BigInteger.toLong(this.referenceNum);
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public String getTicketReferenceIA5() {
-
- return this.ticketReferenceIA5;
- }
-
- public Long getTicketReferenceNum() {
-
- return Asn1BigInteger.toLong(this.ticketReferenceNum);
- }
-
- public Long getNumberOfCountermark() {
-
- return this.numberOfCountermark;
- }
-
- public Long getTotalOfCountermarks() {
-
- return this.totalOfCountermarks;
- }
-
- public String getGroupName() {
-
- return this.groupName;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public String getValidRegionDesc() {
-
- return this.validRegionDesc;
- }
-
- public SequenceOfRegionalValidityType getValidRegion() {
-
- return this.validRegion;
- }
-
- public Boolean getReturnIncluded() {
-
- return this.returnIncluded;
- }
-
- public ReturnRouteDescriptionType getReturnDescription() {
-
- return this.returnDescription;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public TravelClassType getClassCode() {
-
- if (classCode == null){
- return TravelClassType.second;
- }
-
- return this.classCode;
- }
-
- public SequenceOfCarrierNum getCarriersNum() {
-
- return this.carrierNum;
- }
-
- public SequenceOfStringIA5 getCarriersIA5() {
-
- return this.carrierIA5;
- }
-
- public SequenceOfServiceBrands getIncludedServiceBrands() {
-
- return this.includedServiceBrands;
- }
-
- public SequenceOfServiceBrands getExcludedServiceBrands() {
-
- return this.excludedServiceBrands;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Long referenceNum) {
-
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setTicketReferenceIA5(String ticketReferenceIA5) {
-
- this.ticketReferenceIA5 = ticketReferenceIA5;
- }
-
- public void setTicketReferenceNum(Long ticketReferenceNum) {
-
- this.ticketReferenceNum = Asn1BigInteger.toAsn1(ticketReferenceNum);
- }
-
- public void setNumberOfCountermark(Long numberOfCountermark) {
-
- this.numberOfCountermark = numberOfCountermark;
- }
-
- public void setTotalOfCountermarks(Long totalOfCountermarks) {
-
- this.totalOfCountermarks = totalOfCountermarks;
- }
-
- public void setGroupName(String groupName) {
-
- this.groupName = groupName;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
- public void setValidRegionDesc(String validRegionDesc) {
-
- this.validRegionDesc = validRegionDesc;
- }
-
- public void setValidRegion(SequenceOfRegionalValidityType validRegion) {
-
- this.validRegion = validRegion;
- }
-
- public void setReturnIncluded(Boolean returnIncluded) {
-
- this.returnIncluded = returnIncluded;
- }
-
- public void setReturnDescription(ReturnRouteDescriptionType returnDescription) {
-
- this.returnDescription = returnDescription;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- public void setCarriersNum(SequenceOfCarrierNum carrierNum) {
-
- this.carrierNum = carrierNum;
- }
-
- public void setCarriersNum(List longs) {
- if (longs == null) return;
-
- this.carrierNum = new SequenceOfCarrierNum();
- this.carrierNum.addAll(longs);
- }
-
- public void setCarriersIA5(SequenceOfStringIA5 carrierIA5) {
-
- this.carrierIA5 = carrierIA5;
- }
-
- public void setIncludedServiceBrands(SequenceOfServiceBrands includedServiceBrands) {
-
- this.includedServiceBrands = includedServiceBrands;
- }
-
- public void setExcludedServiceBrands(SequenceOfServiceBrands excludedServiceBrands) {
-
- this.excludedServiceBrands = excludedServiceBrands;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/CustomerCardData.java b/src/org/uic/barcode/ticket/api/asn/omv1/CustomerCardData.java
deleted file mode 100644
index d67f857..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/CustomerCardData.java
+++ /dev/null
@@ -1,296 +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.omv1;
-
-import java.util.Calendar;
-import java.util.Date;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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.datatypesimpl.SequenceOfUnrestrictedLong;
-
-@Sequence
-@HasExtensionMarker
-public class CustomerCardData extends Object {
- public CustomerCardData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public TravelerType customer;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String cardIdIA5;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger cardIdNum;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=2016,maxValue=2269)
- @Asn1Optional public Long validFromYear;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=0,maxValue=250)
- @Asn1Optional public Long validUntilYear;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 7)
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 8)
- @IntRange(minValue=0,maxValue=1000)
- @Asn1Optional public Long cardType;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String cardTypeDescr;
-
- @FieldOrder(order = 10)
- @Asn1Optional public Asn1BigInteger customerStatus;
-
- @FieldOrder(order = 11)
- @Asn1Optional public String customerStatusDescr;
-
- @FieldOrder(order = 12)
- @Asn1Optional public SequenceOfUnrestrictedLong includedServices;
-
- @FieldOrder(order = 13)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
- public TravelerType getCustomer() {
-
- return this.customer;
- }
-
- public String getCardIdIA5() {
-
- return this.cardIdIA5;
- }
-
- public Asn1BigInteger getCardIdNum() {
-
- return this.cardIdNum;
- }
-
- public Long getValidFromYear() {
-
- return this.validFromYear;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidUntilYear() {
-
- return this.validUntilYear;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public TravelClassType getClassCode() {
-
- return this.classCode;
- }
-
- public Long getCardType() {
-
- return this.cardType;
- }
-
- public String getCardTypeDescr() {
-
- return this.cardTypeDescr;
- }
-
- public Long getCustomerStatus() {
-
- return Asn1BigInteger.toLong(this.customerStatus);
- }
-
- public String getCustomerStatusDescr() {
-
- return this.customerStatusDescr;
- }
-
- public SequenceOfUnrestrictedLong getIncludedServices() {
-
- return this.includedServices;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setCustomer(TravelerType customer) {
-
- this.customer = customer;
- }
-
- public void setCardIdIA5(String cardIdIA5) {
-
- this.cardIdIA5 = cardIdIA5;
- }
-
- public void setCardIdNum(Asn1BigInteger cardIdNum) {
-
- this.cardIdNum = cardIdNum;
- }
-
- public void setCardIdNum(Long cardIdNum) {
-
- this.cardIdNum = new Asn1BigInteger(cardIdNum);
- }
-
- public void setValidFromYear(Long validFromYear) {
-
- this.validFromYear = validFromYear;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidUntilYear(Long validUntilYear) {
-
- this.validUntilYear = validUntilYear;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- public void setCardType(Long cardType) {
-
- this.cardType = cardType;
- }
-
- public void setCardTypeDescr(String cardTypeDescr) {
-
- this.cardTypeDescr = cardTypeDescr;
- }
-
- public void setCustomerStatus(Long customerStatus) {
-
- this.customerStatus = Asn1BigInteger.toAsn1(customerStatus);
- }
-
- public void setCustomerStatusDescr(String customerStatusDescr) {
-
- this.customerStatusDescr = customerStatusDescr;
- }
-
- public void setIncludedServices(SequenceOfUnrestrictedLong includedServices) {
-
- this.includedServices = includedServices;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setValidity (Date fromDate , Date untilDate){
-
- Calendar fromCal = Calendar.getInstance();
- fromCal.clear();
- fromCal.setTime(fromDate);
-
- this.validFromYear = new Long( fromCal.get(Calendar.YEAR));
- this.validFromDay = new Long (fromCal.get(Calendar.DAY_OF_YEAR));
-
- if (untilDate == null) return;
-
- Calendar untilCal = Calendar.getInstance();
- untilCal.clear();
- untilCal.setTime(untilDate);
-
- int untildays = untilCal.get(Calendar.DAY_OF_YEAR);
- int yearDiff = untilCal.get(Calendar.YEAR) - fromCal.get(Calendar.YEAR);
-
- this.validUntilYear = new Long( yearDiff);
- this.validUntilDay = new Long (untildays);
-
- }
-
- public Date getValidFromDate (){
-
- if (this.validFromYear == null || this.validFromDay == null) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- //cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.validFromYear.intValue());
- cal.set(Calendar.DAY_OF_YEAR, this.validFromDay.intValue());
- cal.set(Calendar.MINUTE,0);
- cal.set(Calendar.HOUR_OF_DAY,0);
- return cal.getTime();
-
- }
-
-
- public Date getValidUntilDate (){
-
- if (this.validUntilYear == null || this.validUntilDay == null) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- //cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.validFromYear.intValue());
- if (this.validUntilYear != null) {
- cal.add(Calendar.YEAR, this.validUntilYear.intValue());
- }
- cal.set(Calendar.DAY_OF_YEAR, this.validUntilDay.intValue());
- cal.set(Calendar.MINUTE,59);
- cal.set(Calendar.HOUR_OF_DAY,23);
- return cal.getTime();
-
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/CustomerStatusType.java b/src/org/uic/barcode/ticket/api/asn/omv1/CustomerStatusType.java
deleted file mode 100644
index 48a5116..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/CustomerStatusType.java
+++ /dev/null
@@ -1,93 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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.IntRange;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-
-
-@Sequence
-public class CustomerStatusType extends Object {
- public CustomerStatusType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long statusProviderNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String statusProviderIA5;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger customerStatus;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String customerStatusDescr;
-
- public Long getStatusProviderNum() {
-
- return this.statusProviderNum;
- }
-
- public String getStatusProviderIA5() {
-
- return this.statusProviderIA5;
- }
-
- public Long getCustomerStatus() {
-
- return Asn1BigInteger.toLong(this.customerStatus);
- }
-
- public String getCustomerStatusDescr() {
-
- return this.customerStatusDescr;
- }
-
- public void setStatusProviderNum(Long statusProviderNum) {
-
- this.statusProviderNum = statusProviderNum;
- }
-
- public void setStatusProviderIA5(String statusProviderIA5) {
-
- this.statusProviderIA5 = statusProviderIA5;
- }
-
- public void setCustomerStatus(Long customerStatus) {
-
- this.customerStatus = Asn1BigInteger.toAsn1(customerStatus);
- }
-
- public void setCustomerStatusDescr(String customerStatusDescr) {
-
- this.customerStatusDescr = customerStatusDescr;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/DelayConfirmation.java b/src/org/uic/barcode/ticket/api/asn/omv1/DelayConfirmation.java
deleted file mode 100644
index 4f61ff3..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/DelayConfirmation.java
+++ /dev/null
@@ -1,339 +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.omv1;
-
-import java.util.Calendar;
-import java.util.Date;
-import java.util.List;
-import java.util.TimeZone;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-
-
-@Sequence
-@HasExtensionMarker
-public class DelayConfirmation extends Object {
- public DelayConfirmation() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger trainNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trainIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=2016, maxValue=2269)
- @Asn1Optional public Long plannedArrivalYear;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=1, maxValue=366)
- @Asn1Optional public Long plannedArrivalDay;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=0, maxValue=1440)
- @Asn1Optional public Long plannedArrivalTime;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long departureUTCOffset;
-
- @FieldOrder(order = 8)
- @Asn1Default(value="stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=1, maxValue=9999999)
- @Asn1Optional public Long stationNum;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String stationIA5;
-
- @FieldOrder(order = 11)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String stationNameUTF8;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=0, maxValue=999, hasExtensionMarker=false)
- @Asn1Optional public Long delay;
-
- @FieldOrder(order = 13)
- @Asn1Optional public Boolean trainCancelled = false;
-
- @FieldOrder(order = 14)
- @Asn1Default(value="travelerDelayConfirmation")
- @Asn1Optional public ConfirmationTypeType confirmationType;
-
- @FieldOrder(order = 15)
- @Asn1Optional public SequenceOfTicketLinkType affectedTickets;
-
- @FieldOrder(order = 16)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 17)
- @Asn1Optional public ExtensionData extension;
-
-
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public Long getTrainNum() {
-
- return Asn1BigInteger.toLong(this.trainNum);
- }
-
- public String getTrainIA5() {
-
- return this.trainIA5;
- }
-
- public Long getPlannedArrivalYear() {
-
- return this.plannedArrivalYear;
- }
-
- public Long getPlannedArrivalDay() {
-
- return this.plannedArrivalDay;
- }
-
- public Long getPlannedArrivalTime() {
-
- return this.plannedArrivalTime;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null){
- return CodeTableType.stationUIC;
- }
- return this.stationCodeTable;
- }
-
- public Long getStationNum() {
-
- return this.stationNum;
- }
-
- public String getStationIA5() {
-
- return this.stationIA5;
- }
-
- public String getStationNameUTF8() {
-
- return this.stationNameUTF8;
- }
-
- public Long getDelay() {
-
- return this.delay;
- }
-
- public Boolean getTrainCancelled() {
-
- return this.trainCancelled;
- }
-
- public ConfirmationTypeType getConfirmationType() {
-
- if (confirmationType == null){
- return ConfirmationTypeType.trainDelayConfirmation;
- }
-
- return this.confirmationType;
- }
-
- public List getAffectedTickets() {
-
- return this.affectedTickets;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
- this.referenceNum = referenceNum;
- }
-
- public void setReferenceNum(Long referenceNum) {
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setTrainNum(Asn1BigInteger trainNum) {
-
- this.trainNum = trainNum;
- }
-
- public void setTrainIA5(String trainIA5) {
-
- this.trainIA5 = trainIA5;
- }
-
- public void setPlannedArrivalYear(Long plannedArrivalYear) {
-
- this.plannedArrivalYear = plannedArrivalYear;
- }
-
- public void setPlannedArrivalDay(Long plannedArrivalDay) {
-
- this.plannedArrivalDay = plannedArrivalDay;
- }
-
- public void setPlannedArrivalTime(Long plannedArrivalTime) {
-
- this.plannedArrivalTime = plannedArrivalTime;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setStationNum(Long stationNum) {
-
- this.stationNum = stationNum;
- }
-
- public void setStationIA5(String stationIA5) {
-
- this.stationIA5 = stationIA5;
- }
-
- public void setStationNameUTF8(String stationNameUTF8) {
-
- this.stationNameUTF8 = stationNameUTF8;
- }
-
- public void setDelay(Long delay) {
-
- this.delay = delay;
- }
-
- public void setTrainCancelled(Boolean trainCancelled) {
-
- this.trainCancelled = trainCancelled;
- }
-
- public void setConfirmationType(ConfirmationTypeType confirmationType) {
-
- this.confirmationType = confirmationType;
- }
-
- public void setAffectedTickets(SequenceOfTicketLinkType affectedTickets) {
-
- this.affectedTickets = affectedTickets;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setPlannedArrivalDate(Date date){
-
- Calendar cal = Calendar.getInstance();
- cal.setTime(date);
-
- this.plannedArrivalYear = new Long( cal.get(Calendar.YEAR));
- this.plannedArrivalDay = new Long (cal.get(Calendar.DAY_OF_YEAR));
- int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE);
- if (time > 0) {
- this.plannedArrivalTime = new Long (time );
- }
-
- }
-
- public Date getPlannedArrivalDate() {
-
- if (this.plannedArrivalYear == null || this.plannedArrivalDay == null) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.plannedArrivalYear.intValue());
- cal.set(Calendar.DAY_OF_YEAR, this.plannedArrivalDay.intValue());
-
- if (this.plannedArrivalTime != null) {
-
- int hours = this.plannedArrivalTime.intValue() / 60;
- int minutes = this.plannedArrivalTime.intValue() % 60;
- cal.set(Calendar.HOUR_OF_DAY, hours);
- cal.set(Calendar.MINUTE,minutes);
-
- }
-
- return cal.getTime();
- }
-
- public Long getDepartureUTCOffset() {
- return departureUTCOffset;
- }
-
- public void setDepartureUTCOffset(Long departureUTCOffset) {
- this.departureUTCOffset = departureUTCOffset;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/DeltaCoordinates.java b/src/org/uic/barcode/ticket/api/asn/omv1/DeltaCoordinates.java
deleted file mode 100644
index 96ec0ff..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/DeltaCoordinates.java
+++ /dev/null
@@ -1,58 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class DeltaCoordinates extends Object {
- public DeltaCoordinates() {
- }
-
- @FieldOrder(order = 0)
- public Asn1BigInteger longitude;
-
- @FieldOrder(order = 1)
- public Asn1BigInteger latitude;
-
-
- public Asn1BigInteger getLongitude() {
- return this.longitude;
- }
-
- public Asn1BigInteger getLatitude() {
-
- return this.latitude;
- }
-
- public void setLongitude(Asn1BigInteger longitude) {
-
- this.longitude = longitude;
- }
-
- public void setLatitude(Asn1BigInteger latitude) {
-
- this.latitude = latitude;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/DocumentData.java b/src/org/uic/barcode/ticket/api/asn/omv1/DocumentData.java
deleted file mode 100644
index cc81d25..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/DocumentData.java
+++ /dev/null
@@ -1,57 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-@HasExtensionMarker
-public class DocumentData extends Object {
- public DocumentData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public TokenType token;
-
- @FieldOrder(order = 1)
- public TicketDetailData ticket;
-
- public TokenType getToken() {
- return this.token;
- }
-
- public TicketDetailData getTicket() {
- return this.ticket;
- }
-
- public void setToken(TokenType token) {
- this.token = token;
- }
-
- public void setTicket(TicketDetailData ticket) {
- this.ticket = ticket;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ExtensionData.java b/src/org/uic/barcode/ticket/api/asn/omv1/ExtensionData.java
deleted file mode 100644
index 6d2ca87..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ExtensionData.java
+++ /dev/null
@@ -1,59 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.CharacterRestriction;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.datatypesimpl.OctetString;
-
-
-@Sequence
-public class ExtensionData extends Object {
- public ExtensionData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- public String extensionId;
-
- @FieldOrder(order = 1)
- public OctetString extensionData;
-
- public String getExtensionId() {
- return this.extensionId;
- }
-
- public byte[] getExtensionData() {
- return extensionData.toByteArray();
- }
-
- public void setExtensionId(String extensionId) {
- this.extensionId = extensionId;
- }
-
- public void setExtensionData(byte[] extensionData) {
- this.extensionData = new OctetString(extensionData);
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/FIPTicketData.java b/src/org/uic/barcode/ticket/api/asn/omv1/FIPTicketData.java
deleted file mode 100644
index bb0d273..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/FIPTicketData.java
+++ /dev/null
@@ -1,347 +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.omv1;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class FIPTicketData extends Object {
- public FIPTicketData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=-1,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 8)
- @Asn1Optional public SequenceOfActivatedDays activatedDay;
-
- @FieldOrder(order = 9)
- @Asn1Optional public SequenceOfCarrierNum carrierNum;
-
- @FieldOrder(order = 10)
- @Asn1Optional public SequenceOfStringIA5 carrierIA5;
-
- @FieldOrder(order = 11)
- @IntRange(minValue=1,maxValue=200)
- public Long numberOfTravelDays;
-
- @FieldOrder(order = 12)
- public Boolean includesSupplements = false;
-
- @FieldOrder(order = 13)
- @Asn1Default(value="second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 14)
- @Asn1Optional public ExtensionData extension;
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public List getActivatedDay() {
-
- return this.activatedDay;
- }
-
- public List getCarrierNum() {
-
- return this.carrierNum;
- }
-
- public List getCarrierIA5() {
-
- return this.carrierIA5;
- }
-
- public Long getNumberOfTravelDays() {
-
- return this.numberOfTravelDays;
- }
-
- public Boolean getIncludesSupplements() {
-
- return this.includesSupplements;
- }
-
- public TravelClassType getClassCode() {
- if (classCode == null) return TravelClassType.second;
- return this.classCode;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
-
- this.referenceNum = referenceNum;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setActivatedDay(SequenceOfActivatedDays activatedDay) {
-
- this.activatedDay = activatedDay;
- }
-
- public void setCarrierNum(SequenceOfCarrierNum carrierNum) {
-
- this.carrierNum = carrierNum;
- }
-
- public void setCarrierIA5(SequenceOfStringIA5 carrierIA5) {
-
- this.carrierIA5 = carrierIA5;
- }
-
- public void setNumberOfTravelDays(Long numberOfTravelDays) {
-
- this.numberOfTravelDays = numberOfTravelDays;
- }
-
- public void setIncludesSupplements(Boolean includesSupplements) {
-
- this.includesSupplements = includesSupplements;
- }
-
- public void setClassCode(TravelClassType classCode) {
- this.classCode = classCode;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
- return DateTimeUtils.getDate(issuingDate, this.validFromDay,0L);
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, 1439L);
- }
-
- public void addActivatedDays(Collection days) {
- if (days == null || days.isEmpty()) return;
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
- for (Long l : days) {
- this.activatedDay.add(l);
- }
- }
-
- /**
- * Sets the activated days.
- *
- * @param dates the dates
- * @param issuingDate the issuing date
- * @param validFromDate the valid from date
- */
- public void setActivatedDays(Collection dates, Date issuingDate, Date validFromDate){
- if (this.activatedDay != null) {
- this.activatedDay.clear();
- } else {
- this.activatedDay= new SequenceOfActivatedDays();
- }
- long dateDif = 0L;
- if (validFromDate != null) {
- dateDif = DateTimeUtils.getDateDifference(issuingDate,validFromDate);
- }
- if (dates != null && !dates.isEmpty()) {
- for (Date day : dates) {
- this.addActivatedDay(issuingDate, dateDif, day);
- }
- }
- }
-
- /**
- * Adds the activated day.
- *
- * @param issuingDate the issuing date in UTC
- * @param dateOffset the date offset to be added to the issuing date
- * @param day the day to be added
- */
- public void addActivatedDay(Date issuingDate, long dateOffset, Date day){
- Long vDiff = DateTimeUtils.getDateDifferenceLocal(this.getValidFromDate(issuingDate), day);
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
- if (vDiff != null) {
- this.activatedDay.add(vDiff);
- }
- }
-
- /**
- * Gets the activated days.
- *
- * @param issuingDate the issuing date
- * @return the activated days
- */
- public Collection getActivatedDays(Date issuingDate) {
- if (this.activatedDay == null) return null;
- ArrayList dates = new ArrayList();
- for (Long diff: this.getActivatedDay()) {
- Date day = DateTimeUtils.getDate(this.getValidFromDate(issuingDate), diff, null);
- if (day != null) {
- dates.add(day);
- }
- }
- return dates;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/GenderType.java b/src/org/uic/barcode/ticket/api/asn/omv1/GenderType.java
deleted file mode 100644
index f1e58ed..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/GenderType.java
+++ /dev/null
@@ -1,42 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum GenderType {
- unspecified("unspecified"),
- female("female"),
- male("male"),
- other("other");
-
-
- public String text;
-
- GenderType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/GeoCoordinateSystemType.java b/src/org/uic/barcode/ticket/api/asn/omv1/GeoCoordinateSystemType.java
deleted file mode 100644
index 804c038..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/GeoCoordinateSystemType.java
+++ /dev/null
@@ -1,38 +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.omv1;
-
-
-public enum GeoCoordinateSystemType {
- wgs84("wgs84"),
- grs80("grs80");
-
-
- public String text;
-
- GeoCoordinateSystemType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/GeoCoordinateType.java b/src/org/uic/barcode/ticket/api/asn/omv1/GeoCoordinateType.java
deleted file mode 100644
index 931d486..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/GeoCoordinateType.java
+++ /dev/null
@@ -1,144 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class GeoCoordinateType extends Object {
- public GeoCoordinateType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Default(value="milliDegree")
- @Asn1Optional public GeoUnitType geoUnit;
-
- @FieldOrder(order = 1)
- @Asn1Default(value="wgs84")
- @Asn1Optional public GeoCoordinateSystemType coordinateSystem;
-
- @FieldOrder(order = 2)
- @Asn1Default(value="north")
- @Asn1Optional public HemisphereLongitudeType hemisphereLongitude;
-
- @FieldOrder(order = 3)
- @Asn1Default(value="east")
- @Asn1Optional public HemisphereLatitudeType hemisphereLatitude;
-
- @FieldOrder(order = 4)
- public Asn1BigInteger longitude;
-
- @FieldOrder(order = 5)
- public Asn1BigInteger latitude;
-
- @FieldOrder(order = 6)
- @Asn1Optional public GeoUnitType accuracy;
-
- public GeoUnitType getGeoUnit() {
-
- if (geoUnit == null){
- return GeoUnitType.milliDegree;
- }
- return this.geoUnit;
- }
-
- public GeoCoordinateSystemType getCoordinateSystem() {
-
- if (coordinateSystem == null) {
- return GeoCoordinateSystemType.wgs84;
- }
-
- return this.coordinateSystem;
- }
-
- public HemisphereLongitudeType getHemisphereLongitude() {
-
- if (hemisphereLongitude == null){
- return HemisphereLongitudeType.north;
- }
-
- return this.hemisphereLongitude;
- }
-
- public HemisphereLatitudeType getHemisphereLatitude() {
-
- if (hemisphereLatitude == null) {
- return HemisphereLatitudeType.east;
- }
-
- return this.hemisphereLatitude;
- }
-
- public Long getLongitude() {
-
- return Asn1BigInteger.toLong(this.longitude);
- }
-
- public Long getLatitude() {
-
- return Asn1BigInteger.toLong(this.latitude);
- }
-
- public GeoUnitType getAccuracy() {
-
- return this.accuracy;
- }
-
- public void setGeoUnit(GeoUnitType geoUnit) {
-
- this.geoUnit = geoUnit;
- }
-
- public void setCoordinateSystem(GeoCoordinateSystemType coordinateSystem) {
-
- this.coordinateSystem = coordinateSystem;
- }
-
- public void setHemisphereLongitude(HemisphereLongitudeType hemisphereLongitude) {
-
- this.hemisphereLongitude = hemisphereLongitude;
- }
-
- public void setHemisphereLatitude(HemisphereLatitudeType hemisphereLatitude) {
-
- this.hemisphereLatitude = hemisphereLatitude;
- }
-
- public void setLongitude(Long longitude) {
-
- this.longitude = Asn1BigInteger.toAsn1(longitude);
- }
-
- public void setLatitude(Long latitude) {
-
- this.latitude = Asn1BigInteger.toAsn1(latitude);
- }
-
- public void setAccuracy(GeoUnitType accuracy) {
-
- this.accuracy = accuracy;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/GeoUnitType.java b/src/org/uic/barcode/ticket/api/asn/omv1/GeoUnitType.java
deleted file mode 100644
index e864a70..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/GeoUnitType.java
+++ /dev/null
@@ -1,40 +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.omv1;
-
-public enum GeoUnitType {
- microDegree("microDegree"),
- tenthmilliDegree("tenthmilliDegree"),
- milliDegree("milliDegree"),
- centiDegree("centiDegree"),
- deciDegree("deciDegree");
-
-
- public String text;
-
- GeoUnitType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/HemisphereLatitudeType.java b/src/org/uic/barcode/ticket/api/asn/omv1/HemisphereLatitudeType.java
deleted file mode 100644
index 9bb3d7b..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/HemisphereLatitudeType.java
+++ /dev/null
@@ -1,37 +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.omv1;
-
-public enum HemisphereLatitudeType {
- east("east"),
- west("west");
-
-
- public String text;
-
- HemisphereLatitudeType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/HemisphereLongitudeType.java b/src/org/uic/barcode/ticket/api/asn/omv1/HemisphereLongitudeType.java
deleted file mode 100644
index 1c5b310..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/HemisphereLongitudeType.java
+++ /dev/null
@@ -1,36 +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.omv1;
-
-public enum HemisphereLongitudeType {
- north("north"),
- south("south");
-
- public String text;
-
- HemisphereLongitudeType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/IncludedOpenTicketType.java b/src/org/uic/barcode/ticket/api/asn/omv1/IncludedOpenTicketType.java
deleted file mode 100644
index a4b4049..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/IncludedOpenTicketType.java
+++ /dev/null
@@ -1,425 +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.omv1;
-
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.IntRange;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.SizeRange;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-public class IncludedOpenTicketType extends Object {
- public IncludedOpenTicketType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 4)
- @Asn1Optional public Asn1BigInteger externalIssuerId;
-
- @FieldOrder(order = 5)
- @Asn1Optional public Asn1BigInteger issuerAutorizationId;
-
- @FieldOrder(order = 6)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 7)
- @Asn1Optional public SequenceOfRegionalValidityType validRegion;
-
- @FieldOrder(order = 8)
- @IntRange(minValue=-1,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 10)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 11)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 13)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- @FieldOrder(order = 14)
- @Asn1Default(value="second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 15)
- @SizeRange(minValue = 1, maxValue = 2)
- @Asn1Optional public String serviceLevel;
-
- @FieldOrder(order = 16)
- @Asn1Optional public SequenceOfCarrierNum includedCarriersNum;
-
- @FieldOrder(order = 17)
- @Asn1Optional public SequenceOfStringIA5 includedCarriersIA5;
-
- @FieldOrder(order = 18)
- @Asn1Optional public SequenceOfServiceBrands includedServiceBrands;
-
- @FieldOrder(order = 19)
- @Asn1Optional public SequenceOfServiceBrands excludedServiceBrands;
-
- @FieldOrder(order = 20)
- @Asn1Optional public SequenceOfTariffType tariffs;
-
- @FieldOrder(order = 21)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 22)
- @Asn1Optional public ExtensionData extension;
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getExternalIssuerId() {
-
- return Asn1BigInteger.toLong(this.externalIssuerId);
- }
-
- public Long getIssuerAutorizationId() {
-
- return Asn1BigInteger.toLong(this.issuerAutorizationId);
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public List getValidRegion() {
-
- return this.validRegion;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public TravelClassType getClassCode() {
-
- if (classCode == null) {
- return TravelClassType.second;
- }
-
- return this.classCode;
- }
-
- public String getServiceLevel() {
-
- return this.serviceLevel;
- }
-
- public List getIncludedCarriersNum() {
-
- return this.includedCarriersNum;
- }
-
- public List getIncludedCarriersIA5() {
-
- return this.includedCarriersIA5;
- }
-
- public List getIncludedServiceBrands() {
-
- return this.includedServiceBrands;
- }
-
- public List getExcludedServiceBrands() {
-
- return this.excludedServiceBrands;
- }
-
- public List getTariffs() {
-
- return this.tariffs;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setExternalIssuerId(Long externalIssuerId) {
-
- this.externalIssuerId = Asn1BigInteger.toAsn1(externalIssuerId);
- }
-
- public void setIssuerAutorizationId(Long issuerAutorizationId) {
-
- this.issuerAutorizationId = Asn1BigInteger.toAsn1(issuerAutorizationId);
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setValidRegion(SequenceOfRegionalValidityType validRegion) {
-
- this.validRegion = validRegion;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- public void setServiceLevel(String serviceLevel) {
-
- this.serviceLevel = serviceLevel;
- }
-
- public void setIncludedCarriersNum(SequenceOfCarrierNum includedCarriersNum) {
-
- this.includedCarriersNum = includedCarriersNum;
- }
-
- public void setIncludedCarriersIA5(SequenceOfStringIA5 includedCarriersIA5) {
-
- this.includedCarriersIA5 = includedCarriersIA5;
- }
-
- public void setIncludedServiceBrands(SequenceOfServiceBrands includedServiceBrands) {
-
- this.includedServiceBrands = includedServiceBrands;
- }
-
- public void setExcludedServiceBrands(SequenceOfServiceBrands excludedServiceBrands) {
-
- this.excludedServiceBrands = excludedServiceBrands;
- }
-
- public void setTariffs(SequenceOfTariffType tariffs) {
-
- this.tariffs = tariffs;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public void setValidFromTimeZone(Date dateLocal, Date dateUTC ) {
- // -- (UTC = local + offset * 15 Minutes)
- this.validFromUTCOffset = new Long(dateLocal.getTime() - dateUTC.getTime()) / (1000 * 60 * 15);
- }
-
- public void setValidUntilTimeZone(Date dateLocal, Date dateUTC ) {
- // -- (UTC = local + offset * 15 Minutes)
- this.validUntilUTCOffset = new Long(dateLocal.getTime() - dateUTC.getTime()) / (1000 * 60 * 15);
-
- if (this.validFromUTCOffset.longValue() == this.validUntilUTCOffset.longValue()) {
- this.validUntilUTCOffset = null;
- }
- }
-
-
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
- public Date getUTCValidFromDate(Date issuingDate){
- return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay, this.validFromTime, this.validFromUTCOffset);
- }
-
- public Date getUTCValidUntilDate(Date issuingDate){
- if (this.validUntilUTCOffset == null) {
- return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay, this.validFromTime, this.validFromUTCOffset);
- } else {
- return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay, this.validUntilTime, this.validFromUTCOffset);
- }
- }
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/IssuingData.java b/src/org/uic/barcode/ticket/api/asn/omv1/IssuingData.java
deleted file mode 100644
index 5f0e345..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/IssuingData.java
+++ /dev/null
@@ -1,361 +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.omv1;
-
-import java.util.Calendar;
-import java.util.Date;
-import java.util.TimeZone;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.FixedSize;
-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;
-
-@Sequence
-@HasExtensionMarker
-public class IssuingData extends Object {
- public IssuingData() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long securityProviderNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String securityProviderIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long issuerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String issuerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=2016,maxValue=2269)
- public Long issuingYear;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=1,maxValue=366)
- public Long issuingDay;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long issuingTime;
-
- @FieldOrder(order = 7)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String issuerName;
-
- @FieldOrder(order = 8)
- public Boolean specimen = false;
-
- @FieldOrder(order = 9)
- public Boolean securePaperTicket = false;
-
- @FieldOrder(order = 10)
- public Boolean activated = true;
-
- @FieldOrder(order = 11)
- @FixedSize(3)
- @Asn1Default(value="EUR")
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String currency;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=1,maxValue=3)
- @Asn1Default(value="2")
- @Asn1Optional public Long currencyFract;
-
- @FieldOrder(order = 13)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String issuerPNR;
-
- @FieldOrder(order = 14)
- @Asn1Optional public ExtensionData extension;
-
- @FieldOrder(order = 15)
- @Asn1Optional public Asn1BigInteger issuedOnTrainNum;
-
- @FieldOrder(order = 16)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String issuedOnTrainIA5;
-
- @FieldOrder(order = 17)
- @Asn1Optional public Asn1BigInteger issuedOnLine;
-
- @FieldOrder(order = 18)
- @Asn1Optional public GeoCoordinateType pointOfSale;
-
-
-
-
-
-
- public Long getSecurityProviderNum() {
-
- return this.securityProviderNum;
- }
-
- public String getSecurityProviderIA5() {
-
- return this.securityProviderIA5;
- }
-
- public Long getIssuerNum() {
-
- return this.issuerNum;
- }
-
- public String getIssuerIA5() {
-
- return this.issuerIA5;
- }
-
- public Long getIssuingYear() {
-
- return this.issuingYear;
- }
-
- public Long getIssuingDay() {
-
- return this.issuingDay;
- }
-
- public Long getIssuingTime() {
-
- return this.issuingTime;
- }
-
- public String getIssuerName() {
-
- return this.issuerName;
- }
-
- public Boolean getSpecimen() {
-
- return this.specimen;
- }
-
- public Boolean getSecurePaperTicket() {
-
- return this.securePaperTicket;
- }
-
- public Boolean getActivated() {
-
- return this.activated;
- }
-
- public String getCurrency() {
-
- if (currency == null || currency.length() == 0){
- return "EUR";
- }
-
- return this.currency;
- }
-
- public Long getCurrencyFract() {
-
- if (currencyFract == null) {
- return new Long(2);
- }
- return this.currencyFract;
- }
-
- public String getIssuerPNR() {
-
- return this.issuerPNR;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public Long getIssuedOnTrainNum() {
-
- return Asn1BigInteger.toLong(issuedOnTrainNum);
- }
-
- public String getIssuedOnTrainIA5() {
-
- return this.issuedOnTrainIA5;
- }
-
- public Long getIssuedOnLine() {
-
- return Asn1BigInteger.toLong(issuedOnLine);
- }
-
- public GeoCoordinateType getPointOfSale() {
-
- return this.pointOfSale;
- }
-
- public void setSecurityProviderNum(Long securityProviderNum) {
-
- this.securityProviderNum = securityProviderNum;
- }
-
- public void setSecurityProviderIA5(String securityProviderIA5) {
-
- this.securityProviderIA5 = securityProviderIA5;
- }
-
- public void setIssuerNum(Long issuerNum) {
-
- this.issuerNum = issuerNum;
- }
-
- public void setIssuerIA5(String issuerIA5) {
-
- this.issuerIA5 = issuerIA5;
- }
-
- public void setIssuingYear(Long issuingYear) {
-
- this.issuingYear = issuingYear;
- }
-
- public void setIssuingDay(Long issuingDay) {
-
- this.issuingDay = issuingDay;
- }
-
- public void setIssuingTime(Long issuingTime) {
-
- this.issuingTime = issuingTime;
- }
-
- public void setIssuerName(String issuerName) {
-
- this.issuerName = issuerName;
- }
-
- public void setSpecimen(Boolean specimen) {
-
- this.specimen = specimen;
- }
-
- public void setSecurePaperTicket(Boolean securePaperTicket) {
-
- this.securePaperTicket = securePaperTicket;
- }
-
- public void setActivated(Boolean activated) {
-
- this.activated = activated;
- }
-
- public void setCurrency(String currency) {
-
- this.currency = currency;
- }
-
- public void setCurrencyFract(Long currencyFract) {
-
- this.currencyFract = currencyFract;
- }
-
- public void setIssuerPNR(String issuerPNR) {
-
- this.issuerPNR = issuerPNR;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setIssuedOnTrainNum(Long issuedOnTrainNum) {
-
- this.issuedOnTrainNum = Asn1BigInteger.toAsn1(issuedOnTrainNum);
- }
-
- public void setIssuedOnTrainIA5(String issuedOnTrainIA5) {
-
- this.issuedOnTrainIA5 = issuedOnTrainIA5;
- }
-
- public void setIssuedOnLine(Long issuedOnLine) {
-
- this.issuedOnLine = Asn1BigInteger.toAsn1(issuedOnLine);
- }
-
- public void setPointOfSale(GeoCoordinateType pointOfSale) {
-
- this.pointOfSale = pointOfSale;
- }
-
- public void setIssuingDate(Date date){
-
- if (date == null) {
- date = Calendar.getInstance().getTime();
- }
-
- Calendar cal = Calendar.getInstance();
- cal.setTime(date);
-
- this.issuingYear = new Long( cal.get(Calendar.YEAR));
- this.issuingDay = new Long (cal.get(Calendar.DAY_OF_YEAR));
- int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE);
- if (time > 0) {
- this.issuingTime = new Long (time );
- }
-
- }
-
- public Date getIssuingDate() {
-
- if (this.issuingYear == null || this.issuingDay == null) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.issuingYear.intValue());
- cal.set(Calendar.DAY_OF_YEAR, this.issuingDay.intValue());
-
- if (this.issuingTime != null) {
-
- int hours = this.issuingTime.intValue() / 60;
- int minutes = this.issuingTime.intValue() % 60;
- cal.set(Calendar.HOUR_OF_DAY, hours);
- cal.set(Calendar.MINUTE,minutes);
-
- }
-
- Date d = cal.getTime();
- return d;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/LineType.java b/src/org/uic/barcode/ticket/api/asn/omv1/LineType.java
deleted file mode 100644
index 290f0e6..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/LineType.java
+++ /dev/null
@@ -1,185 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.OctetString;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfUnrestrictedLong;
-
-@Sequence
-@HasExtensionMarker
-
-public class LineType extends Object {
- public LineType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long carrierNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String carrierIA5;
-
- @FieldOrder(order = 2)
- @Asn1Optional public SequenceOfUnrestrictedLong lineId;
-
- @FieldOrder(order = 3)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=9999999)
- @Asn1Optional public Long entryStationNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String entryStationIA5;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=0,maxValue=9999999)
- @Asn1Optional public Long terminatingStationNum;
-
- @FieldOrder(order = 7)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String terminatingStationIA5;
-
- @FieldOrder(order = 8)
- @Asn1Optional public Asn1BigInteger city;
-
- @FieldOrder(order = 9)
- @Asn1Optional public OctetString binaryZoneId;
-
-
-
- public Long getCarrierNum() {
-
- return this.carrierNum;
- }
-
- public String getCarrierIA5() {
-
- return this.carrierIA5;
- }
-
- public SequenceOfUnrestrictedLong getLineId() {
-
- return this.lineId;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getEntryStationNum() {
-
- return this.entryStationNum;
- }
-
- public String getEntryStationIA5() {
-
- return this.entryStationIA5;
- }
-
- public Long getTerminatingStationNum() {
-
- return this.terminatingStationNum;
- }
-
- public String getTerminatingStationIA5() {
-
- return this.terminatingStationIA5;
- }
-
- public Long getCity() {
-
- return Asn1BigInteger.toLong(this.city);
- }
-
- public byte[] getBinaryZoneId() {
-
- return binaryZoneId.toByteArray();
- }
-
- public void setCarrierNum(Long carrierNum) {
-
- this.carrierNum = carrierNum;
- }
-
- public void setCarrierIA5(String carrierIA5) {
-
- this.carrierIA5 = carrierIA5;
- }
-
- public void setLineId(SequenceOfUnrestrictedLong lineId) {
-
- this.lineId = lineId;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setEntryStationNum(Long entryStationNum) {
-
- this.entryStationNum = entryStationNum;
- }
-
- public void setEntryStationIA5(String entryStationIA5) {
-
- this.entryStationIA5 = entryStationIA5;
- }
-
- public void setTerminatingStationNum(Long terminatingStationNum) {
-
- this.terminatingStationNum = terminatingStationNum;
- }
-
- public void setTerminatingStationIA5(String terminatingStationIA5) {
-
- this.terminatingStationIA5 = terminatingStationIA5;
- }
-
- public void setCity(Long city) {
-
- this.city = Asn1BigInteger.toAsn1(city);
- }
-
- public void setBinaryZoneId(byte[] binaryZoneId) {
-
- this.binaryZoneId = new OctetString(binaryZoneId);
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/LinkMode.java b/src/org/uic/barcode/ticket/api/asn/omv1/LinkMode.java
deleted file mode 100644
index 00d30b5..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/LinkMode.java
+++ /dev/null
@@ -1,39 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum LinkMode {
- issuedTogether("issuedTogether"),
- onlyValidInCombination("onlyValidInCombination");
-
- public String text;
-
- LinkMode(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/LoadingDeckType.java b/src/org/uic/barcode/ticket/api/asn/omv1/LoadingDeckType.java
deleted file mode 100644
index 60a285e..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/LoadingDeckType.java
+++ /dev/null
@@ -1,38 +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.omv1;
-
-
-public enum LoadingDeckType {
- unspecified("unspecified"),
- upper("upper"),
- lower("lower");
-
- public String text;
-
- LoadingDeckType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/LuggageRestrictionType.java b/src/org/uic/barcode/ticket/api/asn/omv1/LuggageRestrictionType.java
deleted file mode 100644
index 04f4309..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/LuggageRestrictionType.java
+++ /dev/null
@@ -1,88 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-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.Sequence;
-
-@Sequence
-@HasExtensionMarker
-public class LuggageRestrictionType extends Object {
- public LuggageRestrictionType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=0,maxValue=99)
- @Asn1Default(value="3")
- @Asn1Optional public Long maxHandLuggagePieces;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=0,maxValue=99)
- @Asn1Default(value="1")
- @Asn1Optional public Long maxNonHandLuggagePieces;
-
- @FieldOrder(order = 2)
- @Asn1Optional public SequenceOfRegisteredLuggageType registeredLuggage;
-
-
- public void setRegisteredLuggage(
- SequenceOfRegisteredLuggageType registeredLuggage) {
- this.registeredLuggage = registeredLuggage;
- }
-
- public Long getMaxHandLuggagePieces() {
-
- if (maxHandLuggagePieces == null) {
- return new Long(3);
- }
-
- return this.maxHandLuggagePieces;
- }
-
- public Long getMaxNonHandLuggagePieces() {
-
- if (maxNonHandLuggagePieces == null) {
- return new Long(1);
- }
-
- return this.maxNonHandLuggagePieces;
- }
-
- public SequenceOfRegisteredLuggageType getRegisteredLuggage() {
-
- return this.registeredLuggage;
- }
-
- public void setMaxHandLuggagePieces(Long maxHandLuggagePieces) {
-
- this.maxHandLuggagePieces = maxHandLuggagePieces;
- }
-
- public void setMaxNonHandLuggagePieces(Long maxNonHandLuggagePieces) {
-
- this.maxNonHandLuggagePieces = maxNonHandLuggagePieces;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/OpenTicketData.java b/src/org/uic/barcode/ticket/api/asn/omv1/OpenTicketData.java
deleted file mode 100644
index 7d82232..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/OpenTicketData.java
+++ /dev/null
@@ -1,695 +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.omv1;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class OpenTicketData extends Object {
- public OpenTicketData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @Asn1Optional public Asn1BigInteger externalIssuerId;
-
- @FieldOrder(order = 7)
- @Asn1Optional public Asn1BigInteger issuerAutorizationId;
-
- @FieldOrder(order = 8)
- public Boolean returnIncluded = false;
-
- @FieldOrder(order = 9)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 10)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 11)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 13)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 14)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 15)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- @FieldOrder(order = 16)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String validRegionDesc;
-
- @FieldOrder(order = 17)
- @Asn1Optional public SequenceOfRegionalValidityType validRegion;
-
- @FieldOrder(order = 18)
- @Asn1Optional public ReturnRouteDescriptionType returnDescription;
-
- @FieldOrder(order = 19)
- @Asn1Default(value = "0")
- @IntRange(minValue=-1,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 20)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 21)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 22)
- @Asn1Default(value = "0")
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 23)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 24)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- @FieldOrder(order = 25)
- @Asn1Optional public SequenceOfActivatedDays activatedDay;
-
- @FieldOrder(order = 26)
- @Asn1Default(value="second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 27)
- @SizeRange(minValue = 1, maxValue = 2)
- @Asn1Optional public String serviceLevel;
-
- @FieldOrder(order = 28)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public SequenceOfCarrierNum carrierNum;
-
- @FieldOrder(order = 29)
- @Asn1Optional public SequenceOfStringIA5 carrierIA5;
-
- @FieldOrder(order = 30)
- @Asn1Optional public SequenceOfServiceBrands includedServiceBrands;
-
- @FieldOrder(order = 31)
- @Asn1Optional public SequenceOfServiceBrands excludedServiceBrands;
-
- @FieldOrder(order = 32)
- @Asn1Optional public SequenceOfTariffType tariffs;
-
- @FieldOrder(order = 33)
- @Asn1Optional Asn1BigInteger price;
-
- @FieldOrder(order = 34)
- @Asn1Optional SequenceOfVatDetail vatDetails;
-
- @FieldOrder(order = 35)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 36)
- @Asn1Optional public SequenceOfIncludedOpenTicketType includedAddOns;
-
- @FieldOrder(order = 37)
- @Asn1Optional public LuggageRestrictionType luggage;
-
- @FieldOrder(order = 38)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
- public Long getReferenceNum() {
- return Asn1BigInteger.toLong(this.referenceNum);
- }
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getExtIssuerId() {
-
- return Asn1BigInteger.toLong(externalIssuerId);
- }
-
- public Long getIssuerAutorizationId() {
-
- return Asn1BigInteger.toLong(issuerAutorizationId);
- }
-
- public Boolean getReturnIncluded() {
-
- return this.returnIncluded;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
-
- return this.stationCodeTable;
- }
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public String getValidRegionDesc() {
-
- return this.validRegionDesc;
- }
-
- public List getValidRegion() {
-
- return this.validRegion;
- }
-
- public ReturnRouteDescriptionType getReturnDescription() {
-
- return this.returnDescription;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public List getActivatedDay() {
-
- return this.activatedDay;
- }
-
- public TravelClassType getClassCode() {
-
- if (classCode == null) {
- return TravelClassType.second;
- }
-
- return this.classCode;
- }
-
- public String getServiceLevel() {
-
- return this.serviceLevel;
- }
-
- public List getCarriersNum() {
-
- return this.carrierNum;
- }
-
- public List getCarriersIA5() {
-
- return this.carrierIA5;
- }
-
- public List getIncludedServiceBrands() {
-
- return this.includedServiceBrands;
- }
-
- public List getExcludedServiceBrands() {
-
- return this.excludedServiceBrands;
- }
-
- public List getTariffs() {
-
- return this.tariffs;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public List getIncludedAddOns() {
-
- return this.includedAddOns;
- }
-
- public LuggageRestrictionType getLuggage() {
-
- return this.luggage;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceNum(Long referenceNum) {
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setExtIssuerId(Long extIssuerId) {
-
- this.externalIssuerId = Asn1BigInteger.toAsn1(extIssuerId);
- }
-
- public void setIssuerAutorizationId(Long issuerAutorizationId) {
-
- this.issuerAutorizationId = Asn1BigInteger.toAsn1(issuerAutorizationId);
- }
-
- public void setReturnIncluded(Boolean returnIncluded) {
-
- this.returnIncluded = returnIncluded;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
- public void setValidRegionDesc(String validRegionDesc) {
-
- this.validRegionDesc = validRegionDesc;
- }
-
- public void setValidRegion(SequenceOfRegionalValidityType validRegion) {
-
- this.validRegion = validRegion;
- }
-
- public void setReturnDescription(ReturnRouteDescriptionType returnDescription) {
-
- this.returnDescription = returnDescription;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- public void setActivatedDay(SequenceOfActivatedDays activatedDay) {
-
- this.activatedDay = activatedDay;
- }
-
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- public void setServiceLevel(String serviceLevel) {
-
- this.serviceLevel = serviceLevel;
- }
-
- public void setCarriersNum(SequenceOfCarrierNum carriersNum) {
-
- this.carrierNum = carriersNum;
- }
-
- public void setCarriersIA5(SequenceOfStringIA5 carriersIA5) {
-
- this.carrierIA5 = carriersIA5;
- }
-
- public void setIncludedServiceBrands(SequenceOfServiceBrands includedServiceBrands) {
-
- this.includedServiceBrands = includedServiceBrands;
- }
-
- public void setExcludedServiceBrands(SequenceOfServiceBrands excludedServiceBrands) {
-
- this.excludedServiceBrands = excludedServiceBrands;
- }
-
- public void setTariffs(SequenceOfTariffType tariffs) {
-
- this.tariffs = tariffs;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setIncludedAddOns(SequenceOfIncludedOpenTicketType includedAddOns) {
-
- this.includedAddOns = includedAddOns;
- }
-
- public void setLuggage(LuggageRestrictionType luggage) {
-
- this.luggage = luggage;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public Long getPrice() {
- return Asn1BigInteger.toLong(price);
- }
-
- public void setPrice(Long price) {
- this.price = Asn1BigInteger.toAsn1(price);
- }
-
- public SequenceOfVatDetail getVatDetails() {
- return vatDetails;
- }
-
- public void setVatDetails(SequenceOfVatDetail vatDetails) {
- this.vatDetails = vatDetails;
- }
-
- public void addVatDetail(VatDetailType vatDetail) {
- if (this.vatDetails == null) {
- this.vatDetails = new SequenceOfVatDetail();
- }
- this.vatDetails.add(vatDetail);
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
- if (this.validUntilDay == null) {
- return null;
- }
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
-
- public void addActivatedDays(Collection days) {
- if (days == null || days.isEmpty()) return;
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
- for (Long l : days) {
- this.activatedDay.add(l);
- }
- }
-
- /**
- * Sets the activated days.
- *
- * @param dates the dates
- * @param issuingDate the issuing date
- * @param validFromDate the valid from date
- */
- public void setActivatedDays(Collection dates, Date issuingDate, Date validFromDate){
- if (this.activatedDay != null) {
- this.activatedDay.clear();
- } else {
- this.activatedDay= new SequenceOfActivatedDays();
- }
- long dateDif = 0L;
- if (validFromDate != null) {
- dateDif = DateTimeUtils.getDateDifference(issuingDate,validFromDate);
- }
- if (dates != null && !dates.isEmpty()) {
- for (Date day : dates) {
- this.addActivatedDay(issuingDate, dateDif, day);
- }
- }
- }
-
-
- /**
- * Adds the activated day.
- *
- * @param issuingDate the issuing date in UTC
- * @param dateOffset the date offset to be added to the issuing date
- * @param day the day to be added
- */
- public void addActivatedDay(Date issuingDate, long dateOffset, Date day){
- Long vDiff = DateTimeUtils.getDateDifferenceLocal(this.getValidFromDate(issuingDate), day);
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
- if (vDiff != null) {
- this.activatedDay.add(vDiff);
- }
- }
-
- /**
- * Gets the activated days.
- *
- * @param issuingDate the issuing date
- * @return the activated days
- */
- public Collection getActivatedDays(Date issuingDate) {
- if (this.activatedDay == null) return null;
- ArrayList dates = new ArrayList();
- for (Long diff: this.getActivatedDay()) {
- Date day = DateTimeUtils.getDate(this.getValidFromDate(issuingDate), diff, null);
- if (day != null) {
- dates.add(day);
- }
- }
- return dates;
- }
-
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ParkingGroundData.java b/src/org/uic/barcode/ticket/api/asn/omv1/ParkingGroundData.java
deleted file mode 100644
index 8142ee1..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ParkingGroundData.java
+++ /dev/null
@@ -1,364 +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.omv1;
-
-import java.util.Date;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class ParkingGroundData extends Object {
- public ParkingGroundData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.IA5String)
- public String parkingGroundId = "";
-
- @FieldOrder(order = 3)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long fromParkingDate;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long toParkingDate;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=0,maxValue=32000)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 8)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String accessCode;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.UTF8String)
- public String location;
-
- @FieldOrder(order = 11)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long stationNum;
-
- @FieldOrder(order = 13)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String stationIA5;
-
- @FieldOrder(order = 14)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String specialInformation;
-
- @FieldOrder(order = 15)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String entryTrack;
-
- @FieldOrder(order = 16)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String numberPlate;
-
- @FieldOrder(order = 17)
- @Asn1Optional Asn1BigInteger price;
-
- @FieldOrder(order = 18)
- @Asn1Optional SequenceOfVatDetail vatDetails;
-
- @FieldOrder(order = 19)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public String getParkingGroundId() {
-
- return this.parkingGroundId;
- }
-
- public Long getFromParkingDate() {
-
- return this.fromParkingDate;
- }
-
- public Long getToParkingDate() {
-
- return this.toParkingDate;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public String getAccessCode() {
-
- return this.accessCode;
- }
-
- public String getLocation() {
-
- return this.location;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getStationNum() {
-
- return this.stationNum;
- }
-
- public String getStationIA5() {
-
- return this.stationIA5;
- }
-
- public String getSpecialInformation() {
-
- return this.specialInformation;
- }
-
- public String getEntryTrack() {
-
- return this.entryTrack;
- }
-
- public String getNumberPlate() {
-
- return this.numberPlate;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
-
- this.referenceNum = referenceNum;
- }
-
- public void setParkingGroundId(String parkingGroundId) {
-
- this.parkingGroundId = parkingGroundId;
- }
-
- public void setFromParkingDate(Long fromParkingDate) {
-
- this.fromParkingDate = fromParkingDate;
- }
-
- public void setToParkingDate(Long toParkingDate) {
-
- this.toParkingDate = toParkingDate;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setAccessCode(String accessCode) {
-
- this.accessCode = accessCode;
- }
-
- public void setLocation(String location) {
-
- this.location = location;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setStationNum(Long stationNum) {
-
- this.stationNum = stationNum;
- }
-
- public void setStationIA5(String stationIA5) {
-
- this.stationIA5 = stationIA5;
- }
-
- public void setSpecialInformation(String specialInformation) {
-
- this.specialInformation = specialInformation;
- }
-
- public void setEntryTrack(String entryTrack) {
-
- this.entryTrack = entryTrack;
- }
-
- public void setNumberPlate(String numberPlate) {
-
- this.numberPlate = numberPlate;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public Long getPrice() {
- return Asn1BigInteger.toLong(price);
- }
-
- public void setPrice(Long price) {
- this.price = Asn1BigInteger.toAsn1(price);
- }
-
- public SequenceOfVatDetail getVatDetails() {
- return vatDetails;
- }
-
- public void setVatDetails(SequenceOfVatDetail vatDetails) {
- this.vatDetails = vatDetails;
- }
-
- public void addVatDetail(VatDetailType vatDetail) {
- if (this.vatDetails == null) {
- this.vatDetails = new SequenceOfVatDetail();
- }
- this.vatDetails.add(vatDetail);
- }
-
-
- public void setParkingDate (Date fromDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.fromParkingDate = DateTimeUtils.getDateDifference(issuingDate,fromDate);
-
- }
-
- public Date getFromParkingDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.fromParkingDate, 0L);
-
- }
-
- public Date getToParkingDate(Date issuingDate) {
-
- if ( this.toParkingDate == null) return null;
-
- return DateTimeUtils.getDate(issuingDate, this.fromParkingDate + this.toParkingDate, 1439L);
-
- }
-
- public void setParkingDates(Date fromDate, Date toDate, Date issuingDate) {
-
- if (issuingDate == null || fromDate == null) return;
-
- this.fromParkingDate = DateTimeUtils.getDateDifference(issuingDate,fromDate);
-
-
- if (toDate != null) {
- this.toParkingDate = DateTimeUtils.getDateDifference(fromDate,toDate);
-
- }
-
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/PassData.java b/src/org/uic/barcode/ticket/api/asn/omv1/PassData.java
deleted file mode 100644
index 701b076..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/PassData.java
+++ /dev/null
@@ -1,1005 +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.omv1;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-// TODO: Auto-generated Javadoc
-/**
- * The Class PassData.
- */
-@Sequence
-@HasExtensionMarker
-public class PassData extends Object {
-
- /**
- * Instantiates a new pass data.
- */
- public PassData() {
- }
-
- /** The reference num. */
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- /** The reference IA 5. */
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- /** The product owner num. */
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- /** The product owner IA 5. */
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- /** The product id num. */
- @FieldOrder(order = 4)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productIdNum;
-
- /** The product id IA 5. */
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- /** The pass type. */
- @FieldOrder(order = 6)
- @IntRange(minValue=1,maxValue=250)
- @Asn1Optional public Long passType;
-
- /** The pass description. */
- @FieldOrder(order = 7)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String passDescription;
-
- /** The class code. */
- @FieldOrder(order = 8)
- @Asn1Default (value="second")
- @Asn1Optional public TravelClassType classCode;
-
- /** The valid from day. */
- @FieldOrder(order = 9)
- @IntRange(minValue=-1,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- /** The valid from time. */
- @FieldOrder(order = 10)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validFromTime;
-
- /** The valid from UTC offset. */
- @FieldOrder(order = 11)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- /** The valid until day. */
- @FieldOrder(order = 12)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- /** The valid until time. */
- @FieldOrder(order = 13)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validUntilTime;
-
- /** The valid until UTC offset. */
- @FieldOrder(order = 14)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- /** The validity period details. */
- @FieldOrder(order = 15)
- @Asn1Optional public ValidityPeriodDetailType validityPeriodDetails;
-
- /** The number of validity days. */
- @FieldOrder(order = 16)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long numberOfValidityDays;
-
- /** The number of possible trips. */
- @FieldOrder(order = 17)
- @IntRange(minValue=1,maxValue=250)
- @Asn1Optional public Long numberOfPossibleTrips;
-
- /** The number of days of travel. */
- @FieldOrder(order = 18)
- @IntRange(minValue=1,maxValue=250)
- @Asn1Optional public Long numberOfDaysOfTravel;
-
- /** The activated day. */
- @FieldOrder(order = 19)
- @Asn1Optional public SequenceOfActivatedDays activatedDay;
-
- /** The countries. */
- @FieldOrder(order = 20)
- @Asn1Optional public SequenceOfCountries countries;
-
- /** The included carriers num. */
- @FieldOrder(order = 21)
- @Asn1Optional public SequenceOfCarrierNum includedCarriersNum;
-
- /** The included carriers IA 5. */
- @FieldOrder(order = 22)
- @Asn1Optional public SequenceOfStringIA5 includedCarriersIA5;
-
- /** The excluded carriers num. */
- @FieldOrder(order = 23)
- @Asn1Optional public SequenceOfCarrierNum excludedCarriersNum;
-
- /** The excluded carriers IA 5. */
- @FieldOrder(order = 24)
- @Asn1Optional public SequenceOfStringIA5 excludedCarriersIA5;
-
- /** The included service brands. */
- @FieldOrder(order = 25)
- @Asn1Optional public SequenceOfServiceBrands includedServiceBrands;
-
- /** The excluded service brands. */
- @FieldOrder(order = 26)
- @Asn1Optional public SequenceOfServiceBrands excludedServiceBrands;
-
- /** The valid region. */
- @FieldOrder(order = 27)
- @Asn1Optional public SequenceOfRegionalValidityType validRegion;
-
- /** The tariffs. */
- @FieldOrder(order = 28)
- @Asn1Optional public SequenceOfTariffType tariffs;
-
- /** The price. */
- @FieldOrder(order = 29)
- @Asn1Optional Asn1BigInteger price;
-
- /** The vat details. */
- @FieldOrder(order = 30)
- @Asn1Optional SequenceOfVatDetail vatDetails;
-
- /** The info text. */
- @FieldOrder(order = 31)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- /** The extension. */
- @FieldOrder(order = 32)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
-
- /**
- * Gets the reference num.
- *
- * @return the reference num
- */
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- /**
- * Gets the reference IA 5.
- *
- * @return the reference IA 5
- */
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- /**
- * Gets the product owner num.
- *
- * @return the product owner num
- */
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- /**
- * Gets the product owner IA 5.
- *
- * @return the product owner IA 5
- */
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- /**
- * Gets the product id num.
- *
- * @return the product id num
- */
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- /**
- * Gets the product id IA 5.
- *
- * @return the product id IA 5
- */
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- /**
- * Gets the pass type.
- *
- * @return the pass type
- */
- public Long getPassType() {
-
- return this.passType;
- }
-
- /**
- * Gets the pass description.
- *
- * @return the pass description
- */
- public String getPassDescription() {
-
- return this.passDescription;
- }
-
- /**
- * Gets the class code.
- *
- * @return the class code
- */
- public TravelClassType getClassCode() {
-
- if (classCode == null){
- return TravelClassType.second;
- }
-
- return this.classCode;
- }
-
- /**
- * Gets the valid from day.
- *
- * @return the valid from day
- */
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- /**
- * Gets the valid from time.
- *
- * @return the valid from time
- */
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- /**
- * Gets the valid until day.
- *
- * @return the valid until day
- */
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- /**
- * Gets the valid until time.
- *
- * @return the valid until time
- */
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- /**
- * Gets the validity period details.
- *
- * @return the validity period details
- */
- public ValidityPeriodDetailType getValidityPeriodDetails() {
-
- return this.validityPeriodDetails;
- }
-
- /**
- * Gets the number of validity days.
- *
- * @return the number of validity days
- */
- public Long getNumberOfValidityDays() {
-
- return this.numberOfValidityDays;
- }
-
- /**
- * Gets the number of possible trips.
- *
- * @return the number of possible trips
- */
- public Long getNumberOfPossibleTrips() {
-
- return this.numberOfPossibleTrips;
- }
-
- /**
- * Gets the number of days of travel.
- *
- * @return the number of days of travel
- */
- public Long getNumberOfDaysOfTravel() {
-
- return this.numberOfDaysOfTravel;
- }
-
- /**
- * Gets the activated day.
- *
- * @return the activated day
- */
- public List getActivatedDay() {
-
- return this.activatedDay;
- }
-
- /**
- * Gets the countries.
- *
- * @return the countries
- */
- public List getCountries() {
-
- return this.countries;
- }
-
- /**
- * Gets the included carriers num.
- *
- * @return the included carriers num
- */
- public List getIncludedCarriersNum() {
-
- return this.includedCarriersNum;
- }
-
- /**
- * Gets the included carriers IA 5.
- *
- * @return the included carriers IA 5
- */
- public List getIncludedCarriersIA5() {
-
- return this.includedCarriersIA5;
- }
-
- /**
- * Gets the excluded carriers num.
- *
- * @return the excluded carriers num
- */
- public List getExcludedCarriersNum() {
-
- return this.excludedCarriersNum;
- }
-
- /**
- * Gets the excluded carriers IA 5.
- *
- * @return the excluded carriers IA 5
- */
- public SequenceOfStringIA5 getExcludedCarriersIA5() {
-
- return this.excludedCarriersIA5;
- }
-
- /**
- * Gets the included service brands.
- *
- * @return the included service brands
- */
- public SequenceOfServiceBrands getIncludedServiceBrands() {
-
- return this.includedServiceBrands;
- }
-
- /**
- * Gets the excluded service brands.
- *
- * @return the excluded service brands
- */
- public SequenceOfServiceBrands getExcludedServiceBrands() {
-
- return this.excludedServiceBrands;
- }
-
- /**
- * Gets the valid region.
- *
- * @return the valid region
- */
- public List getValidRegion() {
-
- return this.validRegion;
- }
-
- /**
- * Gets the tariffs.
- *
- * @return the tariffs
- */
- public List getTariffs() {
-
- return this.tariffs;
- }
-
- /**
- * Gets the info text.
- *
- * @return the info text
- */
- public String getInfoText() {
-
- return this.infoText;
- }
-
- /**
- * Gets the extension.
- *
- * @return the extension
- */
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- /**
- * Sets the reference num.
- *
- * @param referenceNum the new reference num
- */
- public void setReferenceNum(Asn1BigInteger referenceNum) {
-
- this.referenceNum = referenceNum;
- }
-
- /**
- * Sets the reference IA 5.
- *
- * @param referenceIA5 the new reference IA 5
- */
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- /**
- * Sets the product owner num.
- *
- * @param productOwnerNum the new product owner num
- */
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- /**
- * Sets the product owner IA 5.
- *
- * @param productOwnerIA5 the new product owner IA 5
- */
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- /**
- * Sets the product id num.
- *
- * @param productIdNum the new product id num
- */
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- /**
- * Sets the product id IA 5.
- *
- * @param productIdIA5 the new product id IA 5
- */
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- /**
- * Sets the pass type.
- *
- * @param passType the new pass type
- */
- public void setPassType(Long passType) {
-
- this.passType = passType;
- }
-
- /**
- * Sets the pass description.
- *
- * @param passDescription the new pass description
- */
- public void setPassDescription(String passDescription) {
-
- this.passDescription = passDescription;
- }
-
- /**
- * Sets the class code.
- *
- * @param classCode the new class code
- */
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- /**
- * Sets the valid from day.
- *
- * @param validFromDay the new valid from day
- */
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- /**
- * Sets the valid from time.
- *
- * @param validFromTime the new valid from time
- */
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- /**
- * Sets the valid until day.
- *
- * @param validUntilDay the new valid until day
- */
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- /**
- * Sets the valid until time.
- *
- * @param validUntilTime the new valid until time
- */
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- /**
- * Sets the validity period details.
- *
- * @param validityPeriodDetails the new validity period details
- */
- public void setValidityPeriodDetails(ValidityPeriodDetailType validityPeriodDetails) {
-
- this.validityPeriodDetails = validityPeriodDetails;
- }
-
- /**
- * Sets the number of validity days.
- *
- * @param numberOfValidityDays the new number of validity days
- */
- public void setNumberOfValidityDays(Long numberOfValidityDays) {
-
- this.numberOfValidityDays = numberOfValidityDays;
- }
-
- /**
- * Sets the number of possible trips.
- *
- * @param numberOfPossibleTrips the new number of possible trips
- */
- public void setNumberOfPossibleTrips(Long numberOfPossibleTrips) {
-
- this.numberOfPossibleTrips = numberOfPossibleTrips;
- }
-
- /**
- * Sets the number of days of travel.
- *
- * @param numberOfDaysOfTravel the new number of days of travel
- */
- public void setNumberOfDaysOfTravel(Long numberOfDaysOfTravel) {
-
- this.numberOfDaysOfTravel = numberOfDaysOfTravel;
- }
-
- /**
- * Sets the activated day.
- *
- * @param activatedDay the new activated day
- */
- public void setActivatedDay(SequenceOfActivatedDays activatedDay) {
-
- this.activatedDay = activatedDay;
- }
-
- /**
- * Sets the countries.
- *
- * @param countries the new countries
- */
- public void setCountries(SequenceOfCountries countries) {
-
- this.countries = countries;
- }
-
- /**
- * Sets the included carriers num.
- *
- * @param includedCarriersNum the new included carriers num
- */
- public void setIncludedCarriersNum(SequenceOfCarrierNum includedCarriersNum) {
-
- this.includedCarriersNum = includedCarriersNum;
- }
-
- /**
- * Sets the included carriers IA 5.
- *
- * @param includedCarriersIA5 the new included carriers IA 5
- */
- public void setIncludedCarriersIA5(SequenceOfStringIA5 includedCarriersIA5) {
-
- this.includedCarriersIA5 = includedCarriersIA5;
- }
-
- /**
- * Sets the excluded carriers num.
- *
- * @param excludedCarriersNum the new excluded carriers num
- */
- public void setExcludedCarriersNum(SequenceOfCarrierNum excludedCarriersNum) {
-
- this.excludedCarriersNum = excludedCarriersNum;
- }
-
- /**
- * Sets the excluded carriers IA 5.
- *
- * @param excludedCarriersIA5 the new excluded carriers IA 5
- */
- public void setExcludedCarriersIA5(SequenceOfStringIA5 excludedCarriersIA5) {
-
- this.excludedCarriersIA5 = excludedCarriersIA5;
- }
-
- /**
- * Sets the included service brands.
- *
- * @param includedServiceBrands the new included service brands
- */
- public void setIncludedServiceBrands(SequenceOfServiceBrands includedServiceBrands) {
-
- this.includedServiceBrands = includedServiceBrands;
- }
-
- /**
- * Sets the excluded service brands.
- *
- * @param excludedServiceBrands the new excluded service brands
- */
- public void setExcludedServiceBrands(SequenceOfServiceBrands excludedServiceBrands) {
-
- this.excludedServiceBrands = excludedServiceBrands;
- }
-
- /**
- * Sets the valid region.
- *
- * @param validRegion the new valid region
- */
- public void setValidRegion(SequenceOfRegionalValidityType validRegion) {
-
- this.validRegion = validRegion;
- }
-
- /**
- * Sets the tariffs.
- *
- * @param tariffs the new tariffs
- */
- public void setTariffs(SequenceOfTariffType tariffs) {
-
- this.tariffs = tariffs;
- }
-
- /**
- * Sets the info text.
- *
- * @param infoText the new info text
- */
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- /**
- * Sets the extension.
- *
- * @param extension the new extension
- */
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- /**
- * Gets the price.
- *
- * @return the price
- */
- public Long getPrice() {
- return Asn1BigInteger.toLong(price);
- }
-
- /**
- * Sets the price.
- *
- * @param price the new price
- */
- public void setPrice(Long price) {
- this.price = Asn1BigInteger.toAsn1(price);
- }
-
- /**
- * Gets the vat details.
- *
- * @return the vat details
- */
- public SequenceOfVatDetail getVatDetails() {
- return vatDetails;
- }
-
- /**
- * Sets the vat details.
- *
- * @param vatDetails the new vat details
- */
- public void setVatDetails(SequenceOfVatDetail vatDetails) {
- this.vatDetails = vatDetails;
- }
-
- /**
- * Adds the vat detail.
- *
- * @param vatDetail the vat detail
- */
- public void addVatDetail(VatDetailType vatDetail) {
- if (this.vatDetails == null) {
- this.vatDetails = new SequenceOfVatDetail();
- }
- this.vatDetails.add(vatDetail);
- }
-
- /**
- * Sets the validity dates.
- *
- * @param fromDate the from date
- * @param untilDate the until date
- * @param issuingDate the issuing date
- */
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- /**
- * Gets the valid from date.
- *
- * @param issuingDate the issuing date
- * @return the valid from date
- */
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- /**
- * Gets the valid until date.
- *
- * @param issuingDate the issuing date
- * @return the valid until date
- */
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
-
- public void addActivatedDays(Collection days) {
- if (days == null || days.isEmpty()) return;
-
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
- for (Long l : days) {
- this.activatedDay.add(l);
- }
- }
-
- /**
- * Sets the activated days.
- *
- * @param dates the dates
- * @param issuingDate the issuing date
- * @param validFromDate the valid from date
- */
- public void setActivatedDays(Collection dates, Date issuingDate, Date validFromDate){
- if (this.activatedDay != null) {
- this.activatedDay.clear();
- } else {
- this.activatedDay= new SequenceOfActivatedDays();
- }
- long dateDif = 0L;
- if (validFromDate != null) {
- dateDif = DateTimeUtils.getDateDifference(issuingDate,validFromDate);
- }
- if (dates != null && !dates.isEmpty()) {
- for (Date day : dates) {
- this.addActivatedDay(issuingDate, dateDif, day);
- }
- }
- }
-
- /**
- * Adds the activated day.
- *
- * @param issuingDate the issuing date in UTC
- * @param dateOffset the date offset to be added to the issuing date
- * @param day the day to be added
- */
- public void addActivatedDay(Date issuingDate, long dateOffset, Date day){
- Long vDiff = DateTimeUtils.getDateDifferenceLocal(this.getValidFromDate(issuingDate), day);
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
- if (vDiff != null) {
- this.activatedDay.add(vDiff);
- }
- }
-
- /**
- * Gets the activated days.
- *
- * @param issuingDate the issuing date
- * @return the activated days
- */
- public Collection getActivatedDays(Date issuingDate) {
- if (this.activatedDay == null) return null;
- ArrayList dates = new ArrayList();
- for (Long diff: this.getActivatedDay()) {
- Date day = DateTimeUtils.getDate(this.getValidFromDate(issuingDate), diff, null);
- if (day != null) {
- dates.add(day);
- }
- }
- return dates;
- }
-
- /**
- * Gets the valid from UTC offset.
- *
- * @return the valid from UTC offset
- */
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- /**
- * Sets the valid from UTC offset.
- *
- * @param validFromUTCOffset the new valid from UTC offset
- */
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- /**
- * Gets the valid until UTC offset.
- *
- * @return the valid until UTC offset
- */
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- /**
- * Sets the valid until UTC offset.
- *
- * @param validUntilUTCOffset the new valid until UTC offset
- */
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/PassengerType.java b/src/org/uic/barcode/ticket/api/asn/omv1/PassengerType.java
deleted file mode 100644
index bb683bf..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/PassengerType.java
+++ /dev/null
@@ -1,46 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum PassengerType {
- adult("adult"),
- senior("senior"),
- child("child"),
- youth("youth"),
- dog("dog"),
- bicycle("bicycle"),
- freeAddonPassenger("freeAddonPassenger"),
- freeAddonChild("freeAddonChild");
-
- public String text;
-
- PassengerType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/PlacesType.java b/src/org/uic/barcode/ticket/api/asn/omv1/PlacesType.java
deleted file mode 100644
index 6b1567c..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/PlacesType.java
+++ /dev/null
@@ -1,131 +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.omv1;
-
-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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringIA5;
-
-@Sequence
-public class PlacesType extends Object {
- public PlacesType() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String coach;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String placeString;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String placeDescription;
-
- @FieldOrder(order = 3)
- @Asn1Optional public SequenceOfStringIA5 placeIA5;
-
- @FieldOrder(order = 4)
- @Asn1Optional public SequenceOfPlaceNum placeNum;
-
-
-
- public String getCoach() {
-
- return this.coach;
- }
-
- public String getPlaceString() {
-
- return this.placeString;
- }
-
- public String getPlaceDescription() {
-
- return this.placeDescription;
- }
-
- public SequenceOfStringIA5 getPlaceIA5() {
-
- return this.placeIA5;
- }
-
- public SequenceOfPlaceNum getPlaceNum() {
-
- return this.placeNum;
- }
-
- public void setCoach(String coach) {
-
- this.coach = coach;
- }
-
- public void setPlaceString(String placeString) {
-
- this.placeString = placeString;
- }
-
- public void setPlaceDescription(String placeDescription) {
-
- this.placeDescription = placeDescription;
- }
-
- public void setPlaceIA5(SequenceOfStringIA5 placeIA5) {
-
- this.placeIA5 = placeIA5;
- }
-
- public void setPlaceNum(SequenceOfPlaceNum placeNum) {
-
- this.placeNum = placeNum;
- }
-
- @Override
- public boolean equals(Object anObject) {
- if (this == anObject) return true;
- if ((anObject == null) || (anObject.getClass() != this.getClass())) return false;
-
- PlacesType comparator = (PlacesType)anObject;
-
- if ((this.getCoach() != comparator.getCoach()) && ((this.getCoach() == null) || (! this.getCoach().equals(comparator.getCoach())))) return false;
- if ((this.getPlaceString() != comparator.getPlaceString()) && ((this.getPlaceString() == null) || (! this.getPlaceString().equals(comparator.getPlaceString())))) return false;
- if ((this.getPlaceDescription() != comparator.getPlaceDescription()) && ((this.getPlaceDescription() == null) || (! this.getPlaceDescription().equals(comparator.getPlaceDescription())))) return false;
- if ((this.getPlaceIA5() != comparator.getPlaceIA5()) && ((this.getPlaceIA5() == null) || (! this.getPlaceIA5().equals(comparator.getPlaceIA5())))) return false;
- if ((this.getPlaceNum() != comparator.getPlaceNum()) && ((this.getPlaceNum() == null) || (! this.getPlaceNum().equals(comparator.getPlaceNum())))) return false;
- return true;
- }
-
- @Override
- public int hashCode() {
- int hash = 5477;
-
- hash = 3547 * hash + (null == this.getCoach() ? 0 : this.getCoach().hashCode());
- hash = 7321 * hash + (null == this.getPlaceString() ? 0 : this.getPlaceString().hashCode());
- hash = 2083 * hash + (null == this.getPlaceDescription() ? 0 : this.getPlaceDescription().hashCode());
- hash = 881 * hash + (null == this.getPlaceIA5() ? 0 : this.getPlaceIA5().hashCode());
- hash = 6679 * hash + (null == this.getPlaceNum() ? 0 : this.getPlaceNum().hashCode());
- return hash;
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/PolygoneType.java b/src/org/uic/barcode/ticket/api/asn/omv1/PolygoneType.java
deleted file mode 100644
index 24b05cf..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/PolygoneType.java
+++ /dev/null
@@ -1,58 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class PolygoneType extends Object {
- public PolygoneType() {
- }
-
- @FieldOrder(order = 0)
- public GeoCoordinateType firstEdge;
-
- @FieldOrder(order = 1)
- public SequenceOfDeltaCoordinates edges;
-
-
- public GeoCoordinateType getFirstEdge() {
-
- return this.firstEdge;
- }
-
- public SequenceOfDeltaCoordinates getEdges() {
-
- return this.edges;
- }
-
- public void setFirstEdge(GeoCoordinateType firstEdge) {
-
- this.firstEdge = firstEdge;
- }
-
- public void setEdges(SequenceOfDeltaCoordinates edges) {
-
- this.edges = edges;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/PriceTypeType.java b/src/org/uic/barcode/ticket/api/asn/omv1/PriceTypeType.java
deleted file mode 100644
index b75f3c7..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/PriceTypeType.java
+++ /dev/null
@@ -1,39 +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.omv1;
-
-public enum PriceTypeType {
- noPrice("noPrice"),
- reservationFee("reservationFee"),
- supplement("supplement"),
- travelPrice("travelPrice");
-
-
- public String text;
-
- PriceTypeType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/RegionalValidityType.java b/src/org/uic/barcode/ticket/api/asn/omv1/RegionalValidityType.java
deleted file mode 100644
index f35de07..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/RegionalValidityType.java
+++ /dev/null
@@ -1,100 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Choice;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-
-@Choice
-@HasExtensionMarker
-public class RegionalValidityType extends Object {
- public RegionalValidityType() {
- }
-
- @FieldOrder(order = 0)
- public TrainLinkType trainLink;
-
- @FieldOrder(order = 1)
- public ViaStationType viaStations;
-
- @FieldOrder(order = 2)
- public ZoneType zones;
-
- @FieldOrder(order = 3)
- public LineType lines;
-
- @FieldOrder(order = 4)
- public PolygoneType polygone;
-
-
- public TrainLinkType getTrainLink() {
-
- return this.trainLink;
- }
-
- public ViaStationType getViaStations() {
-
- return this.viaStations;
- }
-
- public ZoneType getZones() {
-
- return this.zones;
- }
-
- public LineType getLines() {
-
- return this.lines;
- }
-
- public PolygoneType getPolygone() {
-
- return this.polygone;
- }
-
- public void setTrainLink(TrainLinkType trainLink) {
-
- this.trainLink = trainLink;
- }
-
- public void setViaStations(ViaStationType viaStations) {
-
- this.viaStations = viaStations;
- }
-
- public void setZones(ZoneType zones) {
-
- this.zones = zones;
- }
-
- public void setLines(LineType lines) {
-
- this.lines = lines;
- }
-
- public void setPolygone(PolygoneType polygone) {
-
- this.polygone = polygone;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/RegisteredLuggageType.java b/src/org/uic/barcode/ticket/api/asn/omv1/RegisteredLuggageType.java
deleted file mode 100644
index 442de07..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/RegisteredLuggageType.java
+++ /dev/null
@@ -1,80 +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.omv1;
-
-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;
-
-
-@Sequence
-@HasExtensionMarker
-public class RegisteredLuggageType extends Object {
- public RegisteredLuggageType() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String registrationId;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1,maxValue=99)
- @Asn1Optional public Long maxWeight;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=300)
- @Asn1Optional public Long maxSize;
-
- public String getRegistrationId() {
-
- return this.registrationId;
- }
-
- public Long getMaxWeight() {
-
- return this.maxWeight;
- }
-
- public Long getMaxSize() {
-
- return this.maxSize;
- }
-
- public void setRegistrationId(String registrationId) {
-
- this.registrationId = registrationId;
- }
-
- public void setMaxWeight(Long maxWeight) {
-
- this.maxWeight = maxWeight;
- }
-
- public void setMaxSize(Long maxSize) {
-
- this.maxSize = maxSize;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ReservationData.java b/src/org/uic/barcode/ticket/api/asn/omv1/ReservationData.java
deleted file mode 100644
index adc5f71..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ReservationData.java
+++ /dev/null
@@ -1,711 +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.omv1;
-
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class ReservationData extends Object {
- public ReservationData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger trainNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trainIA5;
-
- @FieldOrder(order = 2)
- @Asn1Default(value="0")
- @IntRange(minValue=-1,maxValue=370)
- @Asn1Optional public Long departureDate;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 4)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 8)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=0,maxValue=32000)
- @Asn1Optional public Long serviceBrand;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String serviceBrandAbrUTF8;
-
- @FieldOrder(order = 11)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String serviceBrandNameUTF8;
-
- @FieldOrder(order = 12)
- @Asn1Default("seat")
- @Asn1Optional public ServiceType service;
-
- @FieldOrder(order = 13)
- @Asn1Default("stationUICReservation")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 14)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 15)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 16)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 17)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 18)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 19)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- @FieldOrder(order = 20)
- @IntRange(minValue=0,maxValue=1440)
- public Long departureTime;
-
- @FieldOrder(order = 21)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long departureUTCOffset;
-
- @FieldOrder(order = 22)
- @IntRange(minValue=-1,maxValue=20)
- @Asn1Default(value="0")
- @Asn1Optional public Long arrivalDate;
-
- @FieldOrder(order = 23)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long arrivalTime;
-
- @FieldOrder(order = 24)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long arrivalUTCOffset;
-
- @FieldOrder(order = 25)
- @Asn1Optional public SequenceOfCarrierNum carrierNum;
-
- @FieldOrder(order = 26)
- @Asn1Optional public SequenceOfStringIA5 carrierIA5;
-
- @FieldOrder(order = 27)
- @Asn1Default("second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 28)
- @SizeRange(minValue = 1, maxValue = 2)
- @Asn1Optional public String serviceLevel;
-
- @FieldOrder(order = 29)
- @Asn1Optional public PlacesType places;
-
- @FieldOrder(order = 30)
- @Asn1Optional public PlacesType additionalPlaces;
-
- @FieldOrder(order = 31)
- @Asn1Optional public PlacesType bicyclePlaces;
-
- @FieldOrder(order = 32)
- @Asn1Optional public CompartmentDetailsType compartmentDetails;
-
- @FieldOrder(order = 33)
- @IntRange(minValue=0,maxValue=200)
- @Asn1Default(value="0")
- @Asn1Optional public Long numberOfOverbooked;
-
- @FieldOrder(order = 34)
- @Asn1Optional public SequenceOfBerthDetailData berth;
-
- @FieldOrder(order = 35)
- @Asn1Optional public SequenceOfTariffType tariff;
-
- @FieldOrder(order = 36)
- @Asn1Default("travelPrice")
- @Asn1Optional public PriceTypeType priceType;
-
- @FieldOrder(order = 37)
- @Asn1Optional Asn1BigInteger price;
-
- @FieldOrder(order = 38)
- @Asn1Optional SequenceOfVatDetail vatDetails;
-
- @FieldOrder(order = 39)
- @IntRange(minValue=0,maxValue=9)
- @Asn1Default("0")
- @Asn1Optional public Long typeOfSupplement;
-
- @FieldOrder(order = 40)
- @IntRange(minValue=0,maxValue=200)
- @Asn1Default("0")
- @Asn1Optional public Long numberOfSupplements;
-
- @FieldOrder(order = 41)
- @Asn1Optional public LuggageRestrictionType luggage;
-
- @FieldOrder(order = 42)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 43)
- @Asn1Optional public ExtensionData extension;
-
- public Long getTrainNum() {
-
- return Asn1BigInteger.toLong(this.trainNum);
- }
-
- public String getTrainIA5() {
- return this.trainIA5;
- }
-
- public Long getDepartureDate() {
- return this.departureDate;
- }
-
- public String getReferenceIA5() {
- return this.referenceIA5;
- }
-
- public Long getReferenceNum() {
- return Asn1BigInteger.toLong(this.referenceNum);
- }
-
- public Long getProductOwnerNum() {
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
- return this.productIdIA5;
- }
-
- public Long getServiceBrand() {
- return this.serviceBrand;
- }
-
- public String getServiceBrandAbrUTF8() {
- return this.serviceBrandAbrUTF8;
- }
-
- public String getServiceBrandNameUTF8() {
- return this.serviceBrandNameUTF8;
- }
-
- public ServiceType getService() {
-
- if (service == null){
- return ServiceType.seat;
- }
-
- return this.service;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUICReservation;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public Long getDepartureTime() {
-
- return this.departureTime;
- }
-
- public Long getArrivalDate() {
-
- if (arrivalDate == null) {
- return new Long(0);
- }
-
- return this.arrivalDate;
- }
-
- public Long getArrivalTime() {
-
- return this.arrivalTime;
- }
-
- public List getCarrierNum() {
-
- return this.carrierNum;
- }
-
- public List getCarrierIA5() {
-
- return this.carrierIA5;
- }
-
- public TravelClassType getClassCode() {
-
-
- if (classCode == null) {
- return TravelClassType.second;
- }
-
- return this.classCode;
- }
-
- public String getServiceLevel() {
-
- return this.serviceLevel;
- }
-
- public PlacesType getPlaces() {
-
- return this.places;
- }
-
- public PlacesType getAdditionalPlaces() {
-
- return this.additionalPlaces;
- }
-
- public PlacesType getBicyclePlaces() {
-
- return this.bicyclePlaces;
- }
-
- public CompartmentDetailsType getCompartmentDetails() {
-
- return this.compartmentDetails;
- }
-
- public Long getNumberOfOverbooked() {
-
- return this.numberOfOverbooked;
- }
-
- public List getBerth() {
-
- return this.berth;
- }
-
- public List getTariff() {
-
- return this.tariff;
- }
-
- public PriceTypeType getPriceType() {
-
- if (priceType == null) {
- return PriceTypeType.travelPrice;
- }
-
- return this.priceType;
- }
-
- public Long getTypeOfSupplement() {
-
- if (typeOfSupplement == null){
- return new Long(0);
- }
-
-
- return this.typeOfSupplement;
- }
-
- public Long getNumberOfSupplements() {
-
- if (numberOfSupplements == null) {
- return new Long(0);
- }
-
- return this.numberOfSupplements;
- }
-
- public LuggageRestrictionType getLuggage() {
-
- return this.luggage;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setTrainNum(Long trainNum) {
-
- this.trainNum = Asn1BigInteger.toAsn1(trainNum);
- }
-
- public void setTrainIA5(String trainIA5) {
-
- this.trainIA5 = trainIA5;
- }
-
- public void setDepartureDate(Long departureDate) {
-
- this.departureDate = departureDate;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Long referenceNum) {
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setServiceBrand(Long serviceBrand) {
-
- this.serviceBrand = serviceBrand;
- }
-
- public void setServiceBrandAbrUTF8(String serviceBrandAbrUTF8) {
-
- this.serviceBrandAbrUTF8 = serviceBrandAbrUTF8;
- }
-
- public void setServiceBrandNameUTF8(String serviceBrandNameUTF8) {
-
- this.serviceBrandNameUTF8 = serviceBrandNameUTF8;
- }
-
- public void setService(ServiceType service) {
-
- this.service = service;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
- public void setDepartureTime(Long departureTime) {
-
- this.departureTime = departureTime;
- }
-
- public void setArrivalDate(Long arrivalDate) {
-
- this.arrivalDate = arrivalDate;
- }
-
- public void setArrivalTime(Long arrivalTime) {
-
- this.arrivalTime = arrivalTime;
- }
-
- public void setCarrierNum(SequenceOfCarrierNum carrierNum) {
-
- this.carrierNum = carrierNum;
- }
-
- public void setCarriersNum(List longs) {
- if (longs == null) return;
-
- this.carrierNum = new SequenceOfCarrierNum();
- this.carrierNum.addAll(longs);
- }
-
- public void setCarrierIA5(SequenceOfStringIA5 carrierIA5) {
-
- this.carrierIA5 = carrierIA5;
- }
-
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- public void setServiceLevel(String serviceLevel) {
-
- this.serviceLevel = serviceLevel;
- }
-
- public void setPlaces(PlacesType places) {
-
- this.places = places;
- }
-
- public void setAdditionalPlaces(PlacesType additionalPlaces) {
-
- this.additionalPlaces = additionalPlaces;
- }
-
- public void setBicyclePlaces(PlacesType bicyclePlaces) {
-
- this.bicyclePlaces = bicyclePlaces;
- }
-
- public void setCompartmentDetails(CompartmentDetailsType compartmentDetails) {
-
- this.compartmentDetails = compartmentDetails;
- }
-
- public void setNumberOfOverbooked(Long numberOfOverbooked) {
-
- this.numberOfOverbooked = numberOfOverbooked;
- }
-
- public void setBerth(SequenceOfBerthDetailData berth) {
-
- this.berth = berth;
- }
-
- public void setTariff(SequenceOfTariffType tariff) {
-
- this.tariff = tariff;
- }
-
- public void setPriceType(PriceTypeType priceType) {
-
- this.priceType = priceType;
- }
-
- public void setTypeOfSupplement(Long typeOfSupplement) {
-
- this.typeOfSupplement = typeOfSupplement;
- }
-
- public void setNumberOfSupplements(Long numberOfSupplements) {
-
- this.numberOfSupplements = numberOfSupplements;
- }
-
- public void setLuggage(LuggageRestrictionType luggage) {
-
- this.luggage = luggage;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public Long getPrice() {
- return Asn1BigInteger.toLong(price);
- }
-
- public void setPrice(Long price) {
- this.price = Asn1BigInteger.toAsn1(price);
- }
-
- public SequenceOfVatDetail getVatDetails() {
- return vatDetails;
- }
-
- public void setVatDetails(SequenceOfVatDetail vatDetails) {
- this.vatDetails = vatDetails;
- }
-
- public void addVatDetail(VatDetailType vatDetail) {
- if (this.vatDetails == null) {
- this.vatDetails = new SequenceOfVatDetail();
- }
- this.vatDetails.add(vatDetail);
- }
-
- public void setDepartureArrivalDates (Date departure, Date arrival, Date issuingDate){
-
- if (issuingDate == null || departure == null) return;
-
- this.departureDate = DateTimeUtils.getDateDifference(issuingDate,departure);
- this.departureTime = DateTimeUtils.getTime(departure);
-
- if (arrival != null){
- this.arrivalDate = DateTimeUtils.getDateDifference(departure, arrival);
- this.arrivalTime = DateTimeUtils.getTime(arrival);
- }
-
- }
-
- public Date getDepartureDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.departureDate, this.departureTime);
-
- }
-
- public Date getArrivalDate(Date issuingDate){
-
- if (this.departureDate == null) {
- this.departureDate = 0L;
- }
-
- if (this.arrivalDate == null) {
- return null;
- }
-
- return DateTimeUtils.getDate(issuingDate, this.departureDate + this.arrivalDate, this.arrivalTime);
- }
-
- public Long getDepartureUTCOffset() {
- return departureUTCOffset;
- }
-
- public void setDepartureUTCOffset(Long departureUTCOffset) {
- this.departureUTCOffset = departureUTCOffset;
- }
-
- public Long getArrivalUTCOffset() {
- return arrivalUTCOffset;
- }
-
- public void setArrivalUTCOffset(Long arrivalUTCOffset) {
- this.arrivalUTCOffset = arrivalUTCOffset;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ReturnRouteDescriptionType.java b/src/org/uic/barcode/ticket/api/asn/omv1/ReturnRouteDescriptionType.java
deleted file mode 100644
index 438c1fb..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ReturnRouteDescriptionType.java
+++ /dev/null
@@ -1,150 +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.omv1;
-
-import java.util.List;
-
-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;
-
-@Sequence
-@HasExtensionMarker
-public class ReturnRouteDescriptionType extends Object {
- public ReturnRouteDescriptionType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 4)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String validReturnRegionDesc;
-
- @FieldOrder(order = 7)
- @Asn1Optional public SequenceOfRegionalValidityType validReturnRegion;
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public String getValidReturnRegionDesc() {
-
- return this.validReturnRegionDesc;
- }
-
- public List getValidReturnRegion() {
-
- return this.validReturnRegion;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
- public void setValidReturnRegionDesc(String validReturnRegionDesc) {
-
- this.validReturnRegionDesc = validReturnRegionDesc;
- }
-
- public void setValidReturnRegion(SequenceOfRegionalValidityType validReturnRegion) {
-
- this.validReturnRegion = validReturnRegion;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/RoofRackType.java b/src/org/uic/barcode/ticket/api/asn/omv1/RoofRackType.java
deleted file mode 100644
index e25b0c5..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/RoofRackType.java
+++ /dev/null
@@ -1,46 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum RoofRackType {
- norack("norack"),
- roofRailing("roofRailing"),
- luggageRack("luggageRack"),
- skiRack("skiRack"),
- boxRack("boxRack"),
- rackWithOneBox("rackWithOneBox"),
- rackWithTwoBoxes("rackWithTwoBoxes"),
- bicycleRack("bicycleRack"),
- otherRack("otherRack");
-
- public String text;
-
- RoofRackType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/RouteSectionType.java b/src/org/uic/barcode/ticket/api/asn/omv1/RouteSectionType.java
deleted file mode 100644
index ead3098..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/RouteSectionType.java
+++ /dev/null
@@ -1,136 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.IntRange;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-
-public class RouteSectionType extends Object {
- public RouteSectionType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 4)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfActivatedDays.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfActivatedDays.java
deleted file mode 100644
index 2d1eebd..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfActivatedDays.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=0,maxValue=370)
-public class SequenceOfActivatedDays extends Asn1SequenceOf {
- public SequenceOfActivatedDays() { super(); }
- public SequenceOfActivatedDays(Collection coll) { super(coll); }
-
- public SequenceOfActivatedDays(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfActivatedDays getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfActivatedDays(numList);
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfBerthDetailData.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfBerthDetailData.java
deleted file mode 100644
index b552482..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfBerthDetailData.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfBerthDetailData extends Asn1SequenceOf {
- public SequenceOfBerthDetailData() { super(); }
- public SequenceOfBerthDetailData(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCardReferenceType.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCardReferenceType.java
deleted file mode 100644
index a454960..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCardReferenceType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfCardReferenceType extends Asn1SequenceOf {
- public SequenceOfCardReferenceType() { super(); }
- public SequenceOfCardReferenceType(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCarrierIA5.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCarrierIA5.java
deleted file mode 100644
index f3f09cf..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCarrierIA5.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.CharacterRestriction;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-
-@RestrictedString(CharacterRestriction.IA5String)
-public class SequenceOfCarrierIA5 extends Asn1SequenceOf {
- public SequenceOfCarrierIA5() { super(); }
- public SequenceOfCarrierIA5(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCarrierNum.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCarrierNum.java
deleted file mode 100644
index 9d75e83..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCarrierNum.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=1,maxValue=32000)
-public class SequenceOfCarrierNum extends Asn1SequenceOf {
- public SequenceOfCarrierNum() { super(); }
- public SequenceOfCarrierNum(Collection coll) { super(coll); }
-
-
- public SequenceOfCarrierNum(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
- public static SequenceOfCarrierNum getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfCarrierNum(numList);
- }
-
-
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCountries.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCountries.java
deleted file mode 100644
index e6dd46b..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCountries.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=1,maxValue=250)
-public class SequenceOfCountries extends Asn1SequenceOf {
- public SequenceOfCountries() { super(); }
- public SequenceOfCountries(Collection coll) { super(coll); }
-
-
- public SequenceOfCountries(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfCountries getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfCountries(numList);
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCustomerStatusType.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCustomerStatusType.java
deleted file mode 100644
index 6506409..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfCustomerStatusType.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfCustomerStatusType extends Asn1SequenceOf {
- public SequenceOfCustomerStatusType() { super(); }
- public SequenceOfCustomerStatusType(Collection coll) { super(coll); }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfDeltaCoordinates.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfDeltaCoordinates.java
deleted file mode 100644
index b8ce30a..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfDeltaCoordinates.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfDeltaCoordinates extends Asn1SequenceOf {
- public SequenceOfDeltaCoordinates() { super(); }
- public SequenceOfDeltaCoordinates(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfDocumentData.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfDocumentData.java
deleted file mode 100644
index 94a50ac..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfDocumentData.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfDocumentData extends Asn1SequenceOf {
- public SequenceOfDocumentData() { super(); }
- public SequenceOfDocumentData(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfExtensionData.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfExtensionData.java
deleted file mode 100644
index f6bcf22..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfExtensionData.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfExtensionData extends Asn1SequenceOf {
- public SequenceOfExtensionData() { super(); }
- public SequenceOfExtensionData(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfIncludedOpenTicketType.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfIncludedOpenTicketType.java
deleted file mode 100644
index a76647f..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfIncludedOpenTicketType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfIncludedOpenTicketType extends Asn1SequenceOf {
- public SequenceOfIncludedOpenTicketType() { super(); }
- public SequenceOfIncludedOpenTicketType(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfPlaceNum.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfPlaceNum.java
deleted file mode 100644
index c8ec7ce..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfPlaceNum.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=1,maxValue=254)
-public class SequenceOfPlaceNum extends Asn1SequenceOf {
- public SequenceOfPlaceNum() { super(); }
- public SequenceOfPlaceNum(Collection coll) { super(coll); }
-
-
-
- public SequenceOfPlaceNum(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfPlaceNum getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfPlaceNum(numList);
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfRegionalValidityType.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfRegionalValidityType.java
deleted file mode 100644
index 1dee609..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfRegionalValidityType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfRegionalValidityType extends Asn1SequenceOf {
- public SequenceOfRegionalValidityType() { super(); }
- public SequenceOfRegionalValidityType(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfRegisteredLuggageType.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfRegisteredLuggageType.java
deleted file mode 100644
index 6670df9..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfRegisteredLuggageType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfRegisteredLuggageType extends Asn1SequenceOf {
- public SequenceOfRegisteredLuggageType() { super(); }
- public SequenceOfRegisteredLuggageType(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfServiceBrands.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfServiceBrands.java
deleted file mode 100644
index 3edd7fb..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfServiceBrands.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=0,maxValue=32000)
-public class SequenceOfServiceBrands extends Asn1SequenceOf {
- public SequenceOfServiceBrands() { super(); }
- public SequenceOfServiceBrands(Collection coll) { super(coll); }
-
-
- public SequenceOfServiceBrands(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfServiceBrands getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfServiceBrands(numList);
- }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTariffType.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTariffType.java
deleted file mode 100644
index 51110ae..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTariffType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfTariffType extends Asn1SequenceOf {
- public SequenceOfTariffType() { super(); }
- public SequenceOfTariffType(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTicketLinkType.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTicketLinkType.java
deleted file mode 100644
index 33b0331..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTicketLinkType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfTicketLinkType extends Asn1SequenceOf {
- public SequenceOfTicketLinkType() { super(); }
- public SequenceOfTicketLinkType(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTravelerId.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTravelerId.java
deleted file mode 100644
index 3a1b1ec..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTravelerId.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=0,maxValue=254)
-public class SequenceOfTravelerId extends Asn1SequenceOf {
- public SequenceOfTravelerId() { super(); }
- public SequenceOfTravelerId(Collection coll) { super(coll); }
-
- public SequenceOfTravelerId(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfTravelerId getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfTravelerId(numList);
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTravelerType.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTravelerType.java
deleted file mode 100644
index cbf7f99..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfTravelerType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfTravelerType extends Asn1SequenceOf {
- public SequenceOfTravelerType() { super(); }
- public SequenceOfTravelerType(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfVatDetail.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfVatDetail.java
deleted file mode 100644
index 52e0bbf..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfVatDetail.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfVatDetail extends Asn1SequenceOf {
- public SequenceOfVatDetail() { super(); }
- public SequenceOfVatDetail(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfViaStationType.java b/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfViaStationType.java
deleted file mode 100644
index 1bd4427..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SequenceOfViaStationType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfViaStationType extends Asn1SequenceOf {
- public SequenceOfViaStationType() { super(); }
- public SequenceOfViaStationType(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/SeriesDetailType.java b/src/org/uic/barcode/ticket/api/asn/omv1/SeriesDetailType.java
deleted file mode 100644
index d2b7d96..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/SeriesDetailType.java
+++ /dev/null
@@ -1,75 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.IntRange;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class SeriesDetailType extends Object {
- public SeriesDetailType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long supplyingCarrier;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1,maxValue=99)
- @Asn1Optional public Long offerIdentification;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger series;
-
-
- public Long getSupplyingCarrier() {
-
- return this.supplyingCarrier;
- }
-
- public Long getOfferIdentification() {
-
- return this.offerIdentification;
- }
-
- public Long getSeries() {
-
- return Asn1BigInteger.toLong(this.series);
- }
-
- public void setSupplyingCarrier(Long supplyingCarrier) {
-
- this.supplyingCarrier = supplyingCarrier;
- }
-
- public void setOfferIdentification(Long offerIdentification) {
-
- this.offerIdentification = offerIdentification;
- }
-
- public void setSeries(Long series) {
-
- this.series = Asn1BigInteger.toAsn1(series);
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ServiceType.java b/src/org/uic/barcode/ticket/api/asn/omv1/ServiceType.java
deleted file mode 100644
index 6812779..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ServiceType.java
+++ /dev/null
@@ -1,38 +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.omv1;
-
-public enum ServiceType {
- seat("seat"),
- couchette("couchette"),
- berth("berth"),
- carcarriage("carcarriage");
-
- public String text;
-
- ServiceType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/StationPassageData.java b/src/org/uic/barcode/ticket/api/asn/omv1/StationPassageData.java
deleted file mode 100644
index 36dc6bf..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/StationPassageData.java
+++ /dev/null
@@ -1,387 +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.omv1;
-
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringUTF8;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfUnrestrictedLong;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class StationPassageData extends Object {
- public StationPassageData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String productName;
-
- @FieldOrder(order = 7)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 8)
- @Asn1Optional public SequenceOfUnrestrictedLong stationNum;
-
- @FieldOrder(order = 9)
- @Asn1Optional public SequenceOfStringIA5 stationIA5;
-
- @FieldOrder(order = 10)
- @Asn1Optional public SequenceOfStringUTF8 stationNameUTF8;
-
- @FieldOrder(order = 11)
- @Asn1Optional public SequenceOfUnrestrictedLong areaCodeNum;
-
- @FieldOrder(order = 12)
- @Asn1Optional public SequenceOfStringIA5 areaCodeIA5;
-
- @FieldOrder(order = 13)
- @Asn1Optional public SequenceOfStringUTF8 areaNameUTF8;
-
- @FieldOrder(order = 14)
- @IntRange(minValue=-1,maxValue=700)
- public Long validFromDay;
-
- @FieldOrder(order = 15)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 16)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 17)
- @Asn1Default(value="0")
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 18)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 19)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- @FieldOrder(order = 20)
- @Asn1Optional public Asn1BigInteger numberOfDaysValid;
-
- @FieldOrder(order = 21)
- @Asn1Optional public ExtensionData extension;
-
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public String getProductName() {
-
- return this.productName;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public SequenceOfUnrestrictedLong getStationNum() {
-
- return this.stationNum;
- }
-
- public List getStationIA5() {
-
- return this.stationIA5;
- }
-
- public SequenceOfStringUTF8 getStationNameUTF8() {
-
- return this.stationNameUTF8;
- }
-
- public SequenceOfUnrestrictedLong getAreaCodeNum() {
-
- return this.areaCodeNum;
- }
-
- public List getAreaCodeIA5() {
-
- return this.areaCodeIA5;
- }
-
- public List getAreaNameUTF8() {
-
- return this.areaNameUTF8;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public Long getNumberOfDaysValid() {
-
- return Asn1BigInteger.toLong(numberOfDaysValid);
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
-
- this.referenceNum = referenceNum;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setProductName(String productName) {
-
- this.productName = productName;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setStationNum(SequenceOfUnrestrictedLong stationNum) {
-
- this.stationNum = stationNum;
- }
-
- public void setStationIA5(SequenceOfStringIA5 stationIA5) {
-
- this.stationIA5 = stationIA5;
- }
-
- public void setStationNameUTF8(SequenceOfStringUTF8 stationNameUTF8) {
-
- this.stationNameUTF8 = stationNameUTF8;
- }
-
- public void setAreaCodeNum(SequenceOfUnrestrictedLong sequenceOfUnrestrictedLong) {
-
- this.areaCodeNum = sequenceOfUnrestrictedLong;
- }
-
- public void setAreaCodeIA5(SequenceOfStringIA5 areaCodeIA5) {
-
- this.areaCodeIA5 = areaCodeIA5;
- }
-
- public void setAreaNameUTF8(SequenceOfStringUTF8 areaNameUTF8) {
-
- this.areaNameUTF8 = areaNameUTF8;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- public void setNumberOfDaysValid(Long numberOfDaysValid) {
-
- this.numberOfDaysValid = Asn1BigInteger.toAsn1(numberOfDaysValid);
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/TariffType.java b/src/org/uic/barcode/ticket/api/asn/omv1/TariffType.java
deleted file mode 100644
index 66cb399..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/TariffType.java
+++ /dev/null
@@ -1,207 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-
-@Sequence
-@HasExtensionMarker
-public class TariffType extends Object {
- public TariffType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=200)
- @Asn1Default(value = "1")
- @Asn1Optional public Long numberOfPassengers;
-
- @FieldOrder(order = 1)
- @Asn1Optional public PassengerType passengerType;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=64)
- @Asn1Optional public Long ageBelow;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=1,maxValue=128)
- @Asn1Optional public Long ageAbove;
-
- @FieldOrder(order = 4)
- @Asn1Optional public SequenceOfTravelerId traverlerid;
-
- @FieldOrder(order = 5)
- public Boolean restrictedToCountryOfResidence;
-
- @FieldOrder(order = 6)
- @Asn1Optional public RouteSectionType restrictedToRouteSection;
-
- @FieldOrder(order = 7)
- @Asn1Optional public SeriesDetailType seriesDataDetails;
-
- @FieldOrder(order = 8)
- @Asn1Optional public Asn1BigInteger tariffIdNum;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String tariffIdIA5;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String tariffDesc;
-
- @FieldOrder(order = 11)
- @Asn1Optional public SequenceOfCardReferenceType reductionCard;
-
-
-
- public Long getNumberOfPassengers() {
-
- if (numberOfPassengers == null) {
- return new Long(1);
- }
-
- return this.numberOfPassengers;
- }
-
- public PassengerType getPassengerType() {
-
- return this.passengerType;
- }
-
- public Long getAgeBelow() {
-
- return this.ageBelow;
- }
-
- public Long getAgeAbove() {
-
- return this.ageAbove;
- }
-
- public SequenceOfTravelerId getTraverlerid() {
-
- return this.traverlerid;
- }
-
- public Boolean getRestrictedToCountryOfResidence() {
-
- return this.restrictedToCountryOfResidence;
- }
-
- public RouteSectionType getRestrictedToRouteSection() {
-
- return this.restrictedToRouteSection;
- }
-
- public SeriesDetailType getSeriesDataDetails() {
-
- return this.seriesDataDetails;
- }
-
- public Long getTariffIdNum() {
-
- return Asn1BigInteger.toLong(this.tariffIdNum);
- }
-
- public String getTariffIdIA5() {
-
- return this.tariffIdIA5;
- }
-
- public String getTariffDesc() {
-
- return this.tariffDesc;
- }
-
- public SequenceOfCardReferenceType getReductionCard() {
-
- return this.reductionCard;
- }
-
- public void setNumberOfPassengers(Long numberOfPassengers) {
-
- this.numberOfPassengers = numberOfPassengers;
- }
-
- public void setPassengerType(PassengerType passengerType) {
-
- this.passengerType = passengerType;
- }
-
- public void setAgeBelow(Long ageBelow) {
-
- this.ageBelow = ageBelow;
- }
-
- public void setAgeAbove(Long ageAbove) {
-
- this.ageAbove = ageAbove;
- }
-
- public void setTraverlerid(SequenceOfTravelerId traverlerid) {
-
- this.traverlerid = traverlerid;
- }
-
- public void setRestrictedToCountryOfResidence(Boolean restrictedToCountryOfResidence) {
-
- this.restrictedToCountryOfResidence = restrictedToCountryOfResidence;
- }
-
- public void setRestrictedToRouteSection(RouteSectionType restrictedToRouteSection) {
-
- this.restrictedToRouteSection = restrictedToRouteSection;
- }
-
- public void setSeriesDataDetails(SeriesDetailType seriesDataDetails) {
-
- this.seriesDataDetails = seriesDataDetails;
- }
-
- public void setTariffIdNum(Long tariffIdNum) {
-
- this.tariffIdNum = Asn1BigInteger.toAsn1(tariffIdNum);
- }
-
- public void setTariffIdIA5(String tariffIdIA5) {
-
- this.tariffIdIA5 = tariffIdIA5;
- }
-
- public void setTariffDesc(String tariffDesc) {
-
- this.tariffDesc = tariffDesc;
- }
-
- public void setReductionCard(SequenceOfCardReferenceType reductionCard) {
-
- this.reductionCard = reductionCard;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/TicketDetailData.java b/src/org/uic/barcode/ticket/api/asn/omv1/TicketDetailData.java
deleted file mode 100644
index e32bb98..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/TicketDetailData.java
+++ /dev/null
@@ -1,190 +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.omv1;
-
-
-
-import org.uic.barcode.asn1.datatypes.Choice;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@Choice
-@HasExtensionMarker
-public class TicketDetailData extends Object {
- public TicketDetailData() {
- }
-
- @FieldOrder(order = 0)
- public ReservationData reservation;
-
- @FieldOrder(order = 1)
- public CarCarriageReservationData carCarriageReservation;
-
- @FieldOrder(order = 2)
- public OpenTicketData openTicket;
-
- @FieldOrder(order = 3)
- public PassData pass;
-
- @FieldOrder(order = 4)
- public VoucherData voucher;
-
- @FieldOrder(order = 5)
- public CustomerCardData customerCard;
-
- @FieldOrder(order = 6)
- public CountermarkData counterMark;
-
- @FieldOrder(order = 7)
- public ParkingGroundData parkingGround;
-
- @FieldOrder(order = 8)
- public FIPTicketData fipTicket;
-
- @FieldOrder(order = 9)
- public StationPassageData stationPassage;
-
- @FieldOrder(order = 10)
- public DelayConfirmation delayConfirmation;
-
- @FieldOrder(order = 11)
- public ExtensionData extension;
-
- public ReservationData getReservation() {
-
- return this.reservation;
- }
-
- public CarCarriageReservationData getCarCarriageReservation() {
-
- return this.carCarriageReservation;
- }
-
- public OpenTicketData getOpenTicket() {
-
- return this.openTicket;
- }
-
- public PassData getPass() {
-
- return this.pass;
- }
-
- public VoucherData getVoucher() {
-
- return this.voucher;
- }
-
- public CustomerCardData getCustomerCard() {
-
- return this.customerCard;
- }
-
- public CountermarkData getCounterMark() {
-
- return this.counterMark;
- }
-
- public ParkingGroundData getParkingGround() {
-
- return this.parkingGround;
- }
-
- public FIPTicketData getFipTicket() {
-
- return this.fipTicket;
- }
-
- public StationPassageData getStationPassage() {
-
- return this.stationPassage;
- }
-
- public DelayConfirmation getDelayConfirmation() {
-
- return this.delayConfirmation;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReservation(ReservationData reservation) {
-
- this.reservation = reservation;
- }
-
- public void setCarCarriageReservation(CarCarriageReservationData carCarriageReservation) {
-
- this.carCarriageReservation = carCarriageReservation;
- }
-
- public void setOpenTicket(OpenTicketData openTicket) {
-
- this.openTicket = openTicket;
- }
-
- public void setPass(PassData pass) {
-
- this.pass = pass;
- }
-
- public void setVoucher(VoucherData voucher) {
-
- this.voucher = voucher;
- }
-
- public void setCustomerCard(CustomerCardData customerCard) {
-
- this.customerCard = customerCard;
- }
-
- public void setCounterMark(CountermarkData counterMark) {
-
- this.counterMark = counterMark;
- }
-
- public void setParkingGround(ParkingGroundData parkingGround) {
-
- this.parkingGround = parkingGround;
- }
-
- public void setFipTicket(FIPTicketData fipTicket) {
-
- this.fipTicket = fipTicket;
- }
-
- public void setStationPassage(StationPassageData stationPassage) {
-
- this.stationPassage = stationPassage;
- }
-
- public void setDelayConfirmation(DelayConfirmation delayConfirmation) {
-
- this.delayConfirmation = delayConfirmation;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/TicketLinkType.java b/src/org/uic/barcode/ticket/api/asn/omv1/TicketLinkType.java
deleted file mode 100644
index 2a15f8b..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/TicketLinkType.java
+++ /dev/null
@@ -1,156 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-
-@Sequence
-@HasExtensionMarker
-public class TicketLinkType extends Object {
- public TicketLinkType() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String issuerName;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String issuerPNR;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 6)
- @Asn1Default(value="openTicket")
- @Asn1Optional public TicketType ticketType;
-
- @FieldOrder(order = 7)
- @Asn1Default(value="issuedTogether")
- @Asn1Optional public LinkMode linkMode;
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Long getReferenceNum() {
- return Asn1BigInteger.toLong(this.referenceNum);
- }
-
- public String getIssuerName() {
-
- return this.issuerName;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public TicketType getTicketType() {
-
- if (ticketType == null) {
- return TicketType.openTicket;
- }
-
- return this.ticketType;
- }
-
- public LinkMode getLinkMode() {
-
- if (linkMode == null){
- return LinkMode.issuedTogether;
- }
-
- return this.linkMode;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Long referenceNum) {
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setIssuerName(String issuerName) {
-
- this.issuerName = issuerName;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setTicketType(TicketType ticketType) {
-
- this.ticketType = ticketType;
- }
-
- public void setLinkMode(LinkMode linkMode) {
-
- this.linkMode = linkMode;
- }
-
- public String getIssuerPNR() {
- return issuerPNR;
- }
-
- public void setIssuerPNR(String issuerPNR) {
- this.issuerPNR = issuerPNR;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/TicketType.java b/src/org/uic/barcode/ticket/api/asn/omv1/TicketType.java
deleted file mode 100644
index 09f3cfb..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/TicketType.java
+++ /dev/null
@@ -1,41 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum TicketType {
- openTicket("openTicket"),
- pass("pass"),
- reservation("reservation"),
- carCarriageReservation("carCarriageReservation");
-
- public String text;
-
- TicketType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/TimeRangeType.java b/src/org/uic/barcode/ticket/api/asn/omv1/TimeRangeType.java
deleted file mode 100644
index ac8a51d..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/TimeRangeType.java
+++ /dev/null
@@ -1,59 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.IntRange;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class TimeRangeType extends Object {
- public TimeRangeType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=0,maxValue=1440)
- public Long fromTime;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=0,maxValue=1440)
- public Long untilTime;
-
- public Long getFromTime() {
-
- return this.fromTime;
- }
-
- public Long getUntilTime() {
-
- return this.untilTime;
- }
-
- public void setFromTime(Long fromTime) {
-
- this.fromTime = fromTime;
- }
-
- public void setUntilTime(Long untilTime) {
-
- this.untilTime = untilTime;
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/TokenType.java b/src/org/uic/barcode/ticket/api/asn/omv1/TokenType.java
deleted file mode 100644
index 80eb42c..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/TokenType.java
+++ /dev/null
@@ -1,92 +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.omv1;
-
-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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.datatypesimpl.OctetString;
-
-@Sequence
-public class TokenType extends Object {
- public TokenType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Long tokenProviderNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String tokenProviderIA5;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String tokenSpecification;
-
- @FieldOrder(order = 3)
- public OctetString token;
-
- public Long getTokenProviderNum() {
-
- return this.tokenProviderNum;
- }
-
- public String getTokenProviderIA5() {
-
- return this.tokenProviderIA5;
- }
-
- public String getTokenSpecification() {
-
- return this.tokenSpecification;
- }
-
- public byte[] getToken() {
-
- return token.toByteArray();
-
- }
-
- public void setTokenProviderNum(Long tokenProviderNum) {
-
- this.tokenProviderNum = tokenProviderNum;
- }
-
- public void setTokenProviderIA5(String tokenProviderIA5) {
-
- this.tokenProviderIA5 = tokenProviderIA5;
- }
-
- public void setTokenSpecification(String tokenSpecification) {
-
- this.tokenSpecification = tokenSpecification;
- }
-
- public void setToken(byte[] token) {
-
- this.token = new OctetString(token);
-
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/TrainLinkType.java b/src/org/uic/barcode/ticket/api/asn/omv1/TrainLinkType.java
deleted file mode 100644
index 5469c2f..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/TrainLinkType.java
+++ /dev/null
@@ -1,185 +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.omv1;
-
-import java.util.Date;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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.IntRange;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-public class TrainLinkType extends Object {
- public TrainLinkType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger trainNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trainIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long travelDate;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long departureTime;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long departureUTCOffset;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 8)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationName;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationName;
-
- public Long getTrainNum() {
- return Asn1BigInteger.toLong(this.trainNum);
- }
-
- public String getTrainIA5() {
- return this.trainIA5;
- }
-
- public Long getTravelDate() {
- return this.travelDate;
- }
-
- public Long getDepartureTime() {
- return this.departureTime;
- }
-
- public Long getFromStationNum() {
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
- return this.toStationIA5;
- }
-
- public String getFromStationName() {
- return this.fromStationName;
- }
-
- public String getToStationName() {
- return this.toStationName;
- }
-
- public void setTrainNum(Long trainNum) {
- this.trainNum = Asn1BigInteger.toAsn1(trainNum);
- }
-
- public void setTrainIA5(String trainIA5) {
- this.trainIA5 = trainIA5;
- }
-
- public void setTravelDate(Long travelDate) {
- this.travelDate = travelDate;
- }
-
- public void setDepartureTime(Long departureTime) {
- this.departureTime = departureTime;
- }
-
- public void setFromStationNum(Long fromStationNum) {
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationName(String fromStationName) {
- this.fromStationName = fromStationName;
- }
-
- public void setToStationName(String toStationName) {
- this.toStationName = toStationName;
- }
-
- public void setDepartureDate(Date departure, Date issuingDate){
-
- if (issuingDate == null || departure == null) return;
-
- this.travelDate = DateTimeUtils.getDateDifference(issuingDate,departure);
- this.departureTime = DateTimeUtils.getTime(departure);
- }
-
- public void setDepartureTimeZone(Date dateLocal, Date dateUTC ) {
- // -- (UTC = local + offset * 15 Minutes)
- this.departureUTCOffset = new Long(dateLocal.getTime() - dateUTC.getTime()) / (1000 * 60 * 15);
- }
-
- public Date getDepartureDate(Date issuingDate){
- return DateTimeUtils.getDate(issuingDate, this.travelDate, this.departureTime);
- }
-
- public Date getUTCDepartureDate(Date issuingDate){
- return DateTimeUtils.getUTCDate(issuingDate, this.travelDate, this.departureTime, this.departureUTCOffset);
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/TravelClassType.java b/src/org/uic/barcode/ticket/api/asn/omv1/TravelClassType.java
deleted file mode 100644
index 4826e83..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/TravelClassType.java
+++ /dev/null
@@ -1,45 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum TravelClassType {
- notApplicabel("notApplicabel"),
- first("first"),
- second("second"),
- tourist("tourist"),
- comfort("comfort"),
- premium("premium"),
- business("business"),
- all("all");
-
- public String text;
-
- TravelClassType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/TravelerData.java b/src/org/uic/barcode/ticket/api/asn/omv1/TravelerData.java
deleted file mode 100644
index efb88ea..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/TravelerData.java
+++ /dev/null
@@ -1,83 +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.omv1;
-
-import java.util.List;
-
-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.FixedSize;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-@HasExtensionMarker
-public class TravelerData extends Object {
- public TravelerData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public SequenceOfTravelerType traveler;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @FixedSize(2)
- @Asn1Optional public String preferedLanguage;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String groupName;
-
-
- public List getTraveler() {
-
- return this.traveler;
- }
-
- public String getPreferedLanguage() {
-
- return this.preferedLanguage;
- }
-
- public String getGroupName() {
-
- return this.groupName;
- }
-
- public void setTraveler(SequenceOfTravelerType traveler) {
-
- this.traveler = traveler;
- }
-
- public void setPreferedLanguage(String preferedLanguage) {
-
- this.preferedLanguage = preferedLanguage;
- }
-
- public void setGroupName(String groupName) {
-
- this.groupName = groupName;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/TravelerType.java b/src/org/uic/barcode/ticket/api/asn/omv1/TravelerType.java
deleted file mode 100644
index 7f512fc..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/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.omv1;
-
-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();
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/UicRailTicketData.java b/src/org/uic/barcode/ticket/api/asn/omv1/UicRailTicketData.java
deleted file mode 100644
index dfa79a0..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/UicRailTicketData.java
+++ /dev/null
@@ -1,115 +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.omv1;
-
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-@Sequence
-@HasExtensionMarker
-public class UicRailTicketData extends Object {
- public UicRailTicketData() {
- }
-
- @FieldOrder(order = 0)
- public IssuingData issuingDetail;
-
- @FieldOrder(order = 1)
- @Asn1Optional public TravelerData travelerDetail;
-
- @FieldOrder(order = 2)
- @Asn1Optional public SequenceOfDocumentData transportDocument;
-
- @FieldOrder(order = 3)
- @Asn1Optional public ControlData controlDetail;
-
- @FieldOrder(order = 4)
- @Asn1Optional public SequenceOfExtensionData extension;
-
- public IssuingData getIssuingDetail() {
-
- return this.issuingDetail;
- }
-
- public TravelerData getTravelerDetail() {
-
- return this.travelerDetail;
- }
-
- public List getTransportDocument() {
-
- return this.transportDocument;
- }
-
- public ControlData getControlDetail() {
-
- return this.controlDetail;
- }
-
- public List getExtension() {
-
- return this.extension;
- }
-
- public void setIssuingDetail(IssuingData issuingDetail) {
-
- this.issuingDetail = issuingDetail;
- }
-
- public void setTravelerDetail(TravelerData travelerDetail) {
-
- this.travelerDetail = travelerDetail;
- }
-
- public void setTransportDocument(SequenceOfDocumentData transportDocument) {
-
- this.transportDocument = transportDocument;
- }
-
- public void setControlDetail(ControlData controlDetail) {
-
- this.controlDetail = controlDetail;
- }
-
- public void setExtension(SequenceOfExtensionData extension) {
-
- this.extension = extension;
- }
-
-
- public byte[] encode(){
- return UperEncoder.encode(this);
- }
-
- public String encodeToHex(){
- return UperEncoder.hexStringFromBytes(UperEncoder.encode(this));
- }
-
-
- public static UicRailTicketData decode(byte[] bytes) {
- return UperEncoder.decode(bytes, UicRailTicketData.class);
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ValidityPeriodDetailType.java b/src/org/uic/barcode/ticket/api/asn/omv1/ValidityPeriodDetailType.java
deleted file mode 100644
index 1717ea2..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ValidityPeriodDetailType.java
+++ /dev/null
@@ -1,73 +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.omv1;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class ValidityPeriodDetailType extends Object {
- public ValidityPeriodDetailType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public SequenceOfValidityPeriodType validityPeriod;
-
- @FieldOrder(order = 1)
- @Asn1Optional public SequenceOfTimeRangeType excludedTimeRange;
-
-
- public class SequenceOfTimeRangeType extends Asn1SequenceOf {
- public SequenceOfTimeRangeType() { super(); }
- public SequenceOfTimeRangeType(Collection coll) { super(coll); }
- }
-
-
- public class SequenceOfValidityPeriodType extends Asn1SequenceOf {
- public SequenceOfValidityPeriodType() { super(); }
- public SequenceOfValidityPeriodType(Collection coll) { super(coll); }
- }
-
- public SequenceOfValidityPeriodType getValidityPeriod() {
-
- return this.validityPeriod;
- }
-
- public SequenceOfTimeRangeType getExcludedTimeRange() {
-
- return this.excludedTimeRange;
- }
-
- public void setValidityPeriod(SequenceOfValidityPeriodType validityPeriod) {
-
- this.validityPeriod = validityPeriod;
- }
-
- public void setExcludedTimeRange(SequenceOfTimeRangeType excludedTimeRange) {
-
- this.excludedTimeRange = excludedTimeRange;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ValidityPeriodType.java b/src/org/uic/barcode/ticket/api/asn/omv1/ValidityPeriodType.java
deleted file mode 100644
index 5667ad9..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ValidityPeriodType.java
+++ /dev/null
@@ -1,165 +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.omv1;
-
-import java.util.Date;
-
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.IntRange;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-public class ValidityPeriodType extends Object {
- public ValidityPeriodType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=0,maxValue=700)
- @Asn1Default(value="0")
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Default(value="0")
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- public Long getValidFromDay() {
-
- if (validFromDay == null) {
- return new Long(0);
- }
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- if (validUntilDay == null) {
- return new Long(0);
- }
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/VatDetailType.java b/src/org/uic/barcode/ticket/api/asn/omv1/VatDetailType.java
deleted file mode 100644
index 9ebb869..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/VatDetailType.java
+++ /dev/null
@@ -1,87 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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.IntRange;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-
-@Sequence
-public class VatDetailType extends Object {
- public VatDetailType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue = 1, maxValue = 999)
- public Long country;
-
- @FieldOrder(order = 1)
- @IntRange(minValue = 0, maxValue = 999)
- public Long percentage;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger amount;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String vatId;
-
- public Long getCountry() {
- return country;
- }
-
- public void setCountry(Long country) {
- this.country = country;
- }
-
- public Long getPercentage() {
- return percentage;
- }
-
- public void setPercentage(Long percentage) {
- this.percentage = percentage;
- }
-
- public Long getAmount() {
- return Asn1BigInteger.toLong(amount);
- }
-
- public void setAmount(Long amount) {
- this.amount = Asn1BigInteger.toAsn1(amount);
- }
-
- public String getVatId() {
- return vatId;
- }
-
- public void setVatId(String vatId) {
- this.vatId = vatId;
- }
-
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ViaStationType.java b/src/org/uic/barcode/ticket/api/asn/omv1/ViaStationType.java
deleted file mode 100644
index dfc1e56..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ViaStationType.java
+++ /dev/null
@@ -1,181 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-
-@Sequence
-@HasExtensionMarker
-public class ViaStationType extends Object {
- public ViaStationType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long stationNum;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String stationIA5;
-
- @FieldOrder(order = 3)
- @Asn1Optional public SequenceOfViaStationType alternativeRoutes;
-
- @FieldOrder(order = 4)
- @Asn1Optional public SequenceOfViaStationType route;
-
- @FieldOrder(order = 5)
- @Asn1Optional public Boolean border = false;
-
- @FieldOrder(order = 6)
- @Asn1Optional public SequenceOfCarrierNum carriersNum;
-
- @FieldOrder(order = 7)
- @Asn1Optional public SequenceOfStringIA5 carriersIA5;
-
- @FieldOrder(order = 8)
- @Asn1Optional public Asn1BigInteger seriesId;
-
- @FieldOrder(order = 9)
- @Asn1Optional public Asn1BigInteger routeId;
-
-
-
-
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getStationNum() {
-
- return this.stationNum;
- }
-
- public String getStationIA5() {
-
- return this.stationIA5;
- }
-
- public SequenceOfViaStationType getAlternativeRoutes() {
-
- return this.alternativeRoutes;
- }
-
- public SequenceOfViaStationType getRoute() {
-
- return this.route;
- }
-
- public Boolean getBorder() {
-
- return this.border;
- }
-
- public SequenceOfCarrierNum getCarriersNum() {
-
- return this.carriersNum;
- }
-
- public SequenceOfStringIA5 getCarriersIA5() {
-
- return this.carriersIA5;
- }
-
- public Long getSeriesId() {
-
- return Asn1BigInteger.toLong(this.seriesId);
- }
-
- public Long getRouteId() {
-
- return Asn1BigInteger.toLong(this.routeId);
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setStationNum(Long stationNum) {
-
- this.stationNum = stationNum;
- }
-
- public void setStationIA5(String stationIA5) {
-
- this.stationIA5 = stationIA5;
- }
-
- public void setAlternativeRoutes(SequenceOfViaStationType alternativeRoutes) {
-
- this.alternativeRoutes = alternativeRoutes;
- }
-
- public void setRoute(SequenceOfViaStationType route) {
-
- this.route = route;
- }
-
- public void setBorder(Boolean border) {
-
- this.border = border;
- }
-
- public void setCarriersNum(SequenceOfCarrierNum carriersNum) {
-
- this.carriersNum = carriersNum;
- }
-
- public void setCarriersIA5(SequenceOfStringIA5 carriersIA5) {
-
- this.carriersIA5 = carriersIA5;
- }
-
- public void setSeriesId(Long seriesId) {
-
- this.seriesId = Asn1BigInteger.toAsn1(seriesId);
- }
-
- public void setRouteId(Long routeId) {
-
- this.routeId = Asn1BigInteger.toAsn1(routeId);
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java b/src/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java
deleted file mode 100644
index ab9eaea..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java
+++ /dev/null
@@ -1,316 +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.omv1;
-
-import java.util.Calendar;
-import java.util.Date;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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;
-
-
-@Sequence
-@HasExtensionMarker
-public class VoucherData extends Object {
- public VoucherData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=2016,maxValue=2269)
- public Long validFromYear;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=0,maxValue=370)
- public Long validFromDay;
-
- @FieldOrder(order = 8)
- @IntRange(minValue=2016,maxValue=2269)
- public Long validUntilYear;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=0,maxValue=370)
- public Long validUntilDay;
-
- @FieldOrder(order = 10)
- @Asn1Optional public Long value;
-
- @FieldOrder(order = 11)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long type;
-
- @FieldOrder(order = 12)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 13)
- @Asn1Optional public ExtensionData extension;
-
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getValidFromYear() {
-
- return this.validFromYear;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidUntilYear() {
-
- return this.validUntilYear;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValue() {
-
- return this.value;
- }
-
- public Long getType() {
-
- return this.type;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
-
- this.referenceNum = referenceNum;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setValidFromYear(Long validFromYear) {
-
- this.validFromYear = validFromYear;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidUntilYear(Long validUntilYear) {
-
- this.validUntilYear = validUntilYear;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValue(Long value) {
-
- this.value = value;
- }
-
- public void setType(Long type) {
-
- this.type = type;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
-
- public void setValidity (Date fromDate , Date untilDate){
-
- Calendar fromCal = Calendar.getInstance();
- fromCal.clear();
- fromCal.setTime(fromDate);
-
- this.validFromYear = new Long( fromCal.get(Calendar.YEAR));
- this.validFromDay = new Long (fromCal.get(Calendar.DAY_OF_YEAR));
-
- if (untilDate == null) return;
-
- Calendar untilCal = Calendar.getInstance();
- untilCal.clear();
- untilCal.setTime(untilDate);
-
- this.validUntilYear = new Long( untilCal.get(Calendar.YEAR));
- this.validUntilDay = new Long (untilCal.get(Calendar.DAY_OF_YEAR));
-
- }
-
-
- public void setValidFrom (Date fromDate){
-
- if (fromDate == null) return;
-
- Calendar fromCal = Calendar.getInstance();
- fromCal.clear();
- fromCal.setTime(fromDate);
-
- this.validFromYear = new Long( fromCal.get(Calendar.YEAR));
- this.validFromDay = new Long (fromCal.get(Calendar.DAY_OF_YEAR));
-
- }
-
- public void setValidUntil (Date untilDate){
-
- if (untilDate == null) return;
-
- Calendar untilCal = Calendar.getInstance();
- untilCal.clear();
- untilCal.setTime(untilDate);
-
- this.validUntilYear = new Long( untilCal.get(Calendar.YEAR));
- this.validUntilDay = new Long (untilCal.get(Calendar.DAY_OF_YEAR));
-
- }
-
- public Date getValidFrom(){
-
- if (this.validFromYear == null || this.validFromYear == 0) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- //cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.validFromYear.intValue());
- cal.set(Calendar.DAY_OF_YEAR, this.validFromDay.intValue());
- cal.set(Calendar.MINUTE,0);
- cal.set(Calendar.HOUR_OF_DAY,0);
-
- return cal.getTime();
-
- }
-
- public Date getValidUntil(){
-
- if (this.validUntilYear == null || this.validUntilYear == 0) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- //cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.validUntilYear.intValue());
- cal.set(Calendar.DAY_OF_YEAR, this.validUntilDay.intValue());
- cal.set(Calendar.MINUTE,59);
- cal.set(Calendar.HOUR_OF_DAY,23);
-
- return cal.getTime();
-
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/ZoneType.java b/src/org/uic/barcode/ticket/api/asn/omv1/ZoneType.java
deleted file mode 100644
index a22e002..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/ZoneType.java
+++ /dev/null
@@ -1,182 +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.omv1;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.OctetString;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfUnrestrictedLong;
-
-@Sequence
-@HasExtensionMarker
-
-public class ZoneType extends Object {
- public ZoneType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long carrierNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String carrierIA5;
-
- @FieldOrder(order = 2)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=0,maxValue=9999999)
- @Asn1Optional public Long entryStationNum;
-
- @FieldOrder(order = 4)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String entryStationIA5;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=0,maxValue=9999999)
- @Asn1Optional public Long terminatingStationNum;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String terminatingStationIA5;
-
- @FieldOrder(order = 7)
- @Asn1Optional public Asn1BigInteger city;
-
- @FieldOrder(order = 8)
- @Asn1Optional public SequenceOfUnrestrictedLong zoneId;
-
- @FieldOrder(order = 9)
- @Asn1Optional public OctetString binaryZoneId;
-
- @FieldOrder(order = 10)
- @Asn1Optional public String nutsCode;
-
-
- public Long getCarrierNum() {
-
- return this.carrierNum;
- }
-
- public String getCarrierIA5() {
-
- return this.carrierIA5;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getEntryStationNum() {
- return this.entryStationNum;
- }
-
- public String getEntryStationIA5() {
- return this.entryStationIA5;
- }
-
- public Long getTerminatingStationNum() {
- return this.terminatingStationNum;
- }
-
- public String getTerminatingStationIA5() {
- return this.terminatingStationIA5;
- }
-
- public Asn1BigInteger getCity() {
- return this.city;
- }
-
- public SequenceOfUnrestrictedLong getZoneId() {
- return this.zoneId;
- }
-
- public byte[] getBinaryZoneId() {
-
- return binaryZoneId.toByteArray();
-
- }
-
- public String getNutsCode() {
- return this.nutsCode;
- }
-
- public void setCarrierNum(Long carrierNum) {
- this.carrierNum = carrierNum;
- }
-
- public void setCarrierIA5(String carrierIA5) {
- this.carrierIA5 = carrierIA5;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setEntryStationNum(Long entryStationNum) {
- this.entryStationNum = entryStationNum;
- }
-
- public void setEntryStationIA5(String entryStationIA5) {
- this.entryStationIA5 = entryStationIA5;
- }
-
- public void setTerminatingStationNum(Long terminatingStationNum) {
- this.terminatingStationNum = terminatingStationNum;
- }
-
- public void setTerminatingStationIA5(String terminatingStationIA5) {
- this.terminatingStationIA5 = terminatingStationIA5;
- }
-
- public void setCity(Asn1BigInteger city) {
- this.city = city;
- }
-
- public void setZoneId(SequenceOfUnrestrictedLong zoneId) {
- this.zoneId = zoneId;
- }
-
- public void setBinaryZoneId(byte[] binaryZoneId) {
-
- this.binaryZoneId = new OctetString(binaryZoneId);
-
- }
-
- public void setNutsCode(String nutsCode) {
- this.nutsCode = nutsCode;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv1/uicBarcodeV1finalDelayConfirmation1.3.asn b/src/org/uic/barcode/ticket/api/asn/omv1/uicBarcodeV1finalDelayConfirmation1.3.asn
deleted file mode 100644
index fb19462..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv1/uicBarcodeV1finalDelayConfirmation1.3.asn
+++ /dev/null
@@ -1,2047 +0,0 @@
--- Creator: ASN.1 Editor (http://asneditor.sourceforge.net)
--- Author: ClemensGantert
--- Created: Tue Aug 11 11:40:28 CEST 2015
-ASN-Module DEFINITIONS AUTOMATIC TAGS ::= BEGIN
-
--- imports and exports
--- EXPORTS ALL;
-
-
--- ##############################################################################################
--- #
--- # Final version 1.3 - value 13 in the UIC bar code version element
--- # (see element 2 in U_FLEX record definition in leaflet 918.9)
--- #
--- ##############################################################################################
-
-
--- ##############################################################################################
--- #
--- # Naming and encoding conventions
--- #
--- # Elements included as String and as Numeric values:
--- # Some elements are included in different formats to reduce the data size.
--- # These elements must be included only once.
--- # These elements are named with the same name and appendix
--- # Num (numeric values)
--- # IA5 (String values according to ASN IA5String (7Bit))
--- # Example:
--- # trainNum - in case of a numeric train number
--- # trainIA5 - in case of a alphanumeric train Id
--- #
--- #
--- # RICS codes must be used to encode companies (issuer, product owner, ...) where available
--- # other codes are possible based on bilateral agreements
--- # the format is kept more flexible to cover upcoming extensions of the RICS code by ERA
--- #
--- # Stations can be coded using the UIC and upcoming ERA code lists. Proprietary codes are
--- # possible based on bilateral agreements. Format: 1..9999999 or alphanumeric without
--- # special character (IA5String)
--- #
--- #
--- # ! INTEGERS must not exceed the value of 9,223,372,036,854,775,807 (64 bit) even in case
--- # ! they are unrestricted!!!
--- # !
--- # ! Some elements like ReferenceNum or cardIdNum are defined as an unrestricted integer.
--- # ! Unlike other numerical values the cardIdNum and referenceNum can be larger than a usual 32 bit Integer
--- # ! Some ASN.1 implementation tools are limited to 32 bit integers which is too small.
--- # ! Please ensure to use a tool capable of dealing with larger numbers.
--- #
--- # BOOLEAN is always non optional
--- #
--- # Encoding of time:
--- # time is encoded as the number of minutes of the day 0 = 00:00, 1440 = 24:00,
--- # time data elements end with "time" in their name
--- #
--- # Encoding of date:
--- # .........................................................................................................
--- # The issuing date is given in UTC, but some other date values are given in local time where the exact time zone is not known.
--- #
--- # For local dates the date is associated with the corresponding location:
--- # e.g.:
--- # valid from date -> location where the journey starts
--- # valid until date -> location where the journey covered by the ticket ends
--- #
--- # there could be rare cases where this is does not rovide a unique interpretation:
--- # e.g. open ticket or pass without start and end location for a collection of zones or countries with different time zones.
--- # in these cases the fare conditions must clarify the rules for these cases (e.g. by allowing to use the
--- # ticket a few hours after the end of validity).
--- #
--- # If these date values are given as the number of days from the issuing date the following rule applies:
--- #
--- # The difference in days is calculated by ignoring the time zone information in the case no time zone offset is provided.
--- #
--- # example 1: (31.12.2017 23:05 UTC == 01.01.2018 00:05 CET) :
--- # issuing date (UTC): 31.12.2017 23:05
--- # local date (CET): 01.01.2018 00:05
--- # -> difference in days = 1
--- #
--- # example 1: (1.1.2018 22:05 UTC == 01.01.2018 23:05 CET) :
--- # issuing date (UTC): 31.12.2017 22:05
--- # local date (CET): 01.01.2018 23:05
--- # -> difference in days = 0
--- #
--- # the day difference could become -1 although this can happen for locations in America or New Zeeland only.
--- #
--- # implementation example:
--- #
--- # public static Long getDateDifference(Date issuingDate, Date localDate) {
--- #
--- # if (issuingDate == null || localDate == null) return null;
--- #
--- # Calendar issuingCal = Calendar.getInstance();
--- # issuingCal.clear();
--- # issuingCal.setTime(issuingDate);
--- # issuingCal.setTimeZone(TimeZone.getTimeZone("UTC"));
--- # issuingCal.set(Calendar.HOUR_OF_DAY, 0);
--- # issuingCal.set(Calendar.MINUTE, 0);
--- # issuingCal.set(Calendar.SECOND, 0);
--- # issuingCal.set(Calendar.MILLISECOND, 0);
--- # Date start = startCal.getTime();
--- #
--- # Calendar fromCal = Calendar.getInstance();
--- # fromCal.clear();
--- # fromCal.setTime(localDate);
--- # fromCal.setTimeZone(TimeZone.getTimeZone("UTC"));
--- # fromCal.set(Calendar.HOUR_OF_DAY, 0);
--- # fromCal.set(Calendar.MINUTE, 0);
--- # fromCal.set(Calendar.SECOND, 0);
--- # fromCal.set(Calendar.MILLISECOND, 0);
--- # Date end = endCal.getTime();
--- #
--- # long diff = TimeUnit.DAYS.convert(end.getTime() - start.getTime(), TimeUnit.MILLISECONDS );
--- #
--- # return new Long(diff);
--- #
--- # }
--- #
--- # public static Date getLocalDateFromDifference(Date issuingDate, int diff , Long time ) {
--- #
--- # if (issuingDate == null) return null;
--- #
--- # Calendar cal = Calendar.getInstance();
--- # cal.clear();
--- # cal.setTime(issuingDate);
--- # cal.add(Calendar.DAY_OF_YEAR, diff);
--- #
--- # if (time != null) {
--- # int hours = time.intValue() / 60;
--- # int minutes = time.intValue() - hours * 60;
--- # cal.set(Calendar.HOUR_OF_DAY, hours);
--- # cal.set(Calendar.MINUTE,minutes);
--- # }
--- #
--- # return cal.getTime();
--- #
--- # }
--- #
--- #
--- # ASN.1 Extensions:
--- #
--- # The specification makes use of extension (",...").
--- # These extesions might be defined in future versions of the UIC specification
--- # Implementations must support the extension feature of ASN.1, at least they must be able to ignore extensions while decoding the data
--- # ASN.1 extensions will be defined by UIC. It is not allowed to define bilateral extensions.
--- #
--- # Bilateral Extensions:
--- # Bilateral extensions can be included in the data element "ExtensionData".
--- #
--- #
--- #
--- #########################################################################################
-
-
--- ############################################################################################
-
-
--- type assignments
-
- -- #########################################################################################
- -- the basic entry point of the data structure
- -- the data include:
- -- -issuer informations
- -- -the details of the transport document
- -- -informations required for the control process
- -- -informations on the travelers independent from the transport document
- -- -proprietary extensions
- --
- -- ##########################################################################################
- UicRailTicketData ::= SEQUENCE {
- -- data specific to the issuer
- issuingDetail IssuingData,
-
- -- data on the travelers
- travelerDetail TravelerData OPTIONAL,
-
- -- data of the transport document
- --!!! proposal: replace this by a comment in the lealet on the total size of the barcode: more than one document to be used on bilateral agreement only
- transportDocument SEQUENCE OF DocumentData OPTIONAL,
-
- -- data specific to support the ticket control process
- controlDetail ControlData OPTIONAL,
-
- -- proprietary data defined bilaterally
- extension SEQUENCE OF ExtensionData OPTIONAL
- ,...
- }
-
-
-
- -- ###########################################################################################
- -- the choice on the different transport documents that can be included in the bar code data:
- -- - reservation of seat / couchette or berths (IRT, RES, BOA)
- -- - reservation of car carriage (VET)
- -- - open ticket (NRT including NRT group ticket) (NRT, GRT, SUP, UPD, COI)
- -- - Rail passes (including Eurail, Interail and local passes) (RPT)
- -- - Voucher (TRV)
- -- - Customer Cards (including bonus cards and reduction cards)
- -- - counter marks issued for group tickets
- -- - parking ground tickets
- -- - FIP tickets
- -- - station access / station passage tickets
- -- - proprietary documents as an extension
- -- ############################################################################################
- DocumentData ::= SEQUENCE {
-
- -- token
- -- specific id to be exchanged with the ticket (e.g. id of the phone in case of tickets linked to a phone)
- token TokenType OPTIONAL,
-
- -- choice of the ticket
- ticket CHOICE
- {
-
- -- Reservation (without car carriage) (IRT and RES)
- reservation ReservationData,
-
- -- Reservation of car carriage
- carCarriageReservation CarCarriageReservationData,
-
- -- open ticket specification (NRT)
- openTicket OpenTicketData,
-
- -- pass specification (RPT) including Eurail and Interrail
- pass PassData,
-
- -- voucher
- voucher VoucherData,
-
- -- customer card either to identify a customer and / or to provide reductions
- customerCard CustomerCardData,
-
- -- countermark to accompagny a group ticket
- counterMark CountermarkData,
-
- -- car parking slot
- parkingGround ParkingGroundData,
-
- -- FIP duty ticket
- fipTicket FIPTicketData,
-
- -- ticket to pass the gates at a station
- stationPassage StationPassageData,
-
- -- proprietary data defined bilaterally
- extension ExtensionData,
-
- -- delay confirmation
- delayConfirmation DelayConfirmation
-
- ,...
- }
- ,...
- }
-
- -- ########################################################################################
- -- confirmation of the delay of a train
- --
- -- ########################################################################################
- DelayConfirmation ::= SEQUENCE {
-
- -- reference of the delay confirmation
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- train number of the delayed train - numeric or alphanumeric
- trainNum INTEGER OPTIONAL,
- trainIA5 IA5String OPTIONAL,
-
- -- departure date of the delayed train in local time
- -- number of year
- departureYear INTEGER (2016..2269) OPTIONAL,
- -- number of the day in the year (1.1. = 1)
- departureDay INTEGER (1..366) OPTIONAL,
- departureTime INTEGER (0..1440) OPTIONAL,
- departureUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
-
- -- station where the delay became relevant
- stationCodeTable CodeTableType DEFAULT stationUIC,
- stationNum INTEGER (1..9999999) OPTIONAL,
- stationIA5 IA5String OPTIONAL,
-
- -- delay in minutes at the mentioned station
- delay INTEGER (1..999),
-
- -- indication that the train was cancelled
- trainCancelled BOOLEAN,
-
- -- type of confirmation provided
- confirmationType ConfirmationType DEFAULT travelerDelayConfirmation,
-
- -- affected original ticket(s)
- affectedTickets SEQUENCE OF TicketLinkType OPTIONAL,
-
- -- info text
- infoText UTF8String OPTIONAL,
-
- -- proprietary data defined bilaterally
- extension ExtensionData OPTIONAL
- ,...
- }
-
- ConfirmationType ::= ENUMERATED {
- trainDelayConfirmation (0), -- confirmation of train delay, whether the traveler was on board in unconfirmed
- travelerDelayConfirmation (1), -- confirmation that the traveler was on board of the delayed train
- trainLinkedTicketDelay (2) -- confirmation that a ticket linked to the delayed train was issued
- ,...
- }
-
-
- -- ########################################################################################
- -- Details of the issuer and the issue of the ticket
- -- - details on the issuer
- -- - indication of test tickets (specimen)
- -- - payment details: method of payment, currency
- -- - proprietary PNR of the issuer to be used to identify the sale within
- -- the issuers ecosystem
- -- - web link to display more information for the customer
- -- - proprietary extension data
- -- ########################################################################################
- IssuingData ::= SEQUENCE {
-
- -- provider of the signature (RICS code)
- securityProviderNum INTEGER (1..32000) OPTIONAL,
- securityProviderIA5 IA5String OPTIONAL,
-
- -- issuer of the transport document if the issuer is different from the security provider
- -- (RICS code)
- issuerNum INTEGER (1..32000) OPTIONAL,
- issuerIA5 IA5String OPTIONAL,
-
- -- issuing time stamp in UTC
- -- number of year
- issuingYear INTEGER (2016..2269),
- -- number of the day in the year (1.1. = 1)
- issuingDay INTEGER (1..366),
- -- The number of the minutes of issue might be used in case of account
- -- based ticketing whith a delay of n minutes for the replication of central
- -- booking data to the control devices (e.g. at SBB)
- -- The time can be compared with the last synchronization time of
- -- the control device
- issuingTime INTEGER (0..1440) OPTIONAL,
-
- -- name of the issuer (E.g. short name mentioned in RICS code table)
- issuerName UTF8String OPTIONAL,
-
- -- specimen indicates a test specimen not valid for travelling
- specimen BOOLEAN,
-
- -- secure paper indicates that this barcode is issued with a secure paper ticket
- -- to ensure the uniqueness of the ticket. This allows to use the same control
- -- procedure as for e-tickets also for anonymous tickets
- -- the double use of the ticket is in this case excluded by the secure paper
- securePaperTicket BOOLEAN,
-
- -- indicates that the ticket is valid for traveling or still needs activation
- activated BOOLEAN,
-
- -- currency of the price: ISO4217 currency codes
- currency IA5String (SIZE(3)) DEFAULT "EUR",
-
- -- fraction of the prices included
- currencyFract INTEGER (1..3) DEFAULT 2,
-
- -- PNR used by the issuer to identify the document
- issuerPNR IA5String OPTIONAL,
-
- -- proprietary data defined bilaterally
- extension ExtensionData OPTIONAL,
-
- -- location of sale in case of a sale on board of a train
- -- numeric train number or aphanumeric id of the train where the ticket was sold
- issuedOnTrainNum INTEGER OPTIONAL,
- issuedOnTrainIA5 IA5String OPTIONAL,
- -- line number
- issuedOnLine INTEGER OPTIONAL,
-
- -- point of sale
- pointOfSale GeoCoordinateType OPTIONAL
- ,...
- }
-
- -- ###################################################################################
- -- data supporting the control process
- -- - list of items which the travelder can use to identify himself or the unique
- -- usage of the ticket
- -- (card ids, parts or identity card numbers, credit card numbers,..)
- -- - hints on the validation to be made on board
- --
- -- ###################################################################################
- ControlData ::= SEQUENCE {
-
- -- cards that can be used to identify the ticket holder
- identificationByCardReference SEQUENCE OF CardReferenceType OPTIONAL,
-
- -- idcard id must be checked to identify the traveler
- identificationByIdCard BOOLEAN,
-
- -- passport id must be checked to identify the traveler
- identificationByPassportId BOOLEAN,
-
- -- other items which could be used to identify the ticket holder
- -- (for future use, code list to be defined)
- identificationItem INTEGER OPTIONAL,
-
- -- validation of the passport is required (e.g. in case of Eurail)
- passportValidationRequired BOOLEAN,
-
- -- online validation of the ticket required
- onlineValidationRequired BOOLEAN,
-
- -- percentage of the tickets to be validated in more detail
- -- (i.e. via online check or detailed checks lateron)
- randomDetailedValidationRequired INTEGER (0..99) OPTIONAL,
-
- -- manual validation of the traveler age required (in case of reductions)
- ageCheckRequired BOOLEAN,
-
- -- manual validation of the travelers reduction card required (in case of reductions)
- reductionCardCheckRequired BOOLEAN,
-
- -- controler info text
- infoText UTF8String OPTIONAL,
-
- -- additional tickets that should be controlled
- includedTickets SEQUENCE OF TicketLinkType OPTIONAL,
-
- -- proprietary data defined bilaterally
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- ################################################################################
- -- Traveler data
- -- these data do not include tariff details of the booked tariffs,
- -- tariff data are included in the transport document details and might
- -- have a reference to the traveler defined here.
- -- - personal data of the travellers
- -- - the index of the list can be used to identify the
- -- traveler within other contexts (e.g. in assigned tariffs)
- -- ################################################################################
- TravelerData ::= SEQUENCE {
- -- traveler list
- traveler SEQUENCE OF TravelerType OPTIONAL,
-
- -- ISO 639-1 coding of the language preferred for the traveler / ticket holder
- preferredLanguage IA5String (SIZE(2)) OPTIONAL,
-
- -- name of the group in case of a group ticket
- groupName UTF8String OPTIONAL
- ,...
- }
-
- -- ####################################################################################
- -- the following part contains the different transport document specifications
- -- ####################################################################################
-
-
- -- ####################################################################################
- -- reservations of seats , couchettes and berths
- -- included are the data defined in:
- -- - leaflet 918.1 for reservation data exchange
- -- - a few additional data currently used by some railways via different interfaces
- -- - information on trach an dplafoorm where the coach stops
- -- - additional second coach for large groups
- -- ####################################################################################
- ReservationData ::= SEQUENCE {
-
- -- train number - numeric or alphanumeric
- trainNum INTEGER OPTIONAL,
- trainIA5 IA5String OPTIONAL,
-
- -- departure date in local time
- -- number of the days calculated from the issuing date
- departureDate INTEGER (-1..370) DEFAULT 0,
-
-
- -- reservation reference according ton 918.1 in case ade via Hermes
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code to be used as standard)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- productIdNum INTEGER (0..32000) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- service brand: code list https://uic.org/service-brand-code-list
- serviceBrand INTEGER (0..32000) OPTIONAL,
- serviceBrandAbrUTF8 UTF8String OPTIONAL,
- serviceBrandNameUTF8 UTF8String OPTIONAL,
-
- -- service code list from 918.1 (seat couchette,..)
- service ServiceType DEFAULT seat,
-
- -- code table used to encode stations
- stationCodeTable CodeTableType DEFAULT stationUICReservation,
-
- -- origin station code
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- -- destination station code
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- -- origin station name
- fromStationNameUTF8 UTF8String OPTIONAL,
-
- -- destination station name
- toStationNameUTF8 UTF8String OPTIONAL,
-
- -- departure time
- departureTime INTEGER (0..1440),
- departureUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- -- arrival date and time in local time
- -- number of days counted from the departure date
- -- !!! proposal for change: arrivalDate INTEGER (-1..20) DEFAULT 0,
- arrivalDate INTEGER (0..20) DEFAULT 0,
- arrivalTime INTEGER (0..1440) OPTIONAL,
- arrivalUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omitted in case it is the same as for depature
-
- -- responsible carriers on the route
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- travel class
- classCode TravelClassType DEFAULT second,
-
- -- service level code list from 918.1
- serviceLevel IA5String (SIZE(1..2)) OPTIONAL,
-
- -- places
- places PlacesType OPTIONAL,
-
- -- additional places in a second coach
- additionalPlaces PlacesType OPTIONAL,
-
- --bicycle places
- bicyclePlaces PlacesType OPTIONAL,
-
- -- compartment details (open space, wheelchair,..)
- compartmentDetails CompartmentDetailsType OPTIONAL,
-
- -- number of persons on the ticket without place numbers (on IRT)
- numberOfOverbooked INTEGER (0..200) DEFAULT 0,
-
- -- description of berths
- berth SEQUENCE OF BerthDetailData OPTIONAL,
-
- -- tariffs included (Adult, Children,... )
- tariff SEQUENCE OF TariffType OPTIONAL,
-
- -- type of the price (supplement,... )
- priceType PriceTypeType DEFAULT travelPrice,
-
- price INTEGER OPTIONAL,
-
- vatDetail SEQUENCE OF VatDetailType OPTIONAL,
-
- -- type of supplement - code list from 018.1
- typeOfSupplement INTEGER (0..9) DEFAULT 0,
-
- numberOfSupplements INTEGER (0..200) DEFAULT 0,
-
- -- luggage restrictions and registered luggage
- -- in case the luggage restrictions are general and do not depend on the
- -- ticket type they should not be included
- luggage LuggageRestrictionType OPTIONAL,
-
- infoText UTF8String OPTIONAL,
-
-
- -- bilaterally agreed proprietary extension
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- #################################################################################
- -- details on the VAT included to be used in after sale processes
- -- #################################################################################
- VatDetailType ::= SEQUENCE {
-
- -- ISO 3166 numeric country code
- country INTEGER (1..999),
-
- -- 1/10th of a percent
- percentage INTEGER (0..999),
-
- -- amount of VAT, the currency and the currency fraction is included in the issuing data
- amount INTEGER OPTIONAL,
-
- -- european tax id of the company paying VAT
- vatId IA5String OPTIONAL
-
- }
-
-
- -- #################################################################################
- -- reservations of car carriage
- -- included are the data defined in:
- -- - leaflet 918.1 for reservation data exchange
- -- - a few additional data currently used by some railways via different interfaces
- -- #################################################################################
- CarCarriageReservationData ::= SEQUENCE {
-
- trainNum INTEGER OPTIONAL,
- trainIA5 IA5String OPTIONAL,
-
-
- -- loading / unloading of the car in local date and time
- -- number of the days calculated from the issuing date
- beginLoadingDate INTEGER (-1..370) DEFAULT 0,
- beginLoadingTime INTEGER (0..1440) OPTIONAL,
- endLoadingTime INTEGER (0..1440) OPTIONAL,
- loadingUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
-
- -- reservation reference according on 918.1 in case ade via Hermes
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- productIdNum INTEGER (0..32000) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- service brand: code list https://uic.org/service-brand-code-list
- serviceBrand INTEGER (1..32000) OPTIONAL,
- serviceBrandAbrUTF8 UTF8String OPTIONAL,
- serviceBrandNameUTF8 UTF8String OPTIONAL,
-
- stationCodeTable CodeTableType DEFAULT stationUICReservation,
-
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL,
-
- coach IA5String OPTIONAL,
- place IA5String OPTIONAL,
-
- compartmentDetails CompartmentDetailsType OPTIONAL,
-
- -- description of the car
- numberPlate IA5String,
- trailerPlate IA5String OPTIONAL,
- carCategory INTEGER (0..9),
- boatCategory INTEGER (0..6) OPTIONAL,
- textileRoof BOOLEAN,
- roofRackType RoofRackType DEFAULT norack,
-
- -- heigth of a roof rack in cm
- roofRackHeight INTEGER (0..99) OPTIONAL,
-
- -- number of boats on a rack
- attachedBoats INTEGER (0..2) OPTIONAL,
-
- -- number of biycles on a rack
- attachedBicycles INTEGER (0..4) OPTIONAL,
-
- -- number of surf boards on a rack
- attachedSurfboards INTEGER (0..5) OPTIONAL,
-
- -- reference to an entry on the loading list
- loadingListEntry INTEGER (0..999) OPTIONAL,
- loadingDeck LoadingDeckType DEFAULT upper,
-
- -- responsible carriers on the route (RICS codes)
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- tariff TariffType,
- priceType PriceTypeType DEFAULT travelPrice,
-
- price INTEGER OPTIONAL,
-
- vatDetail SEQUENCE OF VatDetailType OPTIONAL,
-
- infoText UTF8String OPTIONAL,
- extension ExtensionData OPTIONAL
- ,...
- }
-
-
- -- #####################################################################################
- -- data for open tickets (NRT and group tickets)
- -- included are the data defined in:
- -- - the ticket layout (leaflet 918.8)
- -- - the ticket bar code version 3 (leaflet 918.9)
- -- - additional data based on 108.1 with some extensions as 108.1
- -- does not provide well structured data,
- -- especially concerning regional validity
- --
- -- #####################################################################################
-
- OpenTicketData ::= SEQUENCE {
-
- -- reference must be given either in numeric or alphanumeric format
- referenceNum INTEGER OPTIONAL,
- referenceIA5 IA5String OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- productIdNum INTEGER (0..32000) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- to support other ticket content (e.g. VDV, UTPF, V�V, CALYPSO)
- -- issuer code using the default code table of the product owner
- extIssuerId INTEGER OPTIONAL,
- -- authorization id provided to the issuer by the product owner
- issuerAutorizationId INTEGER OPTIONAL,
-
- -- ticket includes the return trip
- returnIncluded BOOLEAN,
-
- -- for tickets valid in regions without from or to stations no station is provided
- stationCodeTable CodeTableType DEFAULT stationUIC,
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- -- for tickets valid in regions without from or to stations no station is provided
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL,
-
- -- description for manual evaluation in case structured data are not available
- validRegionDesc UTF8String OPTIONAL,
- -- specification of the ordered sequence of valid regions
- validRegion SEQUENCE OF RegionalValidityType OPTIONAL,
-
- -- return route description
- -- the return route description can be omitted if it is identical to the
- -- inversed outbound validRegion sequence
- returnDescription ReturnRouteDescriptionType OPTIONAL,
-
- -- temporal validity data in local time of the location where the jouney starts
- -- number of days from issuing date
- validFromDay INTEGER (-1..700) DEFAULT 0,
- validFromTime INTEGER (0..1440) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- -- number of days from valid-from date, 0 = first day of validity
- validUntilDay INTEGER (0..370) DEFAULT 0,
- validUntilTime INTEGER (0..1440) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omtted in case it is the same as for depature
-
- -- list of activated days in case the entire ticket is not activated
- -- the day is given by the number of days from the first day of validity
- -- 1 = first day of validity
- activatedDay SEQUENCE OF INTEGER (0..370) OPTIONAL,
-
- classCode TravelClassType DEFAULT second,
-
- -- servicelevel code according to leaflet 918.1 to encode other products
- -- (e.g. PREMIUM, ...)
- serviceLevel IA5String (SIZE(1..2)) OPTIONAL,
-
- -- carriers involved in the transport (RICS codes)
- -- the indication of carriers is mandatory on international routes,
- -- they can be listed here but can also be included in viaDetails
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
-
- -- list of service brands for which the ticket is valid
- -- in case the included service brands are listed all other brands are excluded
- -- service brand: code list https://uic.org/service-brand-code-list
- includedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- -- list of service brands for which the ticket is not valid
- -- service brand: code list https://uic.org/service-brand-code-list
- excludedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- tariffs SEQUENCE OF TariffType OPTIONAL,
-
- price INTEGER OPTIONAL,
-
- vatDetail SEQUENCE OF VatDetailType OPTIONAL,
-
- infoText UTF8String OPTIONAL,
-
- -- additional included open tickets
- -- e.g. to include local city traffic on parts of a the route
- includedAddOns SEQUENCE OF IncludedOpenTicketType OPTIONAL,
-
- -- in case the luggage restrictions are general and do not depend
- -- on the ticket type they should not be included
- luggage LuggageRestrictionType OPTIONAL,
-
-
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
-
-
- -- ####################################################################################
- -- data for passes
- -- included are the data defined in:
- -- - the ticket layout (leaflet 918.8)
- -- - the ticket bar code version 3 (leaflet 918.8)
- -- ####################################################################################
- PassData ::= SEQUENCE {
-
- -- reference must be given in numeric or alphanumeric format
- referenceNum INTEGER OPTIONAL,
- referenceIA5 IA5String OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- productIdNum INTEGER (0..32000) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- type of the pass, code list provided by the product owner
- -- in case of Eurail:
- -- 1 = Interrail
- -- 2 = Eurail
- -- 3 = Eurail Global (all countries)
- passType INTEGER (1..250) OPTIONAL,
-
- -- literal name of the pass
- passDescription UTF8String OPTIONAL,
-
- classCode TravelClassType DEFAULT second,
-
- -- begin of validity (local time)
- -- number of days from issuing date
- validFromDay INTEGER (-1..700) DEFAULT 0,
- validFromTime INTEGER (0..1440) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- -- end of validity (local time)
- -- number of days from valid from day, 0 = valid on valid-from-date
- validUntilDay INTEGER (0..370) DEFAULT 0,
- validUntilTime INTEGER (0..1440) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omitted in case it is the same as for depature
-
-
-
- -- additional validity periods and excluded time ranges
- validityPeriodDetails ValidityPeriodDetailType OPTIONAL,
-
- -- max number of days of validity in case the valid from day is open
- numberOfValidityDays INTEGER (0..370) OPTIONAL,
-
- -- max number of possible trips to be activated
- numberOfPossibleTrips INTEGER (1..250) OPTIONAL,
- numberOfDaysOfTravel INTEGER (1..250) OPTIONAL,
-
- -- list of activated days in case the entire ticket is not activated
- -- the day is given by the number of days from the first day of validity
- -- 0 = first day of validity
- activatedDay SEQUENCE OF INTEGER (0..370) OPTIONAL,
-
- -- included countries, code table according to UIC leaflet 918.9
- countries SEQUENCE OF INTEGER (1..250) OPTIONAL,
-
- -- included carriers (RICS codes)
- includedCarrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- includedCarrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- excluded carriers (RICS codes)
- excludedCarrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- excludedCarrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- service brand: code list https://uic.org/service-brand-code-list
- includedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- excludedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- -- region description to cover local zones
- validRegion SEQUENCE OF RegionalValidityType OPTIONAL,
-
- tariffs SEQUENCE OF TariffType OPTIONAL,
-
- price INTEGER OPTIONAL,
-
- vatDetail SEQUENCE OF VatDetailType OPTIONAL,
-
- infoText UTF8String OPTIONAL,
- extension ExtensionData OPTIONAL
- ,...
- }
-
- ValidityPeriodDetailType ::= SEQUENCE {
- validityPeriod SEQUENCE OF ValidityPeriodType OPTIONAL,
- excludedTimeRange SEQUENCE OF TimeRangeType OPTIONAL
- }
-
- ValidityPeriodType ::= SEQUENCE {
- -- number of days from issuing date (local date)
- validFromDay INTEGER (-1..700) DEFAULT 0,
- validFromTime INTEGER (0..1440) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- -- number of days from valid from day, 0 = valid on valid from date
- validUntilDay INTEGER (0..370) DEFAULT 0,
- validUntilTime INTEGER (0..1440) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omtted in case it is the same as for depature
-
- }
-
- TimeRangeType ::= SEQUENCE {
- fromTime INTEGER (0..1440),
- untilTime INTEGER (0..1440)
- }
-
- -- ######################################################################################
- -- data for vouchers
- -- included are quite basic further study is required
- -- ######################################################################################
- VoucherData ::= SEQUENCE {
-
- -- reference must be given in numeric or alphanumeric format
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- productIdNum INTEGER (0..32000) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- begin of validity in UTC
- -- number of year
- validFromYear INTEGER (2016..2269),
- -- number of the day in the year (1.1. = 1)
- validFromDay INTEGER (0..370),
- -- end of validity
- -- number of year
- validUntilYear INTEGER (2016..2269),
- -- number of the day in the year (1.1. = 1)
- validUntilDay INTEGER (0..370),
-
- value INTEGER DEFAULT 0,
-
- -- type of the voucher, code list defined by the product owner
- type INTEGER (1..32000) OPTIONAL,
-
- infoText UTF8String OPTIONAL,
- extension ExtensionData OPTIONAL
- ,...
- }
- -- ###################################################################################
- -- data for FIP tickets
- -- included are data from the FIP ticket layout,
- -- ###################################################################################
- FIPTicketData ::= SEQUENCE {
-
- -- reference must be given in numeric or alphanumeric format
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- productIdNum INTEGER (0..32000) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- first day of validity in UTC
- --- number of days from issuing date
- validFromDay INTEGER (-1..700) DEFAULT 0,
- -- last day of validity
- -- number of days from valid from day, 0 = first day of validity
- validUntilDay INTEGER (0..370) DEFAULT 0,
-
- -- activated days: list of days for which the ticket is valid
- -- the day is given by the number of days from the first day of validity
- -- 0 = first day of validity
- activatedDay SEQUENCE OF INTEGER (0..370) OPTIONAL,
-
- -- included carriers
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- number of travel days allowed
- numberOfTravelDays INTEGER (1..200),
- includesSupplements BOOLEAN,
-
- -- travel class
- classCode TravelClassType DEFAULT second,
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- #####################################################################################
- -- data station passage and access
- -- ticket used to enter, exit or pass a station without travelling by train.
- -- E.g. for staff working in a station.
- -- #####################################################################################
- StationPassageData ::= SEQUENCE {
-
- -- reference must be given in numeric or alphanumeric format
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- productIdNum INTEGER (0..32000) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- productName UTF8String OPTIONAL,
-
- -- code table used to encode he stations
- stationCodeTable CodeTableType DEFAULT stationUIC,
- -- list of station where the passage is allowed
- stationNum SEQUENCE OF INTEGER OPTIONAL,
- stationIA5 SEQUENCE OF IA5String OPTIONAL,
- -- station names
- stationNameUTF8 SEQUENCE OF UTF8String OPTIONAL,
-
- -- list of areas in a station where the access is allowed
- areaCodeNum SEQUENCE OF INTEGER OPTIONAL,
- areaCodeIA5 SEQUENCE OF IA5String OPTIONAL,
- -- area names
- areaNameUTF8 SEQUENCE OF UTF8String OPTIONAL,
-
- -- begin of validity in local date and time
- -- number of days from issuing date
- validFromDay INTEGER (-1..700),
- validFromTime INTEGER (0..1440) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- -- end of validity
- -- number of days from valid from day, 0 = first day of validity
- validUntilDay INTEGER (0..370) DEFAULT 0,
- validUntilTime INTEGER (0..1440) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omtted in case it is the same as for depature
-
-
- -- number of days for station passage in case the number of days
- -- is limited and less that the validity period
- numberOfDaysValid INTEGER OPTIONAL,
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- ######################################################################################
- -- data for customer cards
- -- included are data from:
- -- - �BB requirements on card data
- -- - DB Bahncard as HandyTicket
- -- note: customer data are included in the traveler data structure
- -- ######################################################################################
- CustomerCardData ::= SEQUENCE {
-
- -- customer details
- -- optional, as there might be an anonymous cards
- customer TravelerType OPTIONAL,
-
- -- card id might be numerical or alphanumerical
- cardIdIA5 IA5String OPTIONAL,
- cardIdNum INTEGER OPTIONAL,
-
- -- valid from date in UTC
- -- number of year
- validFromYear INTEGER (2016..2269),
- --- number of the day in the year (1.1. = 1)
- validFromDay INTEGER (0..370) OPTIONAL,
-
- --- number of year from valid from year onwards
- validUntilYear INTEGER (0..250) DEFAULT 0,
- --- number of the day in the year (1.1. = 1)
- validUntilDay INTEGER (0..370) OPTIONAL,
-
- classCode TravelClassType OPTIONAL,
-
- -- code of the card type code list defined by the issuer
- cardType INTEGER (1..1000) OPTIONAL,
-
- -- readable description of the card type
- cardTypeDescr UTF8String OPTIONAL,
-
- -- customer status code
- -- 1 = basic
- -- 2 = premium
- -- 3 = silver
- -- 4 = gold
- -- 5 = platinum
- -- 6 = senator
- -- > 50 - code table of the card issuer
- customerStatus INTEGER OPTIONAL,
-
- -- readable customer status "e.g. gold",
- customerStatusDescr IA5String OPTIONAL,
-
- -- list of included services,
- -- 1 = Rail Plus
- -- 2 = access to launch
- -- > 50 code list of the issuer
- includedServices SEQUENCE OF INTEGER OPTIONAL,
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- ######################################################################################
- -- data for customer cards
- -- included are data from:
- -- - DB parking ground reservation
- -- #######################################################################################
- ParkingGroundData ::= SEQUENCE {
-
- -- booking reference
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- parkingGroundId IA5String,
-
- -- parking date in local date time
- -- number of days from the issuing date
- fromParkingDate INTEGER (-1..370),
- -- number of days from the from parking date in case it is different from that date
- untilParkingDate INTEGER (0..370) DEFAULT 0,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- productIdNum INTEGER (0..32000) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- code needed to access the parking lot
- accessCode IA5String OPTIONAL,
-
- location UTF8String,
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
- -- in case the parking ground is associated with a station
- stationNum INTEGER OPTIONAL,
- stationIA5 UTF8String OPTIONAL,
-
- specialInformation UTF8String OPTIONAL,
- entryTrack UTF8String OPTIONAL,
- numberPlate IA5String OPTIONAL,
-
- price INTEGER OPTIONAL,
- vatDetail SEQUENCE OF VatDetailType OPTIONAL,
-
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- #######################################################################
- -- data for countermarks issued with group tickets
- -- included are data from:
- -- - version 3 bar code (leaflet 918.9)
- -- - printed layout (leaflet 918.8)
- -- ########################################################################
- CountermarkData ::= SEQUENCE {
-
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- productIdNum INTEGER (0..32000) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- reference of the group ticket
- ticketReferenceIA5 IA5String OPTIONAL,
- ticketReferenceNum INTEGER OPTIONAL,
-
- -- sequential number of the countermark
- numberOfCountermark INTEGER (1..200),
- -- total number of countermarks
- totalOfCountermarks INTEGER (1..200),
- -- name of the group
- groupName UTF8String,
-
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
-
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL,
-
- -- description for manual evaluation in case structured data are not available
- validRegionDesc UTF8String OPTIONAL,
- -- specification of the ordered sequence of valid regions
- validRegion SEQUENCE OF RegionalValidityType OPTIONAL,
-
-
- -- ticket includes the return trip
- returnIncluded BOOLEAN,
- -- retrurn route description
- -- can be omitted if it is identical to the inversed outbound validRegion sequence
- returnDescription ReturnRouteDescriptionType OPTIONAL,
-
- -- local date
- -- number of days from issuing date
- validFromDay INTEGER (-1..700) DEFAULT 0,
- validFromTime INTEGER (0..1440) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
-
-
- -- number of days from valid from day, 0 = first day of validity
- validUntilDay INTEGER (0..370) DEFAULT 0,
- validUntilTime INTEGER (0..1440) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omtted in case it is the same as for depature
-
-
- classCode TravelClassType DEFAULT second,
-
- -- valid carriers
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- service brands where the ticket is valid
- -- in case this list is provided the ticket is invalid on all other service brands
- -- service brand: code list https://uic.org/service-brand-code-list
- includedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- -- service brands where the ticket is not valid
- -- in case this list is provided the ticket is valid on all other service brands
- excludedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- infoText UTF8String OPTIONAL,
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
-
- -- ###########################################################################################
- -- generic non standard extension element
- -- the generic non - standard element contains:
- -- - an extension id to distinguish different extensions
- -- - the extension data as binary data
- -- proprietary extensions are by definition proprietary. This standard provides
- -- the means to identify these extensions
- -- within the data and to skip these data.
- -- the evaluation of these data and the unique identification of the extensions
- -- via the extension id is in the
- -- responsibility of the railways which use these extensions.
- -- ###########################################################################################
- ExtensionData ::= SEQUENCE {
- extensionId IA5String,
- extensionData OCTET STRING
- }
-
- -- ############################################################################################
- -- type definitions
- -- ############################################################################################
-
- -- #############################################################################################
- -- included open ticke for a part of the travel (e.g. local city trafic)
- -- - data identically already included in the covering open ticket do not need to be
- -- repeated here
- -- - main source are the data required for included regional and city traffic tickets
- -- #############################################################################################
- IncludedOpenTicketType ::= SEQUENCE {
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- productIdNum INTEGER (0..32000) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- issuer code using the default code table of the product owner (today used e.g. by VDV)
- externalIssuerId INTEGER OPTIONAL,
- -- authorization id provided to the issuer by the poroduct owner (today used e.g. by VDV)
- issuerAutorizationId INTEGER OPTIONAL,
-
- -- regional validity data
- stationCodeTable CodeTableType DEFAULT stationUIC,
- -- specification of the ordered sequence of valid regions, ordered in the direction of travel
- validRegion SEQUENCE OF RegionalValidityType OPTIONAL,
-
- -- temporal validity data in local date and time
- -- number of days from issuing date
- validFromDay INTEGER (-1..700) DEFAULT 0,
- validFromTime INTEGER (0..1440) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
-
- -- number of days from valid-from date, 0 = first day of validity
- validUntilDay INTEGER (0..370) DEFAULT 0,
- validUntilTime INTEGER (0..1440) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omtted in case it is the same as for depature
-
-
- -- travel class to be given in case it differs from the class of the main ticket
- classCode TravelClassType OPTIONAL,
- -- servicelevel code according to leaflet 918.1 to encode other products (e.g. PREMIUM, ...)
- -- to be provided in case it differs from the main ticket
- serviceLevel IA5String (SIZE(1..2)) OPTIONAL,
-
- -- valid carriers (RICS codes)
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- service brands where the ticket is valid
- -- in case this list is provided the ticket is invalid on all other service brands
- -- service brand: code list https://uic.org/service-brand-code-list
- includedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- -- service brands where the ticket is not valid
- -- in case this list is provided the ticket is valid on all other service brands
- excludedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- tariffs SEQUENCE OF TariffType OPTIONAL,
- infoText UTF8String OPTIONAL,
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- ######################################################################################
- -- tariff data for open tickets
- -- information included are:
- -- - number of passengers
- -- - optionally a link to the traveler data
- -- #######################################################################################
- TariffType ::= SEQUENCE {
-
- -- number of passengers using the tariff
- numberOfPassengers INTEGER (1..200) DEFAULT 1,
-
- -- type indication youth, adult, senior,..
- passengerType PassengerType OPTIONAL,
-
- -- age restrictions of the tariff
- ageBelow INTEGER (1..64) OPTIONAL,
- ageAbove INTEGER (1..128) OPTIONAL,
-
-
- -- named traveler list
- -- link to the traveler in case the travelers have to be named (e.g. Eurail passes)
- -- the number indicates the position in the traveler list starting from 1
- travelerid SEQUENCE OF INTEGER (0..254) OPTIONAL,
-
- -- restriction on country of residence
- -- this tariff is restricted by the country of residence given in the traveler data
- -- (e.g. Eurail tickets are not valid in the contry of residence)
- restrictedToCountryOfResidence BOOLEAN,
-
- -- section in case the tariff applies to a part of the route only
- restrictedToRouteSection RouteSectionType OPTIONAL,
-
- -- details on series according to lesaflet 108.1
- seriesDataDetails SeriesDetailType OPTIONAL,
-
- -- tariff code
- tariffIdNum INTEGER OPTIONAL,
- tariffIdIA5 IA5String OPTIONAL,
-
- -- tariff description
- tariffDesc UTF8String OPTIONAL,
-
- -- reduction cards applied (incl. dicount cards, loaylty cards relevant for the tariff)
- reductionCard SEQUENCE OF CardReferenceType OPTIONAL
- ,...
- }
-
- SeriesDetailType ::= SEQUENCE {
-
- -- data related to tariffs based on series according UIC leaflet 108.1
- -- supplying carrier according to UIC leaflet 108.1 (RICS code)
- supplyingCarrier INTEGER (1..32000) OPTIONAL,
-
- -- offer identifier of the carrier according to UIC leaflet 108.1
- offerIdentification INTEGER (1..99) OPTIONAL,
-
- -- series of the carrier according to UIC leaflet 108.1
- series INTEGER OPTIONAL
- }
-
-
- RouteSectionType ::= SEQUENCE {
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL, -- IA5 or Num not both
-
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL, -- IA5 or Num not both
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL
- }
-
-
- -- #######################################################################################
- -- customer card reference
- -- #######################################################################################
- CardReferenceType ::= SEQUENCE {
-
- -- issuer of the card
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- cardIssuerNum INTEGER (1..32000) OPTIONAL,
- cardIssuerIA5 IA5String OPTIONAL,
-
- cardIdNum INTEGER OPTIONAL,
- cardIdIA5 IA5String OPTIONAL,
-
- -- Name of the card e.g. "VISA-CARD"
- cardName UTF8String OPTIONAL,
-
- -- type of the card, code list defined by the issuer
- cardType INTEGER OPTIONAL,
-
- -- in case only the leading part of the card number is provided
- leadingCardIdNum INTEGER OPTIONAL,
- leadingCardIdIA5 IA5String OPTIONAL,
-
-
- -- in case only the trailing part of the card number is provided
- trailingCardIdNum INTEGER OPTIONAL,
- trailingCardIdIA5 IA5String OPTIONAL
-
- ,...
- }
-
- -- #######################################################################################
- -- traveler data
- -- - traveler data might contain all traveler details which are independent
- -- from the type of travel document
- -- e.g. it can include the date of birth as this is part of the traveler
- -- but not the indication "Senior" as this is tariff dependent
- --
- -- #######################################################################################
- TravelerType ::= SEQUENCE {
-
- firstName UTF8String OPTIONAL,
- secondName UTF8String OPTIONAL,
- lastName UTF8String OPTIONAL,
- idCard IA5String OPTIONAL,
- passportId IA5String OPTIONAL,
- title IA5String (SIZE(1..3)) OPTIONAL,
- gender GenderType OPTIONAL,
-
- -- customer id might be numerical or alphanumerical
- customerIdIA5 IA5String OPTIONAL,
- customerIdNum INTEGER OPTIONAL,
-
- -- date of birth
- -- number of year
- yearOfBirth INTEGER (1901..2155) OPTIONAL,
- -- number of the day in the year (1.1. = 1)
- dayOfBirth INTEGER (0..370) OPTIONAL,
-
- -- indicates the ticket holder/group leader in case of groups
- ticketHolder BOOLEAN,
-
- passengerType PassengerType OPTIONAL,
-
- passengerWithReducedMobility BOOLEAN OPTIONAL,
-
- -- country of residence (numeric ISO country code)
- -- to be used in case there product restrictions on the country of residence (e.g. Eurail passes)
- countryOfResidence INTEGER (1..999) OPTIONAL,
-
- countryOfPassport INTEGER (1..999) OPTIONAL,
- countryOfIdCard INTEGER (1..999) OPTIONAL,
-
- status SEQUENCE OF CustomerStatusType OPTIONAL
- ,...
- }
-
- CustomerStatusType ::= SEQUENCE {
-
- -- compagny providing the status, default is the issuer
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- statusProviderNum INTEGER (1..32000) OPTIONAL,
- statusProviderIA5 IA5String OPTIONAL,
-
- -- customer status code
- -- 1 = basic
- -- 2 = premium
- -- 3 = silver
- -- 4 = gold
- -- 5 = platinum
- -- 6 = senator
- -- > 50 - code table of the card issuer
- customerStatus INTEGER OPTIONAL,
-
- -- customer status "gold"
- customerStatusDescr IA5String OPTIONAL
- }
-
-
- ReturnRouteDescriptionType ::= SEQUENCE {
-
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL,
-
- -- description for manual evaluation in case structured data are not available
- validReturnRegionDesc UTF8String OPTIONAL,
-
- -- specification of the ordered sequence of valid regions for the return trip
- validReturnRegion SEQUENCE OF RegionalValidityType OPTIONAL
- ,...
-
- }
-
- -- ######################################################################################
- -- regional validity of an open ticket
- -- specification of the regional validity.
- -- ######################################################################################
-
- RegionalValidityType ::= CHOICE {
- trainLink TrainLinkType,
- viaStations ViaStationType,
- zones ZoneType,
- lines LineType,
- polygone PolygoneType
- ,...
- }
-
-
-
- -- #######################################################################################
- -- train link data
- -- includes a restriction of an open ticket valid only on a specific train
- -- and date on a part of the route
- -- #######################################################################################
- TrainLinkType ::= SEQUENCE {
-
- trainNum INTEGER OPTIONAL,
- trainIA5 IA5String OPTIONAL,
-
- -- local date at the station where the train link starts
- -- days from the issuing date onwards
- travelDate INTEGER (-1..370),
- departureTime INTEGER (0..1440), -- time in minutes
- departureUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL
-
- }
-
-
-
- -- ######################################################################################
- -- regional validity using a set of lines
- -- - based on data used in regional city trafic enviromnemnts
- -- ######################################################################################
- LineType ::= SEQUENCE {
-
- -- local service provider / carrier within the zone
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- carrierNum INTEGER (1..32000) OPTIONAL,
- carrierIA5 IA5String OPTIONAL,
-
- -- ids of the valid lines known by the local carriers in that zone
- lineId SEQUENCE OF INTEGER OPTIONAL,
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
-
- -- in case the zone must be entered via a specific station
- -- (e.g. local city trafic at the end of a journey
- -- starting from the main train station)
- entryStationNum INTEGER (1..9999999) OPTIONAL,
- entryStationIA5 IA5String OPTIONAL,
-
- -- in case the zone must be left via a specific station
- -- (e.g. local city trafic at the beginning of a journey
- -- terminating at the main train station)
- terminatingStationNum INTEGER (1..9999999) OPTIONAL,
- terminatingStationIA5 IA5String OPTIONAL,
-
- -- code of the local city in case the zone is part of regional city transport
- -- code list of the local carrier
- city INTEGER (1..9999999) OPTIONAL,
-
- -- binary encoding of zones, encoding speciofication provided by
- -- the local service provider
- binaryZoneId OCTET STRING OPTIONAL
- ,...
- }
-
-
- -- #################################################################################
- -- regional validity in a zone
- -- - based on data used in regional city trafic enviromnemnts
- -- #################################################################################
- ZoneType ::= SEQUENCE {
-
- -- local service provider / carrier within the zone
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- carrierNum INTEGER (1..32000) OPTIONAL,
- carrierIA5 IA5String OPTIONAL,
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
- -- in case the zone must be entered via a specific station
- -- (e.g. local city trafic at the end of a journey starting
- -- from the main train station)
- entryStationNum INTEGER (1..9999999) OPTIONAL,
- entryStationIA5 IA5String OPTIONAL,
-
- -- in case the zone must be left via a specific station
- -- (e.g. local city trafic at the beginning of a journey
- -- terminating at the main train station)
- terminatingStationNum INTEGER (1..9999999) OPTIONAL,
- terminatingStationIA5 IA5String OPTIONAL,
-
- -- code of the local city in case the zone is part of regional
- -- city transport code list of the local carrier
- city INTEGER OPTIONAL,
-
- -- ids of the valid zones known by the local carriers in that zone
- zoneId SEQUENCE OF INTEGER OPTIONAL,
-
- -- binary encoding of zones, encoding specification provided by
- -- the local service provider
- binaryZoneId OCTET STRING OPTIONAL,
-
- -- EU NUTS code for a region
- nutsCode IA5String OPTIONAL
- ,...
- }
-
-
- -- ##################################################################################
- -- via station
- -- includes a description of of the route by via stations.
- -- Via stations follow the description in leaflet 108.1:
- -- via stations can e mandatory to pass (but there does not need to be a
- -- train stop at this stations): visible route description: "*station*"
- -- there can be a list of alternative routes:
- -- visible route description: "*(station1/station2)*"
- -- there can also be alternative routes:
- -- "*(station1*station2/station3*station4)*" although the
- -- definition in 108.2 is not very precice on this option
- -- ###################################################################################
- ViaStationType ::= SEQUENCE {
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
- -- mandatory via station
- stationNum INTEGER (1..9999999) OPTIONAL,
- stationIA5 IA5String OPTIONAL,
-
- -- list of alternative routes, one of these has to be taken
- alternativeRoutes SEQUENCE OF ViaStationType OPTIONAL,
-
- -- list of stations along the route
- route SEQUENCE OF ViaStationType OPTIONAL,
- border BOOLEAN,
-
- -- carrier responsible for the transport starting at this station (RICS-Code)
- -- in case the carrier is included here it might be omitted
- -- in the carrier list of the region data
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- the route id as series number as defined in 108.1 data
- seriesId INTEGER OPTIONAL,
-
- -- route id of the route code list defined by the carrier on that route
- routeId INTEGER OPTIONAL
- ,...
- }
-
-
- PolygoneType ::= SEQUENCE {
- firstEdge GeoCoordinateType,
- edges SEQUENCE OF DeltaCoordinates
- }
-
-
- -- ###########################################################################################
- -- TokenType provides an additional identifier
- -- known use cases
- -- - identified of the mobile phone for tickets linked with a specific phone (e.g. VDV standard)
- -- ###########################################################################################
- TokenType ::= SEQUENCE {
- -- provider of the token
- tokenProviderNum INTEGER OPTIONAL,
- tokenProviderIA5 IA5String OPTIONAL,
-
- -- in case the provider has multiple tokens
- tokenSpecification IA5String OPTIONAL,
- token OCTET STRING
- }
-
- -- ###########################################################################################
- -- TicketLinkType is used to define a link from the ticket in the bar code to another ticket
- -- (requirement from Eurail)
- -- use cases
- -- - DB Alleo (open ticket + reservation)
- -- - reservation of trailer and car carriage and traveller reservation
- -- - link between open ticket and bicycle reservations or pass
- -- - open ticket and vouchers for meals
- -- ###########################################################################################
- TicketLinkType ::= SEQUENCE {
-
- -- data to reference the external ticket
- -- reference must be given in numeric or alphanumeric format
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- issuerName UTF8String OPTIONAL, -- name of the issuer
-
- issuerPNR IA5String OPTIONAL, -- in case the ticket can also be identified via
- -- the issuer PNR
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- type of linked ticket
- ticketType TicketType DEFAULT openTicket,
-
- -- type of link
- linkMode LinkMode DEFAULT issuedTogether
- ,...
- }
-
- -- ############################################################################################
- -- code table used fort station codes
- -- defines the code table used e.g. to define station code
- -- - stationUIC = station codes as used in UIC leaflet 108.1 for open tickets
- -- - stationUICReservation = station codes as used in Reservation leaflets 918.1 and 108.2
- -- ############################################################################################
-
- CodeTableType ::= ENUMERATED {
- -- standard UIC station code from MERITS (UIC country code + 5 digit local code)
- stationUIC (0),
- -- standard UIC station code for reservation
- stationUICReservation (1),
- -- future standard ERA station code
- stationERA (2),
- -- local carrier code list
- -- e.g. in case of stations / stops of non-railways stops (city trafic)
- localCarrierStationCodeTable (3),
-
- -- non standard code to be used within the issuer eco system only
- -- not applicable for multi carrier travel documents
- -- or in case issuer and carrier are different
- proprietaryIssuerStationCodeTable (4)
-
- }
-
-
- ServiceType ::= ENUMERATED {
- seat (0),
- couchette (1),
- berth (2),
- carcarriage (3)
- }
-
-
- PassengerType ::= ENUMERATED {
- adult (0),
- senior (1),
- child (2),
- youth (3),
- dog (4),
- bicycle (5),
- freeAddonPassenger (6),
- freeAddonChild (7)
- ,...
- }
-
- TicketType ::= ENUMERATED {
- openTicket (0),
- pass (1),
- reservation (2),
- carCarriageReservation (3)
- ,...
- }
-
- LinkMode ::= ENUMERATED {
- issuedTogether (0),
- onlyValidInCombination (1)
- ,...
- }
-
-
- -- ####################################################################################
- -- place data corresponding to leaflet 918.1
- -- placeString = place number ranges in case of groups
- -- ####################################################################################
- PlacesType ::= SEQUENCE {
- coach IA5String OPTIONAL,
-
- -- printable place string ("15-18, 21, 22" )
- placeString IA5String OPTIONAL,
-
- -- printable place description
- placeDescription UTF8String OPTIONAL,
-
- -- individual places
- placeIA5 SEQUENCE OF IA5String OPTIONAL,
- placeNum SEQUENCE OF INTEGER (1..254) OPTIONAL
- }
-
- PriceTypeType ::= ENUMERATED {
- noPrice (0),
- reservationFee (1),
- supplement (2),
- travelPrice (3)
- }
-
- BerthTypeType ::= ENUMERATED {
- single (0),
- special (1),
- double (2),
- t2 (3),
- t3 (4),
- t4 (5)
- }
-
- CompartmentGenderType ::= ENUMERATED {
- unspecified (0),
- family (1),
- female (2),
- male (3),
- mixed (4)
- ,...
- }
-
- GenderType ::= ENUMERATED {
- unspecified (0),
- female (1),
- male (2),
- other (3)
- ,...
- }
-
- TravelClassType ::= ENUMERATED {
- notApplicable (0),
- first (1),
- second (2),
- tourist (3),
- comfort (4),
- premium (5),
- business (6),
- all (7)
- ,...
- }
-
- -- ########################################################################################
- -- sleeper compartment types corresponding to leaflet 918.1
- -- ########################################################################################
- BerthDetailData ::= SEQUENCE {
- berthType BerthTypeType,
- numberOfBerths INTEGER (1..999),
- gender CompartmentGenderType DEFAULT family
- ,...
- }
-
- -- ####################################################################################
- -- compartment details corresponding to leaflet 918.1
- -- ####################################################################################
- CompartmentDetailsType ::= SEQUENCE {
- coachType INTEGER (1..99) OPTIONAL,
- compartmentType INTEGER (1..99) OPTIONAL,
- specialAllocation INTEGER (1..99) OPTIONAL,
- coachTypeDescr UTF8String OPTIONAL,
- compartmentTypeDescr UTF8String OPTIONAL,
- specialAllocationDescr UTF8String OPTIONAL,
- position CompartmentPositionType DEFAULT unspecified
- ,...
- }
-
-
- -- #####################################################################################
- -- luggage restrictions
- -- the basis for these data is week:
- -- SCIC mentions a maximum of three pieces of hand luggage but does not includes
- -- a definition of hand luggaage
- -- SCIC referes to special conditions on registered lluggage, but SCIC NRT does
- -- not contain definitions on that and UIC 108.1 does not
- -- contain data structures for luggage
- -- - current THALYS luggage resrictions
- -- #####################################################################################
- LuggageRestrictionType ::= SEQUENCE {
- -- allowed hand luggage pieces on this ticket (3 = default in current NRT tariff)
- maxHandLuggagePieces INTEGER(0..99) DEFAULT 3,
- -- allowed hand luggage pieces on this ticket (3 = default in current NRT tariff)
- maxNonHandLuggagePieces INTEGER(0..99) DEFAULT 1,
- registeredLuggage SEQUENCE OF RegisteredLuggageType OPTIONAL
- ,...
-
- }
-
- RegisteredLuggageType ::= SEQUENCE {
- -- id of the additional registered luggage
- registrationId IA5String OPTIONAL,
- -- maximum weight in kg
- maxWeight INTEGER (1..99) OPTIONAL,
- -- sum of length with and height in cm
- maxSize INTEGER (1..300) OPTIONAL
- ,...
-
- }
-
- -- ##########################################################################################
- -- generic type for geo coordinates
- -- ##########################################################################################
- GeoCoordinateType ::= SEQUENCE {
- geoUnit GeoUnitType DEFAULT milliDegree,
- coordinateSystem GeoCoordinateSystemType DEFAULT wgs84,
- -- separate hemishpere flag reduces the data size
- hemisphereLongitude HemisphereLongitudeType DEFAULT north,
- -- separate hemishpere flag reduces the data size
- hemisphereLatitude HemisphereLatitudeType DEFAULT east,
- longitude INTEGER,
- latitude INTEGER,
- accuracy GeoUnitType OPTIONAL
- }
-
- DeltaCoordinates ::= SEQUENCE {
- -- logitude difference to a reference point
- longitude INTEGER,
- -- latitude difference to a reference point
- latitude INTEGER
- }
-
- GeoCoordinateSystemType ::= ENUMERATED {
- wgs84 (0), -- WGS 84 standard system
- grs80 (1) -- (outdated) GRS 80 coordinate system
- }
-
- GeoUnitType ::= ENUMERATED {
- microDegree (0), -- approx. 11 cm on earth surface
- tenthmilliDegree (1), -- 1 / 100000 degree is approx. 1.1 meter on earth surface
- milliDegree (2), -- approx 110 meter on earth surface
- centiDegree (3),
- deciDegree (4)
- }
-
- HemisphereLongitudeType ::= ENUMERATED {
- north (0),
- south (1)
- }
-
- HemisphereLatitudeType ::= ENUMERATED {
- east (0),
- west (1)
- }
-
- LoadingDeckType ::= ENUMERATED {
- unspecified (0),
- upper (1),
- lower (2)
- }
-
- CompartmentPositionType ::= ENUMERATED {
- unspecified (0),
- upperLevel (1),
- lowerLevel (2)
- }
-
- RoofRackType ::= ENUMERATED {
- norack (0),
- roofRailing (1),
- luggageRack (2),
- skiRack (3),
- boxRack (4),
- rackWithOneBox (5),
- rackWithTwoBoxes (6),
- bicycleRack (7),
- otherRack (8)
- ,...
- }
-
-END
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/BerthDetailData.java b/src/org/uic/barcode/ticket/api/asn/omv2/BerthDetailData.java
deleted file mode 100644
index f4d2677..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/BerthDetailData.java
+++ /dev/null
@@ -1,79 +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 org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-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.Sequence;
-
-
-@Sequence
-@HasExtensionMarker
-public class BerthDetailData extends Object {
- public BerthDetailData() {
- }
-
- @FieldOrder(order = 0)
- public BerthTypeType berthType;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1, maxValue=999)
- public Long numberOfBerths;
-
- @FieldOrder(order = 2)
- @Asn1Default(value="family")
- @Asn1Optional public CompartmentGenderType gender;
-
-
- public BerthTypeType getBerthType() {
- return this.berthType;
- }
-
- public Long getNumberOfBerths() {
- return this.numberOfBerths;
- }
-
- public CompartmentGenderType getGender() {
-
- if (gender == null){
- return CompartmentGenderType.family;
- } else {
- return this.gender;
- }
- }
-
- public void setBerthType(BerthTypeType berthType) {
-
- this.berthType = berthType;
- }
-
- public void setNumberOfBerths(Long numberOfBerths) {
- this.numberOfBerths = numberOfBerths;
- }
-
- public void setGender(CompartmentGenderType gender) {
- this.gender = gender;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/BerthTypeType.java b/src/org/uic/barcode/ticket/api/asn/omv2/BerthTypeType.java
deleted file mode 100644
index 074ca4c..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/BerthTypeType.java
+++ /dev/null
@@ -1,41 +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;
-
-public enum BerthTypeType {
- single("single"),
- special("special"),
- double_("double_"),
- t2("t2"),
- t3("t3"),
- t4("t4");
-
-
- public String text;
-
- BerthTypeType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/CarCarriageReservationData.java b/src/org/uic/barcode/ticket/api/asn/omv2/CarCarriageReservationData.java
deleted file mode 100644
index 4e0bb5f..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/CarCarriageReservationData.java
+++ /dev/null
@@ -1,734 +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.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-
-
-@Sequence
-@HasExtensionMarker
-public class CarCarriageReservationData extends Object {
- public CarCarriageReservationData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger trainNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trainIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=-1,maxValue=370)
- @Asn1Default(value="0")
- @Asn1Optional public Long beginLoadingDate;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long beginLoadingTime;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long endLoadingTime;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long loadingUTCOffset;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 7)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 8)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 10)
- @IntRange(minValue=0,maxValue=65535)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 11)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long serviceBrand;
-
- @FieldOrder(order = 13)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String serviceBrandAbrUTF8;
-
- @FieldOrder(order = 14)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String serviceBrandNameUTF8;
-
- @FieldOrder(order = 15)
- @Asn1Default("stationUICReservation")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 16)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 17)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 18)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 19)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 20)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 21)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- @FieldOrder(order = 22)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String coach;
-
- @FieldOrder(order = 23)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String place;
-
- @FieldOrder(order = 24)
- @Asn1Optional public CompartmentDetailsType compartmentDetails;
-
- @FieldOrder(order = 25)
- @RestrictedString(CharacterRestriction.IA5String)
- public String numberPlate;
-
- @FieldOrder(order = 26)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trailerPlate;
-
- @FieldOrder(order = 27)
- @IntRange(minValue=0,maxValue=9)
- public Long carCategory;
-
- @FieldOrder(order = 28)
- @IntRange(minValue=0,maxValue=6)
- @Asn1Optional public Long boatCategory;
-
- @FieldOrder(order = 29)
- public Boolean textileRoof = false;
-
- @FieldOrder(order = 30)
- @Asn1Default(value ="norack")
- @Asn1Optional public RoofRackType roofRackType;
-
- @FieldOrder(order = 31)
- @IntRange(minValue=0,maxValue=99)
- @Asn1Optional public Long roofRackHeight;
-
- @FieldOrder(order = 32)
- @IntRange(minValue=0,maxValue=2)
- @Asn1Optional public Long attachedBoats;
-
- @FieldOrder(order = 33)
- @IntRange(minValue=0,maxValue=4)
- @Asn1Optional public Long attachedBicycles;
-
- @FieldOrder(order = 34)
- @IntRange(minValue=0,maxValue=5)
- @Asn1Optional public Long attachedSurfboards;
-
- @FieldOrder(order = 35)
- @IntRange(minValue=0,maxValue=999)
- @Asn1Optional public Long loadingListEntry;
-
- @FieldOrder(order = 36)
- @Asn1Default(value="upper")
- @Asn1Optional public LoadingDeckType loadingDeck;
-
- @FieldOrder(order = 37)
- @Asn1Optional public SequenceOfCarrierNum carrierNum;
-
- @FieldOrder(order = 38)
- @Asn1Optional public SequenceOfStringIA5 carrierIA5;
-
- @FieldOrder(order = 39)
- public TariffType tariff;
-
- @FieldOrder(order = 40)
- @Asn1Default(value="travelPrice")
- @Asn1Optional public PriceTypeType priceType;
-
- @FieldOrder(order = 41)
- @Asn1Optional Asn1BigInteger price;
-
- @FieldOrder(order = 42)
- @Asn1Optional SequenceOfVatDetail vatDetails;
-
- @FieldOrder(order = 43)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 44)
- @Asn1Optional public ExtensionData extension;
-
- public Long getTrainNum() {
- if (this.trainNum == null) return null;
- return Asn1BigInteger.toLong(this.trainNum);
- }
-
- public String getTrainIA5() {
-
- return this.trainIA5;
- }
-
- public Long getBeginLoadingDate() {
-
- return this.beginLoadingDate;
- }
-
- public Long getBeginLoadingTime() {
-
- if (beginLoadingTime == null) return new Long(0);
- return beginLoadingTime;
- }
-
- public Long getEndLoadingTime() {
-
- return this.endLoadingTime;
- }
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Long getReferenceNum() {
- return Asn1BigInteger.toLong(this.referenceNum);
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getServiceBrand() {
-
- return this.serviceBrand;
- }
-
- public String getServiceBrandAbrUTF8() {
-
- return this.serviceBrandAbrUTF8;
- }
-
- public String getServiceBrandNameUTF8() {
-
- return this.serviceBrandNameUTF8;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUICReservation;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public String getCoach() {
-
- return this.coach;
- }
-
- public String getPlace() {
-
- return this.place;
- }
-
- public CompartmentDetailsType getCompartmentDetails() {
-
- return this.compartmentDetails;
- }
-
- public String getNumberPlate() {
-
- return this.numberPlate;
- }
-
- public String getTrailerPlate() {
-
- return this.trailerPlate;
- }
-
- public Long getCarCategory() {
-
- return this.carCategory;
- }
-
- public Long getBoatCategory() {
-
- return this.boatCategory;
- }
-
- public Boolean getTextileRoof() {
-
- return this.textileRoof;
- }
-
- public RoofRackType getRoofRackType() {
-
- if (this.roofRackType == null) return RoofRackType.norack;
- return this.roofRackType;
- }
-
- public Long getRoofRackHeight() {
-
- return this.roofRackHeight;
- }
-
- public Long getAttachedBoats() {
-
- return this.attachedBoats;
- }
-
- public Long getAttachedBicycles() {
-
- return this.attachedBicycles;
- }
-
- public Long getAttachedSurfboards() {
-
- return this.attachedSurfboards;
- }
-
- public Long getLoadingListEntry() {
-
- return this.loadingListEntry;
- }
-
- public LoadingDeckType getLoadingDeck() {
-
- if (this.loadingDeck == null) return LoadingDeckType.upper;
- return this.loadingDeck;
- }
-
- public SequenceOfCarrierNum getCarrierNum() {
-
- return this.carrierNum;
- }
-
- public SequenceOfStringIA5 getCarrierIA5() {
-
- return this.carrierIA5;
- }
-
- public TariffType getTariff() {
-
- return this.tariff;
- }
-
- public PriceTypeType getPriceType() {
- if (this.priceType == null) return PriceTypeType.travelPrice;
- return this.priceType;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setTrainNum(Long trainNum) {
-
- this.trainNum = new Asn1BigInteger(trainNum);
- }
-
- public void setTrainIA5(String trainIA5) {
-
- this.trainIA5 = trainIA5;
- }
-
- public void setBeginLoadingDate(Long beginLoadingDate) {
-
- this.beginLoadingDate = beginLoadingDate;
- }
-
- public void setBeginLoadingTime(Long beginLoadingTime) {
-
- this.beginLoadingTime = beginLoadingTime;
- }
-
- public void setEndLoadingTime(Long endLoadingTime) {
- this.endLoadingTime = endLoadingTime;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Long referenceNum) {
-
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setServiceBrand(Long serviceBrand) {
-
- this.serviceBrand = serviceBrand;
- }
-
- public void setServiceBrandAbrUTF8(String serviceBrandAbrUTF8) {
-
- this.serviceBrandAbrUTF8 = serviceBrandAbrUTF8;
- }
-
- public void setServiceBrandNameUTF8(String serviceBrandNameUTF8) {
-
- this.serviceBrandNameUTF8 = serviceBrandNameUTF8;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
- public void setCoach(String coach) {
-
- this.coach = coach;
- }
-
- public void setPlace(String place) {
-
- this.place = place;
- }
-
- public void setCompartmentDetails(CompartmentDetailsType compartmentDetails) {
-
- this.compartmentDetails = compartmentDetails;
- }
-
- public void setNumberPlate(String numberPlate) {
-
- this.numberPlate = numberPlate;
- }
-
- public void setTrailerPlate(String trailerPlate) {
-
- this.trailerPlate = trailerPlate;
- }
-
- public void setCarCategory(Long carCategory) {
-
- this.carCategory = carCategory;
- }
-
- public void setBoatCategory(Long boatCategory) {
-
- this.boatCategory = boatCategory;
- }
-
- public void setTextileRoof(Boolean textileRoof) {
-
- this.textileRoof = textileRoof;
- }
-
- public void setRoofRackType(RoofRackType roofRackType) {
-
- this.roofRackType = roofRackType;
- }
-
- public void setRoofRackHeight(Long roofRackHeight) {
-
- this.roofRackHeight = roofRackHeight;
- }
-
- public void setAttachedBoats(Long attachedBoats) {
-
- this.attachedBoats = attachedBoats;
- }
-
- public void setAttachedBicycles(Long attachedBicycles) {
-
- this.attachedBicycles = attachedBicycles;
- }
-
- public void setAttachedSurfboards(Long attachedSurfboards) {
-
- this.attachedSurfboards = attachedSurfboards;
- }
-
- public void setLoadingListEntry(Long loadingListEntry) {
-
- this.loadingListEntry = loadingListEntry;
- }
-
- public void setLoadingDeck(LoadingDeckType loadingDeck) {
-
- this.loadingDeck = loadingDeck;
- }
-
- public void setCarrierNum(SequenceOfCarrierNum carrierNum) {
-
- this.carrierNum = carrierNum;
- }
-
- public void setCarrierNum(List longs) {
- if (longs == null || longs.isEmpty()) return;
- this.carrierNum = new SequenceOfCarrierNum(longs);
- }
-
-
- public void setCarrierIA5(SequenceOfStringIA5 carrierIA5) {
-
- this.carrierIA5 = carrierIA5;
- }
-
- public void setTariff(TariffType tariff) {
-
- this.tariff = tariff;
- }
-
- public void setPriceType(PriceTypeType priceType) {
-
- this.priceType = priceType;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public Long getPrice() {
- return Asn1BigInteger.toLong(price);
- }
-
- public void setPrice(Long price) {
- this.price = Asn1BigInteger.toAsn1(price);
- }
-
- public SequenceOfVatDetail getVatDetails() {
- return vatDetails;
- }
-
- public void setVatDetails(SequenceOfVatDetail vatDetails) {
- this.vatDetails = vatDetails;
- }
-
- public void addVatDetail(VatDetailType vatDetail) {
- if (this.vatDetails == null) {
- this.vatDetails = new SequenceOfVatDetail();
- }
- this.vatDetails.add(vatDetail);
- }
-
- public void setLoadingDates (Date beginLoading, Date endLoading, Date issuingDate){
-
- if (issuingDate == null || beginLoading == null) return;
-
- this.beginLoadingDate = DateTimeUtils.getDateDifference(issuingDate,beginLoading);
- this.beginLoadingTime = DateTimeUtils.getTime(beginLoading);
-
- if (endLoading != null) {
- this.endLoadingTime = DateTimeUtils.getTime(endLoading);
- }
- }
-
- public Date getBeginLoadingDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.beginLoadingDate == null) {
- this.beginLoadingDate = 0L;
- }
-
- return DateTimeUtils.getDate(issuingDate, this.beginLoadingDate, this.beginLoadingTime);
-
- }
-
- public Date getEndLoadingDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.beginLoadingDate == null) {
- this.beginLoadingDate = 0L;
- }
-
- if (this.endLoadingTime == null) {
- return null;
- }
-
- Date begin = DateTimeUtils.getDate(issuingDate, this.beginLoadingDate, this.beginLoadingTime);
- Date end = DateTimeUtils.getDate(issuingDate, this.beginLoadingDate, this.endLoadingTime);
-
- //max one day difference assumed
- if (end.before(begin)) {
- Calendar cal = Calendar.getInstance();
- cal.clear();
- cal.setTime(end);
- cal.add(Calendar.DAY_OF_YEAR,1);
- return cal.getTime();
- } else {
- return end;
- }
-
- }
-
- public Long getLoadingUTCOffset() {
- return loadingUTCOffset;
- }
-
- public void setLoadingUTCOffset(Long loadingUTCOffset) {
- this.loadingUTCOffset = loadingUTCOffset;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/CardReferenceType.java b/src/org/uic/barcode/ticket/api/asn/omv2/CardReferenceType.java
deleted file mode 100644
index 3c7d3e2..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/CardReferenceType.java
+++ /dev/null
@@ -1,182 +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.math.BigInteger;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-
-@Sequence
-@HasExtensionMarker
-public class CardReferenceType extends Object {
- public CardReferenceType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger cardIssuerNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String cardIssuerIA5;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger cardIdNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String cardIdIA5;
-
- @FieldOrder(order = 4)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String cardName;
-
- @FieldOrder(order = 5)
- @Asn1Optional public Asn1BigInteger cardType;
-
- @FieldOrder(order = 6)
- @Asn1Optional public Asn1BigInteger leadingCardIdNum;
-
- @FieldOrder(order = 7)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String leadingCardIdIA5;
-
- @FieldOrder(order = 8)
- @Asn1Optional public Asn1BigInteger trailingCardIdNum;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trailingCardIdIA5;
-
- public Asn1BigInteger getCardIssuerNum() {
-
- return this.cardIssuerNum;
- }
-
- public String getCardIssuerIA5() {
-
- return this.cardIssuerIA5;
- }
-
- public Asn1BigInteger getCardIdNum() {
-
- return this.cardIdNum;
- }
-
- public String getCardIdIA5() {
-
- return this.cardIdIA5;
- }
-
- public String getCardName() {
-
- return this.cardName;
- }
-
- public Asn1BigInteger getCardType() {
- return this.cardType;
- }
-
- public BigInteger getLeadingCardIdNum() {
- if (leadingCardIdNum != null) {
- return leadingCardIdNum.toBigInteger();
- }
- return null;
- }
-
- public String getLeadingCardIdIA5() {
-
- return this.leadingCardIdIA5;
- }
-
- public Long getTrailingCardIdNum() {
-
- return Asn1BigInteger.toLong(this.trailingCardIdNum);
- }
-
- public String getTrailingCardIdIA5() {
-
- return this.trailingCardIdIA5;
- }
-
- public void setCardIssuerNum(Long cardIssuerNum) {
-
- this.cardIssuerNum = Asn1BigInteger.toAsn1(cardIssuerNum);
- }
-
- public void setCardIssuerIA5(String cardIssuerIA5) {
-
- this.cardIssuerIA5 = cardIssuerIA5;
- }
-
- public void setCardIdNum(Asn1BigInteger asn1BigInteger) {
-
- this.cardIdNum = asn1BigInteger;
- }
-
- public void setCardIdNum(Long cardIdNum) {
-
- this.cardIdNum = new Asn1BigInteger(cardIdNum);
- }
-
- public void setCardIdIA5(String cardIdIA5) {
-
- this.cardIdIA5 = cardIdIA5;
- }
-
- public void setCardName(String cardName) {
-
- this.cardName = cardName;
- }
-
- public void setCardType(Long cardType) {
-
- this.cardType = Asn1BigInteger.toAsn1(cardType);
- }
-
- public void setLeadingCardIdNum(Long leadingCardIdNum) {
-
- this.leadingCardIdNum = Asn1BigInteger.toAsn1(leadingCardIdNum);
- }
-
- public void setLeadingCardIdIA5(String leadingCardIdIA5) {
-
- this.leadingCardIdIA5 = leadingCardIdIA5;
- }
-
- public void setTrailingCardIdNum(Long trailingCardIdNum) {
-
- this.trailingCardIdNum = Asn1BigInteger.toAsn1(trailingCardIdNum);
- }
-
- public void setTrailingCardIdIA5(String trailingCardIdIA5) {
-
- this.trailingCardIdIA5 = trailingCardIdIA5;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/CodeTableType.java b/src/org/uic/barcode/ticket/api/asn/omv2/CodeTableType.java
deleted file mode 100644
index e9c5e01..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/CodeTableType.java
+++ /dev/null
@@ -1,40 +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;
-
-
-public enum CodeTableType {
- stationUIC("stationUIC"),
- stationUICReservation("stationUICReservation"),
- stationERA("stationERA"),
- localCarrierStationCodeTable("localCarrierStationCodeTable"),
- proprietaryIssuerStationCodeTable("proprietaryIssuerStationCodeTable");
-
- public String text;
-
- CodeTableType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/CompartmentDetailsType.java b/src/org/uic/barcode/ticket/api/asn/omv2/CompartmentDetailsType.java
deleted file mode 100644
index ce1832e..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/CompartmentDetailsType.java
+++ /dev/null
@@ -1,136 +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 org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-
-
-@Sequence
-@HasExtensionMarker
-public class CompartmentDetailsType extends Object {
- public CompartmentDetailsType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=99)
- @Asn1Optional public Long coachType;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1,maxValue=99)
- @Asn1Optional public Long compartmentType;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=99)
- @Asn1Optional public Long specialAllocation;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String coachTypeDescr;
-
- @FieldOrder(order = 4)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String compartmentTypeDescr;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String specialAllocationDescr;
-
- @FieldOrder(order = 6)
- @Asn1Default(value="unspecified")
- public CompartmentPositionType position;
-
- public Long getCoachType() {
-
- return this.coachType;
- }
-
- public Long getCompartmentType() {
-
- return this.compartmentType;
- }
-
- public Long getSpecialAllocation() {
-
- return this.specialAllocation;
- }
-
- public String getCoachTypeDescr() {
-
- return this.coachTypeDescr;
- }
-
- public String getCompartmentTypeDescr() {
-
- return this.compartmentTypeDescr;
- }
-
- public String getSpecialAllocationDescr() {
-
- return this.specialAllocationDescr;
- }
-
- public CompartmentPositionType getPosition() {
- if (position == null) return CompartmentPositionType.unspecified;
- return this.position;
- }
-
- public void setCoachType(Long coachType) {
- this.coachType = coachType;
- }
-
- public void setCompartmentType(Long compartmentType) {
-
- this.compartmentType = compartmentType;
- }
-
- public void setSpecialAllocation(Long specialAllocation) {
-
- this.specialAllocation = specialAllocation;
- }
-
- public void setCoachTypeDescr(String coachTypeDescr) {
-
- this.coachTypeDescr = coachTypeDescr;
- }
-
- public void setCompartmentTypeDescr(String compartmentTypeDescr) {
-
- this.compartmentTypeDescr = compartmentTypeDescr;
- }
-
- public void setSpecialAllocationDescr(String specialAllocationDescr) {
-
- this.specialAllocationDescr = specialAllocationDescr;
- }
-
- public void setPosition(CompartmentPositionType position) {
-
- this.position = position;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/CompartmentGenderType.java b/src/org/uic/barcode/ticket/api/asn/omv2/CompartmentGenderType.java
deleted file mode 100644
index f960234..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/CompartmentGenderType.java
+++ /dev/null
@@ -1,42 +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 org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum CompartmentGenderType {
- unspecified("unspecified"),
- family("family"),
- female("female"),
- male("male"),
- mixed("mixed");
-
- public String text;
-
- CompartmentGenderType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/CompartmentPositionType.java b/src/org/uic/barcode/ticket/api/asn/omv2/CompartmentPositionType.java
deleted file mode 100644
index cb43f24..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/CompartmentPositionType.java
+++ /dev/null
@@ -1,38 +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;
-
-
-public enum CompartmentPositionType {
- unspecified("unspecified"),
- upperLevel("upperLevel"),
- lowerLevel("lowerLevel");
-
- public String text;
-
- CompartmentPositionType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ConfirmationTypeType.java b/src/org/uic/barcode/ticket/api/asn/omv2/ConfirmationTypeType.java
deleted file mode 100644
index bf84f91..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ConfirmationTypeType.java
+++ /dev/null
@@ -1,42 +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 org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum ConfirmationTypeType {
- trainDelayConfirmation ("trainDelayConfirmation"),
- travelerDelayConfirmation ("travelerDelayConfirmation"),
- trainLinkedTicketDelay ("trainLinkedTicketDelay");
-
-
-
- public String text;
-
- ConfirmationTypeType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ControlData.java b/src/org/uic/barcode/ticket/api/asn/omv2/ControlData.java
deleted file mode 100644
index fb73e24..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ControlData.java
+++ /dev/null
@@ -1,200 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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;
-
-
-
-@Sequence
-@HasExtensionMarker
-public class ControlData extends Object {
- public ControlData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public SequenceOfCardReferenceType identificationByCardReference;
-
- @FieldOrder(order = 1)
- public Boolean identificationByIdCard = false;
-
- @FieldOrder(order = 2)
- public Boolean identificationByPassportId = false;
-
- @FieldOrder(order = 3)
- @Asn1Optional public Asn1BigInteger identificationItem;
-
- @FieldOrder(order = 4)
- public Boolean passportValidationRequired = false;
-
- @FieldOrder(order = 5)
- public Boolean onlineValidationRequired = false;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=0,maxValue=99)
- @Asn1Optional public Long randomDetailedValidationRequired;
-
- @FieldOrder(order = 7)
- public Boolean ageCheckRequired = false;
-
- @FieldOrder(order = 8)
- public Boolean reductionCardCheckRequired = false;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 10)
- @Asn1Optional public SequenceOfTicketLinkType includedTickets;
-
- @FieldOrder(order = 11)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
- public SequenceOfCardReferenceType getIdentificationByCardReference() {
-
- return this.identificationByCardReference;
- }
-
- public Boolean getIdentificationByIdCard() {
-
- return this.identificationByIdCard;
- }
-
- public Boolean getIdentificationByPassportId() {
-
- return this.identificationByPassportId;
- }
-
- public Long getIdentificationItem() {
-
- return Asn1BigInteger.toLong(this.identificationItem);
- }
-
- public Boolean getPassportValidationRequired() {
-
- return this.passportValidationRequired;
- }
-
- public Boolean getOnlineValidationRequired() {
-
- return this.onlineValidationRequired;
- }
-
- public Long getRandomDetailedValidationRequired() {
-
- return this.randomDetailedValidationRequired;
- }
-
- public Boolean getAgeCheckRequired() {
-
- return this.ageCheckRequired;
- }
-
- public Boolean getReductionCardCheckRequired() {
-
- return this.reductionCardCheckRequired;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public SequenceOfTicketLinkType getIncludedTickets() {
-
- return this.includedTickets;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setIdentificationByCardReference(SequenceOfCardReferenceType identificationByCardReference) {
-
- this.identificationByCardReference = identificationByCardReference;
- }
-
- public void setIdentificationByIdCard(Boolean identificationByIdCard) {
-
- this.identificationByIdCard = identificationByIdCard;
- }
-
- public void setIdentificationByPassportId(Boolean identificationByPassportId) {
-
- this.identificationByPassportId = identificationByPassportId;
- }
-
- public void setIdentificationItem(Long identificationItem) {
-
- this.identificationItem = Asn1BigInteger.toAsn1(identificationItem);
- }
-
- public void setPassportValidationRequired(Boolean passportValidationRequired) {
-
- this.passportValidationRequired = passportValidationRequired;
- }
-
- public void setOnlineValidationRequired(Boolean onlineValidationRequired) {
-
- this.onlineValidationRequired = onlineValidationRequired;
- }
-
- public void setRandomDetailedValidationRequired(Long randomDetailedValidationRequired) {
- this.randomDetailedValidationRequired = randomDetailedValidationRequired;
- }
-
- public void setAgeCheckRequired(Boolean ageCheckRequired) {
- this.ageCheckRequired = ageCheckRequired;
- }
-
- public void setReductionCardCheckRequired(Boolean reductionCardCheckRequired) {
-
- this.reductionCardCheckRequired = reductionCardCheckRequired;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setIncludedTickets(SequenceOfTicketLinkType includedTickets) {
-
- this.includedTickets = includedTickets;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/CountermarkData.java b/src/org/uic/barcode/ticket/api/asn/omv2/CountermarkData.java
deleted file mode 100644
index 435c6ef..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/CountermarkData.java
+++ /dev/null
@@ -1,578 +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.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class CountermarkData extends Object {
- public CountermarkData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=65535)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String ticketReferenceIA5;
-
- @FieldOrder(order = 7)
- @Asn1Optional public Asn1BigInteger ticketReferenceNum;
-
- @FieldOrder(order = 8)
- @IntRange(minValue=1,maxValue=200)
- @Asn1Optional public Long numberOfCountermark;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=1,maxValue=200)
- @Asn1Optional public Long totalOfCountermarks;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String groupName;
-
- @FieldOrder(order = 11)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 13)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 14)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 15)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 16)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 17)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- @FieldOrder(order = 18)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String validRegionDesc;
-
- @FieldOrder(order = 19)
- @Asn1Optional public SequenceOfRegionalValidityType validRegion;
-
- @FieldOrder(order = 20)
- public Boolean returnIncluded = false;
-
- @FieldOrder(order = 21)
- @Asn1Optional public ReturnRouteDescriptionType returnDescription;
-
- @FieldOrder(order = 22)
- @IntRange(minValue=-1,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 23)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 24)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 25)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 26)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 27)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- @FieldOrder(order = 28)
- @Asn1Default(value="second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 29)
- @Asn1Optional public SequenceOfCarrierNum carrierNum;
-
- @FieldOrder(order = 30)
- @Asn1Optional public SequenceOfStringIA5 carrierIA5;
-
- @FieldOrder(order = 31)
- @Asn1Optional public SequenceOfServiceBrands includedServiceBrands;
-
- @FieldOrder(order = 32)
- @Asn1Optional public SequenceOfServiceBrands excludedServiceBrands;
-
- @FieldOrder(order = 33)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 34)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Long getReferenceNum() {
-
- return Asn1BigInteger.toLong(this.referenceNum);
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public String getTicketReferenceIA5() {
-
- return this.ticketReferenceIA5;
- }
-
- public Long getTicketReferenceNum() {
-
- return Asn1BigInteger.toLong(this.ticketReferenceNum);
- }
-
- public Long getNumberOfCountermark() {
-
- return this.numberOfCountermark;
- }
-
- public Long getTotalOfCountermarks() {
-
- return this.totalOfCountermarks;
- }
-
- public String getGroupName() {
-
- return this.groupName;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public String getValidRegionDesc() {
-
- return this.validRegionDesc;
- }
-
- public SequenceOfRegionalValidityType getValidRegion() {
-
- return this.validRegion;
- }
-
- public Boolean getReturnIncluded() {
-
- return this.returnIncluded;
- }
-
- public ReturnRouteDescriptionType getReturnDescription() {
-
- return this.returnDescription;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public TravelClassType getClassCode() {
-
- if (classCode == null){
- return TravelClassType.second;
- }
-
- return this.classCode;
- }
-
- public SequenceOfCarrierNum getCarriersNum() {
-
- return this.carrierNum;
- }
-
- public SequenceOfStringIA5 getCarriersIA5() {
-
- return this.carrierIA5;
- }
-
- public SequenceOfServiceBrands getIncludedServiceBrands() {
-
- return this.includedServiceBrands;
- }
-
- public SequenceOfServiceBrands getExcludedServiceBrands() {
-
- return this.excludedServiceBrands;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Long referenceNum) {
-
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setTicketReferenceIA5(String ticketReferenceIA5) {
-
- this.ticketReferenceIA5 = ticketReferenceIA5;
- }
-
- public void setTicketReferenceNum(Long ticketReferenceNum) {
-
- this.ticketReferenceNum = Asn1BigInteger.toAsn1(ticketReferenceNum);
- }
-
- public void setNumberOfCountermark(Long numberOfCountermark) {
-
- this.numberOfCountermark = numberOfCountermark;
- }
-
- public void setTotalOfCountermarks(Long totalOfCountermarks) {
-
- this.totalOfCountermarks = totalOfCountermarks;
- }
-
- public void setGroupName(String groupName) {
-
- this.groupName = groupName;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
- public void setValidRegionDesc(String validRegionDesc) {
-
- this.validRegionDesc = validRegionDesc;
- }
-
- public void setValidRegion(SequenceOfRegionalValidityType validRegion) {
-
- this.validRegion = validRegion;
- }
-
- public void setReturnIncluded(Boolean returnIncluded) {
-
- this.returnIncluded = returnIncluded;
- }
-
- public void setReturnDescription(ReturnRouteDescriptionType returnDescription) {
-
- this.returnDescription = returnDescription;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- public void setCarriersNum(SequenceOfCarrierNum carrierNum) {
-
- this.carrierNum = carrierNum;
- }
-
- public void setCarriersNum(List longs) {
- if (longs == null) return;
-
- this.carrierNum = new SequenceOfCarrierNum();
- this.carrierNum.addAll(longs);
- }
-
- public void setCarriersIA5(SequenceOfStringIA5 carrierIA5) {
-
- this.carrierIA5 = carrierIA5;
- }
-
- public void setIncludedServiceBrands(SequenceOfServiceBrands includedServiceBrands) {
-
- this.includedServiceBrands = includedServiceBrands;
- }
-
- public void setExcludedServiceBrands(SequenceOfServiceBrands excludedServiceBrands) {
-
- this.excludedServiceBrands = excludedServiceBrands;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/CustomerCardData.java b/src/org/uic/barcode/ticket/api/asn/omv2/CustomerCardData.java
deleted file mode 100644
index 6ea31c1..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/CustomerCardData.java
+++ /dev/null
@@ -1,298 +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.Asn1BigInteger;
-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.datatypesimpl.SequenceOfUnrestrictedLong;
-
-@Sequence
-@HasExtensionMarker
-public class CustomerCardData extends Object {
- public CustomerCardData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public TravelerType customer;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String cardIdIA5;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger cardIdNum;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=2016,maxValue=2269)
- @Asn1Optional public Long validFromYear;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=0,maxValue=250)
- @Asn1Optional public Long validUntilYear;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 7)
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 8)
- @IntRange(minValue=0,maxValue=1000)
- @Asn1Optional public Long cardType;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String cardTypeDescr;
-
- @FieldOrder(order = 10)
- @Asn1Optional public Asn1BigInteger customerStatus;
-
- @FieldOrder(order = 11)
- @Asn1Optional public String customerStatusDescr;
-
- @FieldOrder(order = 12)
- @Asn1Optional public SequenceOfUnrestrictedLong includedServices;
-
- @FieldOrder(order = 13)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
- public TravelerType getCustomer() {
-
- return this.customer;
- }
-
- public String getCardIdIA5() {
-
- return this.cardIdIA5;
- }
-
- public Asn1BigInteger getCardIdNum() {
-
- return this.cardIdNum;
- }
-
- public Long getValidFromYear() {
-
- return this.validFromYear;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidUntilYear() {
-
- return this.validUntilYear;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public TravelClassType getClassCode() {
-
- return this.classCode;
- }
-
- public Long getCardType() {
-
- return this.cardType;
- }
-
- public String getCardTypeDescr() {
-
- return this.cardTypeDescr;
- }
-
- public Long getCustomerStatus() {
-
- return Asn1BigInteger.toLong(this.customerStatus);
- }
-
- public String getCustomerStatusDescr() {
-
- return this.customerStatusDescr;
- }
-
- public SequenceOfUnrestrictedLong getIncludedServices() {
-
- return this.includedServices;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setCustomer(TravelerType customer) {
-
- this.customer = customer;
- }
-
- public void setCardIdIA5(String cardIdIA5) {
-
- this.cardIdIA5 = cardIdIA5;
- }
-
- public void setCardIdNum(Asn1BigInteger cardIdNum) {
-
- this.cardIdNum = cardIdNum;
- }
-
- public void setCardIdNum(Long cardIdNum) {
-
- this.cardIdNum = new Asn1BigInteger(cardIdNum);
- }
-
- public void setValidFromYear(Long validFromYear) {
-
- this.validFromYear = validFromYear;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidUntilYear(Long validUntilYear) {
-
- this.validUntilYear = validUntilYear;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- public void setCardType(Long cardType) {
-
- this.cardType = cardType;
- }
-
- public void setCardTypeDescr(String cardTypeDescr) {
-
- this.cardTypeDescr = cardTypeDescr;
- }
-
- public void setCustomerStatus(Long customerStatus) {
-
- this.customerStatus = Asn1BigInteger.toAsn1(customerStatus);
- }
-
- public void setCustomerStatusDescr(String customerStatusDescr) {
-
- this.customerStatusDescr = customerStatusDescr;
- }
-
- public void setIncludedServices(SequenceOfUnrestrictedLong includedServices) {
-
- this.includedServices = includedServices;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setValidity (Date fromDate , Date untilDate){
-
- Calendar fromCal = Calendar.getInstance();
- fromCal.clear();
- fromCal.setTime(fromDate);
-
- this.validFromYear = new Long( fromCal.get(Calendar.YEAR));
- this.validFromDay = new Long (fromCal.get(Calendar.DAY_OF_YEAR));
-
- if (untilDate == null) return;
-
- Calendar untilCal = Calendar.getInstance();
- untilCal.clear();
- untilCal.setTime(untilDate);
-
- int untildays = untilCal.get(Calendar.DAY_OF_YEAR);
-
- int yearDiff = untilCal.get(Calendar.YEAR) - fromCal.get(Calendar.YEAR);
-
- this.validUntilYear = new Long( yearDiff);
- this.validUntilDay = new Long (untildays);
-
- }
-
- public Date getValidFromDate (){
-
- if (this.validFromYear == null || this.validFromDay == null) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- //cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.validFromYear.intValue());
- cal.set(Calendar.DAY_OF_YEAR, this.validFromDay.intValue());
- cal.set(Calendar.MINUTE,0);
- cal.set(Calendar.HOUR_OF_DAY,0);
- return cal.getTime();
-
- }
-
-
- public Date getValidUntilDate (){
-
- if (this.validUntilYear == null || this.validUntilDay == null) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- //cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.validFromYear.intValue());
- if (this.validUntilYear != null) {
- cal.add(Calendar.YEAR, this.validUntilYear.intValue());
- }
- cal.set(Calendar.DAY_OF_YEAR, this.validUntilDay.intValue());
- cal.set(Calendar.MINUTE,59);
- cal.set(Calendar.HOUR_OF_DAY,23);
- return cal.getTime();
-
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/CustomerStatusType.java b/src/org/uic/barcode/ticket/api/asn/omv2/CustomerStatusType.java
deleted file mode 100644
index cb10dc9..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/CustomerStatusType.java
+++ /dev/null
@@ -1,93 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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.IntRange;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-
-
-@Sequence
-public class CustomerStatusType extends Object {
- public CustomerStatusType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long statusProviderNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String statusProviderIA5;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger customerStatus;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String customerStatusDescr;
-
- public Long getStatusProviderNum() {
-
- return this.statusProviderNum;
- }
-
- public String getStatusProviderIA5() {
-
- return this.statusProviderIA5;
- }
-
- public Long getCustomerStatus() {
-
- return Asn1BigInteger.toLong(this.customerStatus);
- }
-
- public String getCustomerStatusDescr() {
-
- return this.customerStatusDescr;
- }
-
- public void setStatusProviderNum(Long statusProviderNum) {
-
- this.statusProviderNum = statusProviderNum;
- }
-
- public void setStatusProviderIA5(String statusProviderIA5) {
-
- this.statusProviderIA5 = statusProviderIA5;
- }
-
- public void setCustomerStatus(Long customerStatus) {
-
- this.customerStatus = Asn1BigInteger.toAsn1(customerStatus);
- }
-
- public void setCustomerStatusDescr(String customerStatusDescr) {
-
- this.customerStatusDescr = customerStatusDescr;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/DelayConfirmation.java b/src/org/uic/barcode/ticket/api/asn/omv2/DelayConfirmation.java
deleted file mode 100644
index 72abeb0..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/DelayConfirmation.java
+++ /dev/null
@@ -1,339 +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.List;
-import java.util.TimeZone;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-
-
-@Sequence
-@HasExtensionMarker
-public class DelayConfirmation extends Object {
- public DelayConfirmation() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger trainNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trainIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=2016, maxValue=2269)
- @Asn1Optional public Long plannedArrivalYear;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=1, maxValue=366)
- @Asn1Optional public Long plannedArrivalDay;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=0, maxValue=1439)
- @Asn1Optional public Long plannedArrivalTime;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long departureUTCOffset;
-
- @FieldOrder(order = 8)
- @Asn1Default(value="stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=1, maxValue=9999999)
- @Asn1Optional public Long stationNum;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String stationIA5;
-
- @FieldOrder(order = 11)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String stationNameUTF8;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=0, maxValue=999, hasExtensionMarker=false)
- @Asn1Optional public Long delay;
-
- @FieldOrder(order = 13)
- @Asn1Optional public Boolean trainCancelled = false;
-
- @FieldOrder(order = 14)
- @Asn1Default(value="travelerDelayConfirmation")
- @Asn1Optional public ConfirmationTypeType confirmationType;
-
- @FieldOrder(order = 15)
- @Asn1Optional public SequenceOfTicketLinkType affectedTickets;
-
- @FieldOrder(order = 16)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 17)
- @Asn1Optional public ExtensionData extension;
-
-
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public Long getTrainNum() {
-
- return Asn1BigInteger.toLong(this.trainNum);
- }
-
- public String getTrainIA5() {
-
- return this.trainIA5;
- }
-
- public Long getPlannedArrivalYear() {
-
- return this.plannedArrivalYear;
- }
-
- public Long getPlannedArrivalDay() {
-
- return this.plannedArrivalDay;
- }
-
- public Long getPlannedArrivalTime() {
-
- return this.plannedArrivalTime;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null){
- return CodeTableType.stationUIC;
- }
- return this.stationCodeTable;
- }
-
- public Long getStationNum() {
-
- return this.stationNum;
- }
-
- public String getStationIA5() {
-
- return this.stationIA5;
- }
-
- public String getStationNameUTF8() {
-
- return this.stationNameUTF8;
- }
-
- public Long getDelay() {
-
- return this.delay;
- }
-
- public Boolean getTrainCancelled() {
-
- return this.trainCancelled;
- }
-
- public ConfirmationTypeType getConfirmationType() {
-
- if (confirmationType == null){
- return ConfirmationTypeType.trainDelayConfirmation;
- }
-
- return this.confirmationType;
- }
-
- public List getAffectedTickets() {
-
- return this.affectedTickets;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
- this.referenceNum = referenceNum;
- }
-
- public void setReferenceNum(Long referenceNum) {
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setTrainNum(Asn1BigInteger trainNum) {
-
- this.trainNum = trainNum;
- }
-
- public void setTrainIA5(String trainIA5) {
-
- this.trainIA5 = trainIA5;
- }
-
- public void setPlannedArrivalYear(Long plannedArrivalYear) {
-
- this.plannedArrivalYear = plannedArrivalYear;
- }
-
- public void setPlannedArrivalDay(Long plannedArrivalDay) {
-
- this.plannedArrivalDay = plannedArrivalDay;
- }
-
- public void setPlannedArrivalTime(Long plannedArrivalTime) {
-
- this.plannedArrivalTime = plannedArrivalTime;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setStationNum(Long stationNum) {
-
- this.stationNum = stationNum;
- }
-
- public void setStationIA5(String stationIA5) {
-
- this.stationIA5 = stationIA5;
- }
-
- public void setStationNameUTF8(String stationNameUTF8) {
-
- this.stationNameUTF8 = stationNameUTF8;
- }
-
- public void setDelay(Long delay) {
-
- this.delay = delay;
- }
-
- public void setTrainCancelled(Boolean trainCancelled) {
-
- this.trainCancelled = trainCancelled;
- }
-
- public void setConfirmationType(ConfirmationTypeType confirmationType) {
-
- this.confirmationType = confirmationType;
- }
-
- public void setAffectedTickets(SequenceOfTicketLinkType affectedTickets) {
-
- this.affectedTickets = affectedTickets;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setPlannedArrivalDate(Date date){
-
- Calendar cal = Calendar.getInstance();
- cal.setTime(date);
-
- this.plannedArrivalYear = new Long( cal.get(Calendar.YEAR));
- this.plannedArrivalDay = new Long (cal.get(Calendar.DAY_OF_YEAR));
- int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE);
- if (time > 0) {
- this.plannedArrivalTime = new Long (time );
- }
-
- }
-
- public Date getPlannedArrivalDate() {
-
- if (this.plannedArrivalYear == null || this.plannedArrivalDay == null) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.plannedArrivalYear.intValue());
- cal.set(Calendar.DAY_OF_YEAR, this.plannedArrivalDay.intValue());
-
- if (this.plannedArrivalTime != null) {
-
- int hours = this.plannedArrivalTime.intValue() / 60;
- int minutes = this.plannedArrivalTime.intValue() % 60;
- cal.set(Calendar.HOUR_OF_DAY, hours);
- cal.set(Calendar.MINUTE,minutes);
-
- }
-
- return cal.getTime();
- }
-
- public Long getDepartureUTCOffset() {
- return departureUTCOffset;
- }
-
- public void setDepartureUTCOffset(Long departureUTCOffset) {
- this.departureUTCOffset = departureUTCOffset;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/DeltaCoordinates.java b/src/org/uic/barcode/ticket/api/asn/omv2/DeltaCoordinates.java
deleted file mode 100644
index f4e47ea..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/DeltaCoordinates.java
+++ /dev/null
@@ -1,58 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class DeltaCoordinates extends Object {
- public DeltaCoordinates() {
- }
-
- @FieldOrder(order = 0)
- public Asn1BigInteger longitude;
-
- @FieldOrder(order = 1)
- public Asn1BigInteger latitude;
-
- public Asn1BigInteger getLongitude() {
-
- return this.longitude;
- }
-
- public Asn1BigInteger getLatitude() {
-
- return this.latitude;
- }
-
- public void setLongitude(Asn1BigInteger longitude) {
-
- this.longitude = longitude;
- }
-
- public void setLatitude(Asn1BigInteger latitude) {
-
- this.latitude = latitude;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/DocumentData.java b/src/org/uic/barcode/ticket/api/asn/omv2/DocumentData.java
deleted file mode 100644
index d6a759b..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/DocumentData.java
+++ /dev/null
@@ -1,61 +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 org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-@HasExtensionMarker
-public class DocumentData extends Object {
- public DocumentData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public TokenType token;
-
- @FieldOrder(order = 1)
- public TicketDetailData ticket;
-
- public TokenType getToken() {
-
- return this.token;
- }
-
- public TicketDetailData getTicket() {
-
- return this.ticket;
- }
-
- public void setToken(TokenType token) {
-
- this.token = token;
- }
-
- public void setTicket(TicketDetailData ticket) {
-
- this.ticket = ticket;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ExtensionData.java b/src/org/uic/barcode/ticket/api/asn/omv2/ExtensionData.java
deleted file mode 100644
index 1e3a33a..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ExtensionData.java
+++ /dev/null
@@ -1,64 +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 org.uic.barcode.asn1.datatypes.CharacterRestriction;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.datatypesimpl.OctetString;
-
-
-@Sequence
-public class ExtensionData extends Object {
- public ExtensionData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- public String extensionId;
-
- @FieldOrder(order = 1)
- public OctetString extensionData;
-
- public String getExtensionId() {
-
- return this.extensionId;
- }
-
- public byte[] getExtensionData() {
-
- return extensionData.toByteArray();
- }
-
- public void setExtensionId(String extensionId) {
-
- this.extensionId = extensionId;
- }
-
- public void setExtensionData(byte[] extensionData) {
-
- this.extensionData = new OctetString(extensionData);
-
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/FIPTicketData.java b/src/org/uic/barcode/ticket/api/asn/omv2/FIPTicketData.java
deleted file mode 100644
index c6a98e4..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/FIPTicketData.java
+++ /dev/null
@@ -1,338 +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.ArrayList;
-import java.util.Collection;
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class FIPTicketData extends Object {
- public FIPTicketData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=65535)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=-1,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 8)
- @Asn1Optional public SequenceOfActivatedDays activatedDay;
-
- @FieldOrder(order = 9)
- @Asn1Optional public SequenceOfCarrierNum carrierNum;
-
- @FieldOrder(order = 10)
- @Asn1Optional public SequenceOfStringIA5 carrierIA5;
-
- @FieldOrder(order = 11)
- @IntRange(minValue=1,maxValue=200)
- public Long numberOfTravelDays;
-
- @FieldOrder(order = 12)
- public Boolean includesSupplements = false;
-
- @FieldOrder(order = 13)
- @Asn1Default(value="second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 14)
- @Asn1Optional public ExtensionData extension;
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public List getActivatedDay() {
-
- return this.activatedDay;
- }
-
- public List getCarrierNum() {
-
- return this.carrierNum;
- }
-
- public List getCarrierIA5() {
-
- return this.carrierIA5;
- }
-
- public Long getNumberOfTravelDays() {
-
- return this.numberOfTravelDays;
- }
-
- public Boolean getIncludesSupplements() {
-
- return this.includesSupplements;
- }
-
- public TravelClassType getClassCode() {
- if (classCode == null) return TravelClassType.second;
- return this.classCode;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
-
- this.referenceNum = referenceNum;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setActivatedDay(SequenceOfActivatedDays activatedDay) {
-
- this.activatedDay = activatedDay;
- }
-
- public void setCarrierNum(SequenceOfCarrierNum carrierNum) {
-
- this.carrierNum = carrierNum;
- }
-
- public void setCarrierIA5(SequenceOfStringIA5 carrierIA5) {
-
- this.carrierIA5 = carrierIA5;
- }
-
- public void setNumberOfTravelDays(Long numberOfTravelDays) {
-
- this.numberOfTravelDays = numberOfTravelDays;
- }
-
- public void setIncludesSupplements(Boolean includesSupplements) {
-
- this.includesSupplements = includesSupplements;
- }
-
- public void setClassCode(TravelClassType classCode) {
- this.classCode = classCode;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay,0L);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, 1439L);
-
- }
-
- public void addActivatedDays(Collection days) {
-
- if (days == null || days.isEmpty()) return;
-
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
-
- for (Long l : days) {
- this.activatedDay.add(l);
- }
-
- }
-
- public void addActivatedDay(Date issuingDate, Date day){
-
- Long dayDiff = DateTimeUtils.getDateDifference(issuingDate, day);
-
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
-
- if (dayDiff != null) {
- this.activatedDay.add(dayDiff);
- }
-
- }
-
- /**
- * Gets the activated days.
- *
- * @param issuingDate the issuing date
- * @return the activated days
- */
- public Collection getActivatedDays(Date issuingDate) {
-
- if (this.activatedDay == null) return null;
-
- ArrayList dates = new ArrayList();
-
- for (Long diff: this.getActivatedDay()) {
-
- Date day = DateTimeUtils.getDate(this.getValidFromDate(issuingDate), diff, null);
-
- if (day != null) {
- dates.add(day);
- }
-
- }
-
- return dates;
-
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/GenderType.java b/src/org/uic/barcode/ticket/api/asn/omv2/GenderType.java
deleted file mode 100644
index f81f045..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/GenderType.java
+++ /dev/null
@@ -1,42 +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 org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum GenderType {
- unspecified("unspecified"),
- female("female"),
- male("male"),
- other("other");
-
-
- public String text;
-
- GenderType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/GeoCoordinateSystemType.java b/src/org/uic/barcode/ticket/api/asn/omv2/GeoCoordinateSystemType.java
deleted file mode 100644
index 9a5bed4..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/GeoCoordinateSystemType.java
+++ /dev/null
@@ -1,38 +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;
-
-
-public enum GeoCoordinateSystemType {
- wgs84("wgs84"),
- grs80("grs80");
-
-
- public String text;
-
- GeoCoordinateSystemType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/GeoCoordinateType.java b/src/org/uic/barcode/ticket/api/asn/omv2/GeoCoordinateType.java
deleted file mode 100644
index 16c4401..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/GeoCoordinateType.java
+++ /dev/null
@@ -1,144 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class GeoCoordinateType extends Object {
- public GeoCoordinateType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Default(value="milliDegree")
- @Asn1Optional public GeoUnitType geoUnit;
-
- @FieldOrder(order = 1)
- @Asn1Default(value="wgs84")
- @Asn1Optional public GeoCoordinateSystemType coordinateSystem;
-
- @FieldOrder(order = 2)
- @Asn1Default(value="north")
- @Asn1Optional public HemisphereLongitudeType hemisphereLongitude;
-
- @FieldOrder(order = 3)
- @Asn1Default(value="east")
- @Asn1Optional public HemisphereLatitudeType hemisphereLatitude;
-
- @FieldOrder(order = 4)
- public Asn1BigInteger longitude;
-
- @FieldOrder(order = 5)
- public Asn1BigInteger latitude;
-
- @FieldOrder(order = 6)
- @Asn1Optional public GeoUnitType accuracy;
-
- public GeoUnitType getGeoUnit() {
-
- if (geoUnit == null){
- return GeoUnitType.milliDegree;
- }
- return this.geoUnit;
- }
-
- public GeoCoordinateSystemType getCoordinateSystem() {
-
- if (coordinateSystem == null) {
- return GeoCoordinateSystemType.wgs84;
- }
-
- return this.coordinateSystem;
- }
-
- public HemisphereLongitudeType getHemisphereLongitude() {
-
- if (hemisphereLongitude == null){
- return HemisphereLongitudeType.north;
- }
-
- return this.hemisphereLongitude;
- }
-
- public HemisphereLatitudeType getHemisphereLatitude() {
-
- if (hemisphereLatitude == null) {
- return HemisphereLatitudeType.east;
- }
-
- return this.hemisphereLatitude;
- }
-
- public Long getLongitude() {
-
- return Asn1BigInteger.toLong(this.longitude);
- }
-
- public Long getLatitude() {
-
- return Asn1BigInteger.toLong(this.latitude);
- }
-
- public GeoUnitType getAccuracy() {
-
- return this.accuracy;
- }
-
- public void setGeoUnit(GeoUnitType geoUnit) {
-
- this.geoUnit = geoUnit;
- }
-
- public void setCoordinateSystem(GeoCoordinateSystemType coordinateSystem) {
-
- this.coordinateSystem = coordinateSystem;
- }
-
- public void setHemisphereLongitude(HemisphereLongitudeType hemisphereLongitude) {
-
- this.hemisphereLongitude = hemisphereLongitude;
- }
-
- public void setHemisphereLatitude(HemisphereLatitudeType hemisphereLatitude) {
-
- this.hemisphereLatitude = hemisphereLatitude;
- }
-
- public void setLongitude(Long longitude) {
-
- this.longitude = Asn1BigInteger.toAsn1(longitude);
- }
-
- public void setLatitude(Long latitude) {
-
- this.latitude = Asn1BigInteger.toAsn1(latitude);
- }
-
- public void setAccuracy(GeoUnitType accuracy) {
-
- this.accuracy = accuracy;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/GeoUnitType.java b/src/org/uic/barcode/ticket/api/asn/omv2/GeoUnitType.java
deleted file mode 100644
index 225505b..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/GeoUnitType.java
+++ /dev/null
@@ -1,40 +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;
-
-public enum GeoUnitType {
- microDegree("microDegree"),
- tenthmilliDegree("tenthmilliDegree"),
- milliDegree("milliDegree"),
- centiDegree("centiDegree"),
- deciDegree("deciDegree");
-
-
- public String text;
-
- GeoUnitType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/HemisphereLatitudeType.java b/src/org/uic/barcode/ticket/api/asn/omv2/HemisphereLatitudeType.java
deleted file mode 100644
index 63ea321..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/HemisphereLatitudeType.java
+++ /dev/null
@@ -1,37 +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;
-
-public enum HemisphereLatitudeType {
- east("east"),
- west("west");
-
-
- public String text;
-
- HemisphereLatitudeType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/HemisphereLongitudeType.java b/src/org/uic/barcode/ticket/api/asn/omv2/HemisphereLongitudeType.java
deleted file mode 100644
index c493255..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/HemisphereLongitudeType.java
+++ /dev/null
@@ -1,36 +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;
-
-public enum HemisphereLongitudeType {
- north("north"),
- south("south");
-
- public String text;
-
- HemisphereLongitudeType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/IncludedOpenTicketType.java b/src/org/uic/barcode/ticket/api/asn/omv2/IncludedOpenTicketType.java
deleted file mode 100644
index cef0b02..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/IncludedOpenTicketType.java
+++ /dev/null
@@ -1,449 +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.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.IntRange;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.SizeRange;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-public class IncludedOpenTicketType extends Object {
- public IncludedOpenTicketType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=0,maxValue=65535)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 4)
- @Asn1Optional public Asn1BigInteger externalIssuerId;
-
- @FieldOrder(order = 5)
- @Asn1Optional public Asn1BigInteger issuerAutorizationId;
-
- @FieldOrder(order = 6)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 7)
- @Asn1Optional public SequenceOfRegionalValidityType validRegion;
-
- @FieldOrder(order = 8)
- @IntRange(minValue=-1,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 10)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 11)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 13)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- @FieldOrder(order = 14)
- @Asn1Default(value="second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 15)
- @SizeRange(minValue = 1, maxValue = 2)
- @Asn1Optional public String serviceLevel;
-
- @FieldOrder(order = 16)
- @Asn1Optional public SequenceOfCarrierNum includedCarriersNum;
-
- @FieldOrder(order = 17)
- @Asn1Optional public SequenceOfStringIA5 includedCarriersIA5;
-
- @FieldOrder(order = 18)
- @Asn1Optional public SequenceOfServiceBrands includedServiceBrands;
-
- @FieldOrder(order = 19)
- @Asn1Optional public SequenceOfServiceBrands excludedServiceBrands;
-
- @FieldOrder(order = 20)
- @Asn1Optional public SequenceOfTariffType tariffs;
-
- @FieldOrder(order = 21)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 22)
- @Asn1Optional public SequenceOfTransportTypes includedTransportTypes;
-
- @FieldOrder(order = 23)
- @Asn1Optional public SequenceOfTransportTypes excludedTransportTypes;
-
- @FieldOrder(order = 24)
- @Asn1Optional public ExtensionData extension;
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getExternalIssuerId() {
-
- return Asn1BigInteger.toLong(this.externalIssuerId);
- }
-
- public Long getIssuerAutorizationId() {
-
- return Asn1BigInteger.toLong(this.issuerAutorizationId);
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public List getValidRegion() {
-
- return this.validRegion;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public TravelClassType getClassCode() {
-
- if (classCode == null) {
- return TravelClassType.second;
- }
-
- return this.classCode;
- }
-
- public String getServiceLevel() {
-
- return this.serviceLevel;
- }
-
- public List getIncludedCarriersNum() {
-
- return this.includedCarriersNum;
- }
-
- public List getIncludedCarriersIA5() {
-
- return this.includedCarriersIA5;
- }
-
- public List getIncludedServiceBrands() {
-
- return this.includedServiceBrands;
- }
-
- public List getExcludedServiceBrands() {
-
- return this.excludedServiceBrands;
- }
-
-
-
- public SequenceOfTransportTypes getIncludedTransportTypes() {
- return includedTransportTypes;
- }
-
- public void setIncludedTransportTypes(SequenceOfTransportTypes includedTransportTypes) {
- this.includedTransportTypes = includedTransportTypes;
- }
-
- public SequenceOfTransportTypes getExcludedTransportTypes() {
- return excludedTransportTypes;
- }
-
- public void setExcludedTransportTypes(SequenceOfTransportTypes excludedTransportTypes) {
- this.excludedTransportTypes = excludedTransportTypes;
- }
-
- public List getTariffs() {
-
- return this.tariffs;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setExternalIssuerId(Long externalIssuerId) {
-
- this.externalIssuerId = Asn1BigInteger.toAsn1(externalIssuerId);
- }
-
- public void setIssuerAutorizationId(Long issuerAutorizationId) {
-
- this.issuerAutorizationId = Asn1BigInteger.toAsn1(issuerAutorizationId);
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setValidRegion(SequenceOfRegionalValidityType validRegion) {
-
- this.validRegion = validRegion;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- public void setServiceLevel(String serviceLevel) {
-
- this.serviceLevel = serviceLevel;
- }
-
- public void setIncludedCarriersNum(SequenceOfCarrierNum includedCarriersNum) {
-
- this.includedCarriersNum = includedCarriersNum;
- }
-
- public void setIncludedCarriersIA5(SequenceOfStringIA5 includedCarriersIA5) {
-
- this.includedCarriersIA5 = includedCarriersIA5;
- }
-
- public void setIncludedServiceBrands(SequenceOfServiceBrands includedServiceBrands) {
-
- this.includedServiceBrands = includedServiceBrands;
- }
-
- public void setExcludedServiceBrands(SequenceOfServiceBrands excludedServiceBrands) {
-
- this.excludedServiceBrands = excludedServiceBrands;
- }
-
- public void setTariffs(SequenceOfTariffType tariffs) {
-
- this.tariffs = tariffs;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public void setValidFromTimeZone(Date dateLocal, Date dateUTC ) {
- // -- (UTC = local + offset * 15 Minutes)
- this.validFromUTCOffset = new Long(dateLocal.getTime() - dateUTC.getTime()) / (1000 * 60 * 15);
- }
-
- public void setValidUntilTimeZone(Date dateLocal, Date dateUTC ) {
- // -- (UTC = local + offset * 15 Minutes)
- this.validUntilUTCOffset = new Long(dateLocal.getTime() - dateUTC.getTime()) / (1000 * 60 * 15);
-
- if (this.validFromUTCOffset.longValue() == this.validUntilUTCOffset.longValue()) {
- this.validUntilUTCOffset = null;
- }
- }
-
-
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
- public Date getUTCValidFromDate(Date issuingDate){
- return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay, this.validFromTime, this.validFromUTCOffset);
- }
-
- public Date getUTCValidUntilDate(Date issuingDate){
- if (this.validUntilUTCOffset == null) {
- return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay, this.validFromTime, this.validFromUTCOffset);
- } else {
- return DateTimeUtils.getUTCDate(issuingDate, this.validFromDay, this.validUntilTime, this.validFromUTCOffset);
- }
- }
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/IssuingData.java b/src/org/uic/barcode/ticket/api/asn/omv2/IssuingData.java
deleted file mode 100644
index 2491d79..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/IssuingData.java
+++ /dev/null
@@ -1,360 +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.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.FixedSize;
-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;
-
-@Sequence
-@HasExtensionMarker
-public class IssuingData extends Object {
- public IssuingData() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long securityProviderNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String securityProviderIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long issuerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String issuerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=2016,maxValue=2269)
- public Long issuingYear;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=1,maxValue=366)
- public Long issuingDay;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long issuingTime;
-
- @FieldOrder(order = 7)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String issuerName;
-
- @FieldOrder(order = 8)
- public Boolean specimen = false;
-
- @FieldOrder(order = 9)
- public Boolean securePaperTicket = false;
-
- @FieldOrder(order = 10)
- public Boolean activated = true;
-
- @FieldOrder(order = 11)
- @FixedSize(3)
- @Asn1Default(value="EUR")
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String currency;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=1,maxValue=3)
- @Asn1Default(value="2")
- @Asn1Optional public Long currencyFract;
-
- @FieldOrder(order = 13)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String issuerPNR;
-
- @FieldOrder(order = 14)
- @Asn1Optional public ExtensionData extension;
-
- @FieldOrder(order = 15)
- @Asn1Optional public Asn1BigInteger issuedOnTrainNum;
-
- @FieldOrder(order = 16)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String issuedOnTrainIA5;
-
- @FieldOrder(order = 17)
- @Asn1Optional public Asn1BigInteger issuedOnLine;
-
- @FieldOrder(order = 18)
- @Asn1Optional public GeoCoordinateType pointOfSale;
-
-
-
-
-
-
- public Long getSecurityProviderNum() {
-
- return this.securityProviderNum;
- }
-
- public String getSecurityProviderIA5() {
-
- return this.securityProviderIA5;
- }
-
- public Long getIssuerNum() {
-
- return this.issuerNum;
- }
-
- public String getIssuerIA5() {
-
- return this.issuerIA5;
- }
-
- public Long getIssuingYear() {
-
- return this.issuingYear;
- }
-
- public Long getIssuingDay() {
-
- return this.issuingDay;
- }
-
- public Long getIssuingTime() {
-
- return this.issuingTime;
- }
-
- public String getIssuerName() {
-
- return this.issuerName;
- }
-
- public Boolean getSpecimen() {
-
- return this.specimen;
- }
-
- public Boolean getSecurePaperTicket() {
-
- return this.securePaperTicket;
- }
-
- public Boolean getActivated() {
-
- return this.activated;
- }
-
- public String getCurrency() {
-
- if (currency == null || currency.length() == 0){
- return "EUR";
- }
-
- return this.currency;
- }
-
- public Long getCurrencyFract() {
-
- if (currencyFract == null) {
- return new Long(2);
- }
- return this.currencyFract;
- }
-
- public String getIssuerPNR() {
-
- return this.issuerPNR;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public Long getIssuedOnTrainNum() {
-
- return Asn1BigInteger.toLong(issuedOnTrainNum);
- }
-
- public String getIssuedOnTrainIA5() {
-
- return this.issuedOnTrainIA5;
- }
-
- public Long getIssuedOnLine() {
-
- return Asn1BigInteger.toLong(issuedOnLine);
- }
-
- public GeoCoordinateType getPointOfSale() {
-
- return this.pointOfSale;
- }
-
- public void setSecurityProviderNum(Long securityProviderNum) {
-
- this.securityProviderNum = securityProviderNum;
- }
-
- public void setSecurityProviderIA5(String securityProviderIA5) {
-
- this.securityProviderIA5 = securityProviderIA5;
- }
-
- public void setIssuerNum(Long issuerNum) {
-
- this.issuerNum = issuerNum;
- }
-
- public void setIssuerIA5(String issuerIA5) {
-
- this.issuerIA5 = issuerIA5;
- }
-
- public void setIssuingYear(Long issuingYear) {
-
- this.issuingYear = issuingYear;
- }
-
- public void setIssuingDay(Long issuingDay) {
-
- this.issuingDay = issuingDay;
- }
-
- public void setIssuingTime(Long issuingTime) {
-
- this.issuingTime = issuingTime;
- }
-
- public void setIssuerName(String issuerName) {
-
- this.issuerName = issuerName;
- }
-
- public void setSpecimen(Boolean specimen) {
-
- this.specimen = specimen;
- }
-
- public void setSecurePaperTicket(Boolean securePaperTicket) {
-
- this.securePaperTicket = securePaperTicket;
- }
-
- public void setActivated(Boolean activated) {
-
- this.activated = activated;
- }
-
- public void setCurrency(String currency) {
-
- this.currency = currency;
- }
-
- public void setCurrencyFract(Long currencyFract) {
-
- this.currencyFract = currencyFract;
- }
-
- public void setIssuerPNR(String issuerPNR) {
-
- this.issuerPNR = issuerPNR;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setIssuedOnTrainNum(Long issuedOnTrainNum) {
-
- this.issuedOnTrainNum = Asn1BigInteger.toAsn1(issuedOnTrainNum);
- }
-
- public void setIssuedOnTrainIA5(String issuedOnTrainIA5) {
-
- this.issuedOnTrainIA5 = issuedOnTrainIA5;
- }
-
- public void setIssuedOnLine(Long issuedOnLine) {
-
- this.issuedOnLine = Asn1BigInteger.toAsn1(issuedOnLine);
- }
-
- public void setPointOfSale(GeoCoordinateType pointOfSale) {
-
- this.pointOfSale = pointOfSale;
- }
-
- public void setIssuingDate(Date date){
-
- if (date == null) {
- date = Calendar.getInstance().getTime();
- }
-
- Calendar cal = Calendar.getInstance();
- cal.setTime(date);
-
- this.issuingYear = new Long( cal.get(Calendar.YEAR));
- this.issuingDay = new Long (cal.get(Calendar.DAY_OF_YEAR));
- int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE);
- if (time > 0) {
- this.issuingTime = new Long (time );
- }
-
- }
-
- public Date getIssuingDate() {
-
- if (this.issuingYear == null || this.issuingDay == null) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.issuingYear.intValue());
- cal.set(Calendar.DAY_OF_YEAR, this.issuingDay.intValue());
-
- if (this.issuingTime != null) {
-
- int hours = this.issuingTime.intValue() / 60;
- int minutes = this.issuingTime.intValue() % 60;
- cal.set(Calendar.HOUR_OF_DAY, hours);
- cal.set(Calendar.MINUTE,minutes);
-
- }
-
- return cal.getTime();
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/LineType.java b/src/org/uic/barcode/ticket/api/asn/omv2/LineType.java
deleted file mode 100644
index fff4499..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/LineType.java
+++ /dev/null
@@ -1,185 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.OctetString;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfUnrestrictedLong;
-
-@Sequence
-@HasExtensionMarker
-
-public class LineType extends Object {
- public LineType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long carrierNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String carrierIA5;
-
- @FieldOrder(order = 2)
- @Asn1Optional public SequenceOfUnrestrictedLong lineId;
-
- @FieldOrder(order = 3)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=9999999)
- @Asn1Optional public Long entryStationNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String entryStationIA5;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=0,maxValue=9999999)
- @Asn1Optional public Long terminatingStationNum;
-
- @FieldOrder(order = 7)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String terminatingStationIA5;
-
- @FieldOrder(order = 8)
- @Asn1Optional public Asn1BigInteger city;
-
- @FieldOrder(order = 9)
- @Asn1Optional public OctetString binaryZoneId;
-
-
-
- public Long getCarrierNum() {
-
- return this.carrierNum;
- }
-
- public String getCarrierIA5() {
-
- return this.carrierIA5;
- }
-
- public SequenceOfUnrestrictedLong getLineId() {
-
- return this.lineId;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getEntryStationNum() {
-
- return this.entryStationNum;
- }
-
- public String getEntryStationIA5() {
-
- return this.entryStationIA5;
- }
-
- public Long getTerminatingStationNum() {
-
- return this.terminatingStationNum;
- }
-
- public String getTerminatingStationIA5() {
-
- return this.terminatingStationIA5;
- }
-
- public Long getCity() {
-
- return Asn1BigInteger.toLong(this.city);
- }
-
- public byte[] getBinaryZoneId() {
-
- return binaryZoneId.toByteArray();
- }
-
- public void setCarrierNum(Long carrierNum) {
-
- this.carrierNum = carrierNum;
- }
-
- public void setCarrierIA5(String carrierIA5) {
-
- this.carrierIA5 = carrierIA5;
- }
-
- public void setLineId(SequenceOfUnrestrictedLong lineId) {
-
- this.lineId = lineId;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setEntryStationNum(Long entryStationNum) {
-
- this.entryStationNum = entryStationNum;
- }
-
- public void setEntryStationIA5(String entryStationIA5) {
-
- this.entryStationIA5 = entryStationIA5;
- }
-
- public void setTerminatingStationNum(Long terminatingStationNum) {
-
- this.terminatingStationNum = terminatingStationNum;
- }
-
- public void setTerminatingStationIA5(String terminatingStationIA5) {
-
- this.terminatingStationIA5 = terminatingStationIA5;
- }
-
- public void setCity(Long city) {
-
- this.city = Asn1BigInteger.toAsn1(city);
- }
-
- public void setBinaryZoneId(byte[] binaryZoneId) {
-
- this.binaryZoneId = new OctetString(binaryZoneId);
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/LinkMode.java b/src/org/uic/barcode/ticket/api/asn/omv2/LinkMode.java
deleted file mode 100644
index f4e7635..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/LinkMode.java
+++ /dev/null
@@ -1,39 +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 org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum LinkMode {
- issuedTogether("issuedTogether"),
- onlyValidInCombination("onlyValidInCombination");
-
- public String text;
-
- LinkMode(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/LoadingDeckType.java b/src/org/uic/barcode/ticket/api/asn/omv2/LoadingDeckType.java
deleted file mode 100644
index 8662877..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/LoadingDeckType.java
+++ /dev/null
@@ -1,38 +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;
-
-
-public enum LoadingDeckType {
- unspecified("unspecified"),
- upper("upper"),
- lower("lower");
-
- public String text;
-
- LoadingDeckType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/LuggageRestrictionType.java b/src/org/uic/barcode/ticket/api/asn/omv2/LuggageRestrictionType.java
deleted file mode 100644
index caa1caa..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/LuggageRestrictionType.java
+++ /dev/null
@@ -1,88 +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 org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-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.Sequence;
-
-@Sequence
-@HasExtensionMarker
-public class LuggageRestrictionType extends Object {
- public LuggageRestrictionType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=0,maxValue=99)
- @Asn1Default(value="3")
- @Asn1Optional public Long maxHandLuggagePieces;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=0,maxValue=99)
- @Asn1Default(value="1")
- @Asn1Optional public Long maxNonHandLuggagePieces;
-
- @FieldOrder(order = 2)
- @Asn1Optional public SequenceOfRegisteredLuggageType registeredLuggage;
-
-
- public void setRegisteredLuggage(
- SequenceOfRegisteredLuggageType registeredLuggage) {
- this.registeredLuggage = registeredLuggage;
- }
-
- public Long getMaxHandLuggagePieces() {
-
- if (maxHandLuggagePieces == null) {
- return new Long(3);
- }
-
- return this.maxHandLuggagePieces;
- }
-
- public Long getMaxNonHandLuggagePieces() {
-
- if (maxNonHandLuggagePieces == null) {
- return new Long(1);
- }
-
- return this.maxNonHandLuggagePieces;
- }
-
- public SequenceOfRegisteredLuggageType getRegisteredLuggage() {
-
- return this.registeredLuggage;
- }
-
- public void setMaxHandLuggagePieces(Long maxHandLuggagePieces) {
-
- this.maxHandLuggagePieces = maxHandLuggagePieces;
- }
-
- public void setMaxNonHandLuggagePieces(Long maxNonHandLuggagePieces) {
-
- this.maxNonHandLuggagePieces = maxNonHandLuggagePieces;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/OpenTicketData.java b/src/org/uic/barcode/ticket/api/asn/omv2/OpenTicketData.java
deleted file mode 100644
index 9900640..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/OpenTicketData.java
+++ /dev/null
@@ -1,678 +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.ArrayList;
-import java.util.Collection;
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.asn.omv2.SequenceOfActivatedDays;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class OpenTicketData extends Object {
- public OpenTicketData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=65535)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @Asn1Optional public Asn1BigInteger externalIssuerId;
-
- @FieldOrder(order = 7)
- @Asn1Optional public Asn1BigInteger issuerAutorizationId;
-
- @FieldOrder(order = 8)
- public Boolean returnIncluded = false;
-
- @FieldOrder(order = 9)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 10)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 11)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 13)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 14)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 15)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- @FieldOrder(order = 16)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String validRegionDesc;
-
- @FieldOrder(order = 17)
- @Asn1Optional public SequenceOfRegionalValidityType validRegion;
-
- @FieldOrder(order = 18)
- @Asn1Optional public ReturnRouteDescriptionType returnDescription;
-
- @FieldOrder(order = 19)
- @Asn1Default(value = "0")
- @IntRange(minValue=-1,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 20)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 21)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 22)
- @Asn1Default(value = "0")
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 23)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 24)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- @FieldOrder(order = 25)
- @Asn1Optional public SequenceOfActivatedDays activatedDay;
-
- @FieldOrder(order = 26)
- @Asn1Default(value="second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 27)
- @SizeRange(minValue = 1, maxValue = 2)
- @Asn1Optional public String serviceLevel;
-
- @FieldOrder(order = 28)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public SequenceOfCarrierNum carrierNum;
-
- @FieldOrder(order = 29)
- @Asn1Optional public SequenceOfStringIA5 carrierIA5;
-
- @FieldOrder(order = 30)
- @Asn1Optional public SequenceOfServiceBrands includedServiceBrands;
-
- @FieldOrder(order = 31)
- @Asn1Optional public SequenceOfServiceBrands excludedServiceBrands;
-
- @FieldOrder(order = 32)
- @Asn1Optional public SequenceOfTariffType tariffs;
-
- @FieldOrder(order = 33)
- @Asn1Optional Asn1BigInteger price;
-
- @FieldOrder(order = 34)
- @Asn1Optional SequenceOfVatDetail vatDetails;
-
- @FieldOrder(order = 35)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 36)
- @Asn1Optional public SequenceOfIncludedOpenTicketType includedAddOns;
-
- @FieldOrder(order = 37)
- @Asn1Optional public LuggageRestrictionType luggage;
-
- @FieldOrder(order = 38)
- @Asn1Optional public SequenceOfTransportTypes includedTransportTypes;
-
- @FieldOrder(order = 39)
- @Asn1Optional public SequenceOfTransportTypes excludedTransportTypes;
-
- @FieldOrder(order = 40)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
- public Long getReferenceNum() {
- return Asn1BigInteger.toLong(this.referenceNum);
- }
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getExtIssuerId() {
-
- return Asn1BigInteger.toLong(externalIssuerId);
- }
-
- public Long getIssuerAutorizationId() {
-
- return Asn1BigInteger.toLong(issuerAutorizationId);
- }
-
- public Boolean getReturnIncluded() {
-
- return this.returnIncluded;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
-
- return this.stationCodeTable;
- }
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public String getValidRegionDesc() {
-
- return this.validRegionDesc;
- }
-
- public List getValidRegion() {
-
- return this.validRegion;
- }
-
- public ReturnRouteDescriptionType getReturnDescription() {
-
- return this.returnDescription;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public List getActivatedDay() {
-
- return this.activatedDay;
- }
-
- public TravelClassType getClassCode() {
-
- if (classCode == null) {
- return TravelClassType.second;
- }
-
- return this.classCode;
- }
-
- public String getServiceLevel() {
-
- return this.serviceLevel;
- }
-
- public List getCarriersNum() {
-
- return this.carrierNum;
- }
-
- public List getCarriersIA5() {
-
- return this.carrierIA5;
- }
-
- public List getIncludedServiceBrands() {
-
- return this.includedServiceBrands;
- }
-
- public List getExcludedServiceBrands() {
-
- return this.excludedServiceBrands;
- }
-
- public List getTariffs() {
-
- return this.tariffs;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public List getIncludedAddOns() {
-
- return this.includedAddOns;
- }
-
- public LuggageRestrictionType getLuggage() {
-
- return this.luggage;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceNum(Long referenceNum) {
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
- this.productIdIA5 = productIdIA5;
- }
-
- public void setExtIssuerId(Long extIssuerId) {
- this.externalIssuerId = Asn1BigInteger.toAsn1(extIssuerId);
- }
-
- public void setIssuerAutorizationId(Long issuerAutorizationId) {
-
- this.issuerAutorizationId = Asn1BigInteger.toAsn1(issuerAutorizationId);
- }
-
- public void setReturnIncluded(Boolean returnIncluded) {
- this.returnIncluded = returnIncluded;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setFromStationNum(Long fromStationNum) {
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
- public void setValidRegionDesc(String validRegionDesc) {
- this.validRegionDesc = validRegionDesc;
- }
-
- public void setValidRegion(SequenceOfRegionalValidityType validRegion) {
- this.validRegion = validRegion;
- }
-
- public void setReturnDescription(ReturnRouteDescriptionType returnDescription) {
- this.returnDescription = returnDescription;
- }
-
- public void setValidFromDay(Long validFromDay) {
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
- this.validUntilTime = validUntilTime;
- }
-
- public void setActivatedDay(SequenceOfActivatedDays activatedDay) {
- this.activatedDay = activatedDay;
- }
-
- public void setClassCode(TravelClassType classCode) {
- this.classCode = classCode;
- }
-
- public void setServiceLevel(String serviceLevel) {
- this.serviceLevel = serviceLevel;
- }
-
- public void setCarriersNum(SequenceOfCarrierNum carriersNum) {
-
- this.carrierNum = carriersNum;
- }
-
- public void setCarriersIA5(SequenceOfStringIA5 carriersIA5) {
- this.carrierIA5 = carriersIA5;
- }
-
- public void setIncludedServiceBrands(SequenceOfServiceBrands includedServiceBrands) {
- this.includedServiceBrands = includedServiceBrands;
- }
-
- public void setExcludedServiceBrands(SequenceOfServiceBrands excludedServiceBrands) {
- this.excludedServiceBrands = excludedServiceBrands;
- }
-
-
- public SequenceOfTransportTypes getIncludedTransportTypes() {
- return includedTransportTypes;
- }
-
- public void setIncludedTransportTypes(SequenceOfTransportTypes includedTransportTypes) {
- this.includedTransportTypes = includedTransportTypes;
- }
-
- public SequenceOfTransportTypes getExcludedTransportTypes() {
- return excludedTransportTypes;
- }
-
- public void setExcludedTransportTypes(SequenceOfTransportTypes excludedTransportTypes) {
- this.excludedTransportTypes = excludedTransportTypes;
- }
-
- public void setTariffs(SequenceOfTariffType tariffs) {
- this.tariffs = tariffs;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setIncludedAddOns(SequenceOfIncludedOpenTicketType includedAddOns) {
- this.includedAddOns = includedAddOns;
- }
-
- public void setLuggage(LuggageRestrictionType luggage) {
- this.luggage = luggage;
- }
-
- public void setExtension(ExtensionData extension) {
- this.extension = extension;
- }
-
- public Long getPrice() {
- return Asn1BigInteger.toLong(price);
- }
-
- public void setPrice(Long price) {
- this.price = Asn1BigInteger.toAsn1(price);
- }
-
- public SequenceOfVatDetail getVatDetails() {
- return vatDetails;
- }
-
- public void setVatDetails(SequenceOfVatDetail vatDetails) {
- this.vatDetails = vatDetails;
- }
-
- public void addVatDetail(VatDetailType vatDetail) {
- if (this.vatDetails == null) {
- this.vatDetails = new SequenceOfVatDetail();
- }
- this.vatDetails.add(vatDetail);
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
-
- public void addActivatedDays(Collection days) {
-
- if (days == null || days.isEmpty()) return;
-
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
-
- for (Long l : days) {
- this.activatedDay.add(l);
- }
-
- }
-
- public void addActivatedDay(Date issuingDate, Date day){
-
- Long dayDiff = DateTimeUtils.getDateDifference(issuingDate, day);
-
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
-
- if (dayDiff != null) {
- this.activatedDay.add(dayDiff);
- }
-
- }
-
- /**
- * Gets the activated days.
- *
- * @param issuingDate the issuing date
- * @return the activated days
- */
- public Collection getActivatedDays(Date issuingDate) {
-
- if (this.activatedDay == null) return null;
-
- ArrayList dates = new ArrayList();
-
- for (Long diff: this.getActivatedDay()) {
-
- Date day = DateTimeUtils.getDate(this.getValidFromDate(issuingDate), diff, null);
-
- if (day != null) {
- dates.add(day);
- }
-
- }
-
- return dates;
-
- }
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ParkingGroundData.java b/src/org/uic/barcode/ticket/api/asn/omv2/ParkingGroundData.java
deleted file mode 100644
index 0eec185..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ParkingGroundData.java
+++ /dev/null
@@ -1,364 +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.Date;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class ParkingGroundData extends Object {
- public ParkingGroundData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.IA5String)
- public String parkingGroundId = "";
-
- @FieldOrder(order = 3)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long fromParkingDate;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long toParkingDate;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=0,maxValue=65535)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 8)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String accessCode;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.UTF8String)
- public String location;
-
- @FieldOrder(order = 11)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long stationNum;
-
- @FieldOrder(order = 13)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String stationIA5;
-
- @FieldOrder(order = 14)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String specialInformation;
-
- @FieldOrder(order = 15)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String entryTrack;
-
- @FieldOrder(order = 16)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String numberPlate;
-
- @FieldOrder(order = 17)
- @Asn1Optional Asn1BigInteger price;
-
- @FieldOrder(order = 18)
- @Asn1Optional SequenceOfVatDetail vatDetails;
-
- @FieldOrder(order = 19)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public String getParkingGroundId() {
-
- return this.parkingGroundId;
- }
-
- public Long getFromParkingDate() {
-
- return this.fromParkingDate;
- }
-
- public Long getToParkingDate() {
-
- return this.toParkingDate;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public String getAccessCode() {
-
- return this.accessCode;
- }
-
- public String getLocation() {
-
- return this.location;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getStationNum() {
-
- return this.stationNum;
- }
-
- public String getStationIA5() {
-
- return this.stationIA5;
- }
-
- public String getSpecialInformation() {
-
- return this.specialInformation;
- }
-
- public String getEntryTrack() {
-
- return this.entryTrack;
- }
-
- public String getNumberPlate() {
-
- return this.numberPlate;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
-
- this.referenceNum = referenceNum;
- }
-
- public void setParkingGroundId(String parkingGroundId) {
-
- this.parkingGroundId = parkingGroundId;
- }
-
- public void setFromParkingDate(Long fromParkingDate) {
-
- this.fromParkingDate = fromParkingDate;
- }
-
- public void setToParkingDate(Long toParkingDate) {
-
- this.toParkingDate = toParkingDate;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setAccessCode(String accessCode) {
-
- this.accessCode = accessCode;
- }
-
- public void setLocation(String location) {
-
- this.location = location;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setStationNum(Long stationNum) {
-
- this.stationNum = stationNum;
- }
-
- public void setStationIA5(String stationIA5) {
-
- this.stationIA5 = stationIA5;
- }
-
- public void setSpecialInformation(String specialInformation) {
-
- this.specialInformation = specialInformation;
- }
-
- public void setEntryTrack(String entryTrack) {
-
- this.entryTrack = entryTrack;
- }
-
- public void setNumberPlate(String numberPlate) {
-
- this.numberPlate = numberPlate;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public Long getPrice() {
- return Asn1BigInteger.toLong(price);
- }
-
- public void setPrice(Long price) {
- this.price = Asn1BigInteger.toAsn1(price);
- }
-
- public SequenceOfVatDetail getVatDetails() {
- return vatDetails;
- }
-
- public void setVatDetails(SequenceOfVatDetail vatDetails) {
- this.vatDetails = vatDetails;
- }
-
- public void addVatDetail(VatDetailType vatDetail) {
- if (this.vatDetails == null) {
- this.vatDetails = new SequenceOfVatDetail();
- }
- this.vatDetails.add(vatDetail);
- }
-
-
- public void setParkingDate (Date fromDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.fromParkingDate = DateTimeUtils.getDateDifference(issuingDate,fromDate);
-
- }
-
- public Date getFromParkingDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.fromParkingDate, 0L);
-
- }
-
- public Date getToParkingDate(Date issuingDate) {
-
- if ( this.toParkingDate == null) return null;
-
- return DateTimeUtils.getDate(issuingDate, this.fromParkingDate + this.toParkingDate, 1439L);
-
- }
-
- public void setParkingDates(Date fromDate, Date toDate, Date issuingDate) {
-
- if (issuingDate == null || fromDate == null) return;
-
- this.fromParkingDate = DateTimeUtils.getDateDifference(issuingDate,fromDate);
-
-
- if (toDate != null) {
- this.toParkingDate = DateTimeUtils.getDateDifference(fromDate,toDate);
-
- }
-
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/PassData.java b/src/org/uic/barcode/ticket/api/asn/omv2/PassData.java
deleted file mode 100644
index dbc81c3..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/PassData.java
+++ /dev/null
@@ -1,594 +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.ArrayList;
-import java.util.Collection;
-import java.util.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.asn.omv2.SequenceOfActivatedDays;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class PassData extends Object {
- public PassData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=65535)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=1,maxValue=250)
- @Asn1Optional public Long passType;
-
- @FieldOrder(order = 7)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String passDescription;
-
- @FieldOrder(order = 8)
- @Asn1Default (value="second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=-1,maxValue=700)
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 10)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 11)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 12)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 13)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 14)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- @FieldOrder(order = 15)
- @Asn1Optional public ValidityPeriodDetailType validityPeriodDetails;
-
- @FieldOrder(order = 16)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long numberOfValidityDays;
-
- @FieldOrder(order = 17)
- @IntRange(minValue=1,maxValue=250)
- @Asn1Optional public Long numberOfPossibleTrips;
-
- @FieldOrder(order = 18)
- @IntRange(minValue=1,maxValue=250)
- @Asn1Optional public Long numberOfDaysOfTravel;
-
- @FieldOrder(order = 19)
- @Asn1Optional public SequenceOfActivatedDays activatedDay;
-
- @FieldOrder(order = 20)
- @Asn1Optional public SequenceOfCountries countries;
-
- @FieldOrder(order = 21)
- @Asn1Optional public SequenceOfCarrierNum includedCarriersNum;
-
- @FieldOrder(order = 22)
- @Asn1Optional public SequenceOfStringIA5 includedCarriersIA5;
-
- @FieldOrder(order = 23)
- @Asn1Optional public SequenceOfCarrierNum excludedCarriersNum;
-
- @FieldOrder(order = 24)
- @Asn1Optional public SequenceOfStringIA5 excludedCarriersIA5;
-
- @FieldOrder(order = 25)
- @Asn1Optional public SequenceOfServiceBrands includedServiceBrands;
-
- @FieldOrder(order = 26)
- @Asn1Optional public SequenceOfServiceBrands excludedServiceBrands;
-
- @FieldOrder(order = 27)
- @Asn1Optional public SequenceOfRegionalValidityType validRegion;
-
- @FieldOrder(order = 28)
- @Asn1Optional public SequenceOfTariffType tariffs;
-
- @FieldOrder(order = 29)
- @Asn1Optional Asn1BigInteger price;
-
- @FieldOrder(order = 30)
- @Asn1Optional SequenceOfVatDetail vatDetails;
-
- @FieldOrder(order = 31)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 32)
- @Asn1Optional public ExtensionData extension;
-
-
-
-
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getPassType() {
-
- return this.passType;
- }
-
- public String getPassDescription() {
-
- return this.passDescription;
- }
-
- public TravelClassType getClassCode() {
-
- if (classCode == null){
- return TravelClassType.second;
- }
-
- return this.classCode;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public ValidityPeriodDetailType getValidityPeriodDetails() {
-
- return this.validityPeriodDetails;
- }
-
- public Long getNumberOfValidityDays() {
-
- return this.numberOfValidityDays;
- }
-
- public Long getNumberOfPossibleTrips() {
-
- return this.numberOfPossibleTrips;
- }
-
- public Long getNumberOfDaysOfTravel() {
-
- return this.numberOfDaysOfTravel;
- }
-
- public List getActivatedDay() {
-
- return this.activatedDay;
- }
-
- public List getCountries() {
-
- return this.countries;
- }
-
- public List getIncludedCarriersNum() {
-
- return this.includedCarriersNum;
- }
-
- public List getIncludedCarriersIA5() {
-
- return this.includedCarriersIA5;
- }
-
- public List getExcludedCarriersNum() {
-
- return this.excludedCarriersNum;
- }
-
- public SequenceOfStringIA5 getExcludedCarriersIA5() {
-
- return this.excludedCarriersIA5;
- }
-
- public SequenceOfServiceBrands getIncludedServiceBrands() {
-
- return this.includedServiceBrands;
- }
-
- public SequenceOfServiceBrands getExcludedServiceBrands() {
-
- return this.excludedServiceBrands;
- }
-
- public List getValidRegion() {
-
- return this.validRegion;
- }
-
- public List getTariffs() {
-
- return this.tariffs;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
-
- this.referenceNum = referenceNum;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setPassType(Long passType) {
-
- this.passType = passType;
- }
-
- public void setPassDescription(String passDescription) {
-
- this.passDescription = passDescription;
- }
-
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- public void setValidityPeriodDetails(ValidityPeriodDetailType validityPeriodDetails) {
-
- this.validityPeriodDetails = validityPeriodDetails;
- }
-
- public void setNumberOfValidityDays(Long numberOfValidityDays) {
-
- this.numberOfValidityDays = numberOfValidityDays;
- }
-
- public void setNumberOfPossibleTrips(Long numberOfPossibleTrips) {
-
- this.numberOfPossibleTrips = numberOfPossibleTrips;
- }
-
- public void setNumberOfDaysOfTravel(Long numberOfDaysOfTravel) {
-
- this.numberOfDaysOfTravel = numberOfDaysOfTravel;
- }
-
- public void setActivatedDay(SequenceOfActivatedDays activatedDay) {
-
- this.activatedDay = activatedDay;
- }
-
- public void setCountries(SequenceOfCountries countries) {
-
- this.countries = countries;
- }
-
- public void setIncludedCarriersNum(SequenceOfCarrierNum includedCarriersNum) {
-
- this.includedCarriersNum = includedCarriersNum;
- }
-
- public void setIncludedCarriersIA5(SequenceOfStringIA5 includedCarriersIA5) {
-
- this.includedCarriersIA5 = includedCarriersIA5;
- }
-
- public void setExcludedCarriersNum(SequenceOfCarrierNum excludedCarriersNum) {
-
- this.excludedCarriersNum = excludedCarriersNum;
- }
-
- public void setExcludedCarriersIA5(SequenceOfStringIA5 excludedCarriersIA5) {
-
- this.excludedCarriersIA5 = excludedCarriersIA5;
- }
-
- public void setIncludedServiceBrands(SequenceOfServiceBrands includedServiceBrands) {
-
- this.includedServiceBrands = includedServiceBrands;
- }
-
- public void setExcludedServiceBrands(SequenceOfServiceBrands excludedServiceBrands) {
-
- this.excludedServiceBrands = excludedServiceBrands;
- }
-
- public void setValidRegion(SequenceOfRegionalValidityType validRegion) {
-
- this.validRegion = validRegion;
- }
-
- public void setTariffs(SequenceOfTariffType tariffs) {
-
- this.tariffs = tariffs;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public Long getPrice() {
- return Asn1BigInteger.toLong(price);
- }
-
- public void setPrice(Long price) {
- this.price = Asn1BigInteger.toAsn1(price);
- }
-
- public SequenceOfVatDetail getVatDetails() {
- return vatDetails;
- }
-
- public void setVatDetails(SequenceOfVatDetail vatDetails) {
- this.vatDetails = vatDetails;
- }
-
- public void addVatDetail(VatDetailType vatDetail) {
- if (this.vatDetails == null) {
- this.vatDetails = new SequenceOfVatDetail();
- }
- this.vatDetails.add(vatDetail);
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
- public void addActivatedDays(Collection days) {
-
- if (days == null || days.isEmpty()) return;
-
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
-
- for (Long l : days) {
- this.activatedDay.add(l);
- }
-
- }
-
- public void addActivatedDay(Date issuingDate, Date day){
-
- Long dayDiff = DateTimeUtils.getDateDifference(issuingDate, day);
-
- if (this.activatedDay == null) {
- this.activatedDay = new SequenceOfActivatedDays();
- }
-
- if (dayDiff != null) {
- this.activatedDay.add(dayDiff);
- }
-
- }
-
- /**
- * Gets the activated days.
- *
- * @param issuingDate the issuing date
- * @return the activated days
- */
- public Collection getActivatedDays(Date issuingDate) {
-
- if (this.activatedDay == null) return null;
-
- ArrayList dates = new ArrayList();
-
- for (Long diff: this.getActivatedDay()) {
-
- Date day = DateTimeUtils.getDate(this.getValidFromDate(issuingDate), diff, null);
-
- if (day != null) {
- dates.add(day);
- }
-
- }
-
- return dates;
-
- }
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/PassengerType.java b/src/org/uic/barcode/ticket/api/asn/omv2/PassengerType.java
deleted file mode 100644
index daaba40..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/PassengerType.java
+++ /dev/null
@@ -1,46 +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 org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum PassengerType {
- adult("adult"),
- senior("senior"),
- child("child"),
- youth("youth"),
- dog("dog"),
- bicycle("bicycle"),
- freeAddonPassenger("freeAddonPassenger"),
- freeAddonChild("freeAddonChild");
-
- public String text;
-
- PassengerType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/PlacesType.java b/src/org/uic/barcode/ticket/api/asn/omv2/PlacesType.java
deleted file mode 100644
index 1204ea6..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/PlacesType.java
+++ /dev/null
@@ -1,131 +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 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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringIA5;
-
-@Sequence
-public class PlacesType extends Object {
- public PlacesType() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String coach;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String placeString;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String placeDescription;
-
- @FieldOrder(order = 3)
- @Asn1Optional public SequenceOfStringIA5 placeIA5;
-
- @FieldOrder(order = 4)
- @Asn1Optional public SequenceOfPlaceNum placeNum;
-
-
-
- public String getCoach() {
-
- return this.coach;
- }
-
- public String getPlaceString() {
-
- return this.placeString;
- }
-
- public String getPlaceDescription() {
-
- return this.placeDescription;
- }
-
- public SequenceOfStringIA5 getPlaceIA5() {
-
- return this.placeIA5;
- }
-
- public SequenceOfPlaceNum getPlaceNum() {
-
- return this.placeNum;
- }
-
- public void setCoach(String coach) {
-
- this.coach = coach;
- }
-
- public void setPlaceString(String placeString) {
-
- this.placeString = placeString;
- }
-
- public void setPlaceDescription(String placeDescription) {
-
- this.placeDescription = placeDescription;
- }
-
- public void setPlaceIA5(SequenceOfStringIA5 placeIA5) {
-
- this.placeIA5 = placeIA5;
- }
-
- public void setPlaceNum(SequenceOfPlaceNum placeNum) {
-
- this.placeNum = placeNum;
- }
-
- @Override
- public boolean equals(Object anObject) {
- if (this == anObject) return true;
- if ((anObject == null) || (anObject.getClass() != this.getClass())) return false;
-
- PlacesType comparator = (PlacesType)anObject;
-
- if ((this.getCoach() != comparator.getCoach()) && ((this.getCoach() == null) || (! this.getCoach().equals(comparator.getCoach())))) return false;
- if ((this.getPlaceString() != comparator.getPlaceString()) && ((this.getPlaceString() == null) || (! this.getPlaceString().equals(comparator.getPlaceString())))) return false;
- if ((this.getPlaceDescription() != comparator.getPlaceDescription()) && ((this.getPlaceDescription() == null) || (! this.getPlaceDescription().equals(comparator.getPlaceDescription())))) return false;
- if ((this.getPlaceIA5() != comparator.getPlaceIA5()) && ((this.getPlaceIA5() == null) || (! this.getPlaceIA5().equals(comparator.getPlaceIA5())))) return false;
- if ((this.getPlaceNum() != comparator.getPlaceNum()) && ((this.getPlaceNum() == null) || (! this.getPlaceNum().equals(comparator.getPlaceNum())))) return false;
- return true;
- }
-
- @Override
- public int hashCode() {
- int hash = 5477;
-
- hash = 3547 * hash + (null == this.getCoach() ? 0 : this.getCoach().hashCode());
- hash = 7321 * hash + (null == this.getPlaceString() ? 0 : this.getPlaceString().hashCode());
- hash = 2083 * hash + (null == this.getPlaceDescription() ? 0 : this.getPlaceDescription().hashCode());
- hash = 881 * hash + (null == this.getPlaceIA5() ? 0 : this.getPlaceIA5().hashCode());
- hash = 6679 * hash + (null == this.getPlaceNum() ? 0 : this.getPlaceNum().hashCode());
- return hash;
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/PolygoneType.java b/src/org/uic/barcode/ticket/api/asn/omv2/PolygoneType.java
deleted file mode 100644
index a936ee6..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/PolygoneType.java
+++ /dev/null
@@ -1,58 +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 org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class PolygoneType extends Object {
- public PolygoneType() {
- }
-
- @FieldOrder(order = 0)
- public GeoCoordinateType firstEdge;
-
- @FieldOrder(order = 1)
- public SequenceOfDeltaCoordinates edges;
-
-
- public GeoCoordinateType getFirstEdge() {
-
- return this.firstEdge;
- }
-
- public SequenceOfDeltaCoordinates getEdges() {
-
- return this.edges;
- }
-
- public void setFirstEdge(GeoCoordinateType firstEdge) {
-
- this.firstEdge = firstEdge;
- }
-
- public void setEdges(SequenceOfDeltaCoordinates edges) {
-
- this.edges = edges;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/PriceTypeType.java b/src/org/uic/barcode/ticket/api/asn/omv2/PriceTypeType.java
deleted file mode 100644
index 4e849bc..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/PriceTypeType.java
+++ /dev/null
@@ -1,39 +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;
-
-public enum PriceTypeType {
- noPrice("noPrice"),
- reservationFee("reservationFee"),
- supplement("supplement"),
- travelPrice("travelPrice");
-
-
- public String text;
-
- PriceTypeType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/RegionalValidityType.java b/src/org/uic/barcode/ticket/api/asn/omv2/RegionalValidityType.java
deleted file mode 100644
index fbae3b1..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/RegionalValidityType.java
+++ /dev/null
@@ -1,100 +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 org.uic.barcode.asn1.datatypes.Choice;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-
-@Choice
-@HasExtensionMarker
-public class RegionalValidityType extends Object {
- public RegionalValidityType() {
- }
-
- @FieldOrder(order = 0)
- public TrainLinkType trainLink;
-
- @FieldOrder(order = 1)
- public ViaStationType viaStations;
-
- @FieldOrder(order = 2)
- public ZoneType zones;
-
- @FieldOrder(order = 3)
- public LineType lines;
-
- @FieldOrder(order = 4)
- public PolygoneType polygone;
-
-
- public TrainLinkType getTrainLink() {
-
- return this.trainLink;
- }
-
- public ViaStationType getViaStations() {
-
- return this.viaStations;
- }
-
- public ZoneType getZones() {
-
- return this.zones;
- }
-
- public LineType getLines() {
-
- return this.lines;
- }
-
- public PolygoneType getPolygone() {
-
- return this.polygone;
- }
-
- public void setTrainLink(TrainLinkType trainLink) {
-
- this.trainLink = trainLink;
- }
-
- public void setViaStations(ViaStationType viaStations) {
-
- this.viaStations = viaStations;
- }
-
- public void setZones(ZoneType zones) {
-
- this.zones = zones;
- }
-
- public void setLines(LineType lines) {
-
- this.lines = lines;
- }
-
- public void setPolygone(PolygoneType polygone) {
-
- this.polygone = polygone;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/RegisteredLuggageType.java b/src/org/uic/barcode/ticket/api/asn/omv2/RegisteredLuggageType.java
deleted file mode 100644
index a9d053a..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/RegisteredLuggageType.java
+++ /dev/null
@@ -1,80 +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 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;
-
-
-@Sequence
-@HasExtensionMarker
-public class RegisteredLuggageType extends Object {
- public RegisteredLuggageType() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String registrationId;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1,maxValue=99)
- @Asn1Optional public Long maxWeight;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=300)
- @Asn1Optional public Long maxSize;
-
- public String getRegistrationId() {
-
- return this.registrationId;
- }
-
- public Long getMaxWeight() {
-
- return this.maxWeight;
- }
-
- public Long getMaxSize() {
-
- return this.maxSize;
- }
-
- public void setRegistrationId(String registrationId) {
-
- this.registrationId = registrationId;
- }
-
- public void setMaxWeight(Long maxWeight) {
-
- this.maxWeight = maxWeight;
- }
-
- public void setMaxSize(Long maxSize) {
-
- this.maxSize = maxSize;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ReservationData.java b/src/org/uic/barcode/ticket/api/asn/omv2/ReservationData.java
deleted file mode 100644
index 31b3fa8..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ReservationData.java
+++ /dev/null
@@ -1,711 +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.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class ReservationData extends Object {
- public ReservationData() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger trainNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trainIA5;
-
- @FieldOrder(order = 2)
- @Asn1Default(value="0")
- @IntRange(minValue=-1,maxValue=370)
- @Asn1Optional public Long departureDate;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 4)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=0,maxValue=65535)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 8)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=0,maxValue=32000)
- @Asn1Optional public Long serviceBrand;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String serviceBrandAbrUTF8;
-
- @FieldOrder(order = 11)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String serviceBrandNameUTF8;
-
- @FieldOrder(order = 12)
- @Asn1Default("seat")
- @Asn1Optional public ServiceType service;
-
- @FieldOrder(order = 13)
- @Asn1Default("stationUICReservation")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 14)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 15)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 16)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 17)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 18)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 19)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- @FieldOrder(order = 20)
- @IntRange(minValue=0,maxValue=1440)
- public Long departureTime;
-
- @FieldOrder(order = 21)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long departureUTCOffset;
-
- @FieldOrder(order = 22)
- @IntRange(minValue=-1,maxValue=20)
- @Asn1Default(value="0")
- @Asn1Optional public Long arrivalDate;
-
- @FieldOrder(order = 23)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long arrivalTime;
-
- @FieldOrder(order = 24)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long arrivalUTCOffset;
-
- @FieldOrder(order = 25)
- @Asn1Optional public SequenceOfCarrierNum carrierNum;
-
- @FieldOrder(order = 26)
- @Asn1Optional public SequenceOfStringIA5 carrierIA5;
-
- @FieldOrder(order = 27)
- @Asn1Default("second")
- @Asn1Optional public TravelClassType classCode;
-
- @FieldOrder(order = 28)
- @SizeRange(minValue = 1, maxValue = 2)
- @Asn1Optional public String serviceLevel;
-
- @FieldOrder(order = 29)
- @Asn1Optional public PlacesType places;
-
- @FieldOrder(order = 30)
- @Asn1Optional public PlacesType additionalPlaces;
-
- @FieldOrder(order = 31)
- @Asn1Optional public PlacesType bicyclePlaces;
-
- @FieldOrder(order = 32)
- @Asn1Optional public CompartmentDetailsType compartmentDetails;
-
- @FieldOrder(order = 33)
- @IntRange(minValue=0,maxValue=200)
- @Asn1Default(value="0")
- @Asn1Optional public Long numberOfOverbooked;
-
- @FieldOrder(order = 34)
- @Asn1Optional public SequenceOfBerthDetailData berth;
-
- @FieldOrder(order = 35)
- @Asn1Optional public SequenceOfTariffType tariff;
-
- @FieldOrder(order = 36)
- @Asn1Default("travelPrice")
- @Asn1Optional public PriceTypeType priceType;
-
- @FieldOrder(order = 37)
- @Asn1Optional Asn1BigInteger price;
-
- @FieldOrder(order = 38)
- @Asn1Optional SequenceOfVatDetail vatDetails;
-
- @FieldOrder(order = 39)
- @IntRange(minValue=0,maxValue=9)
- @Asn1Default("0")
- @Asn1Optional public Long typeOfSupplement;
-
- @FieldOrder(order = 40)
- @IntRange(minValue=0,maxValue=200)
- @Asn1Default("0")
- @Asn1Optional public Long numberOfSupplements;
-
- @FieldOrder(order = 41)
- @Asn1Optional public LuggageRestrictionType luggage;
-
- @FieldOrder(order = 42)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 43)
- @Asn1Optional public ExtensionData extension;
-
- public Long getTrainNum() {
-
- return Asn1BigInteger.toLong(this.trainNum);
- }
-
- public String getTrainIA5() {
- return this.trainIA5;
- }
-
- public Long getDepartureDate() {
- return this.departureDate;
- }
-
- public String getReferenceIA5() {
- return this.referenceIA5;
- }
-
- public Long getReferenceNum() {
- return Asn1BigInteger.toLong(this.referenceNum);
- }
-
- public Long getProductOwnerNum() {
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
- return this.productIdIA5;
- }
-
- public Long getServiceBrand() {
- return this.serviceBrand;
- }
-
- public String getServiceBrandAbrUTF8() {
- return this.serviceBrandAbrUTF8;
- }
-
- public String getServiceBrandNameUTF8() {
- return this.serviceBrandNameUTF8;
- }
-
- public ServiceType getService() {
-
- if (service == null){
- return ServiceType.seat;
- }
-
- return this.service;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUICReservation;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public Long getDepartureTime() {
-
- return this.departureTime;
- }
-
- public Long getArrivalDate() {
-
- if (arrivalDate == null) {
- return new Long(0);
- }
-
- return this.arrivalDate;
- }
-
- public Long getArrivalTime() {
-
- return this.arrivalTime;
- }
-
- public List getCarrierNum() {
-
- return this.carrierNum;
- }
-
- public List getCarrierIA5() {
-
- return this.carrierIA5;
- }
-
- public TravelClassType getClassCode() {
-
-
- if (classCode == null) {
- return TravelClassType.second;
- }
-
- return this.classCode;
- }
-
- public String getServiceLevel() {
-
- return this.serviceLevel;
- }
-
- public PlacesType getPlaces() {
-
- return this.places;
- }
-
- public PlacesType getAdditionalPlaces() {
-
- return this.additionalPlaces;
- }
-
- public PlacesType getBicyclePlaces() {
-
- return this.bicyclePlaces;
- }
-
- public CompartmentDetailsType getCompartmentDetails() {
-
- return this.compartmentDetails;
- }
-
- public Long getNumberOfOverbooked() {
-
- return this.numberOfOverbooked;
- }
-
- public List getBerth() {
-
- return this.berth;
- }
-
- public List getTariff() {
-
- return this.tariff;
- }
-
- public PriceTypeType getPriceType() {
-
- if (priceType == null) {
- return PriceTypeType.travelPrice;
- }
-
- return this.priceType;
- }
-
- public Long getTypeOfSupplement() {
-
- if (typeOfSupplement == null){
- return new Long(0);
- }
-
-
- return this.typeOfSupplement;
- }
-
- public Long getNumberOfSupplements() {
-
- if (numberOfSupplements == null) {
- return new Long(0);
- }
-
- return this.numberOfSupplements;
- }
-
- public LuggageRestrictionType getLuggage() {
-
- return this.luggage;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setTrainNum(Long trainNum) {
-
- this.trainNum = Asn1BigInteger.toAsn1(trainNum);
- }
-
- public void setTrainIA5(String trainIA5) {
-
- this.trainIA5 = trainIA5;
- }
-
- public void setDepartureDate(Long departureDate) {
-
- this.departureDate = departureDate;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Long referenceNum) {
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setServiceBrand(Long serviceBrand) {
-
- this.serviceBrand = serviceBrand;
- }
-
- public void setServiceBrandAbrUTF8(String serviceBrandAbrUTF8) {
-
- this.serviceBrandAbrUTF8 = serviceBrandAbrUTF8;
- }
-
- public void setServiceBrandNameUTF8(String serviceBrandNameUTF8) {
-
- this.serviceBrandNameUTF8 = serviceBrandNameUTF8;
- }
-
- public void setService(ServiceType service) {
-
- this.service = service;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
- public void setDepartureTime(Long departureTime) {
-
- this.departureTime = departureTime;
- }
-
- public void setArrivalDate(Long arrivalDate) {
-
- this.arrivalDate = arrivalDate;
- }
-
- public void setArrivalTime(Long arrivalTime) {
-
- this.arrivalTime = arrivalTime;
- }
-
- public void setCarrierNum(SequenceOfCarrierNum carrierNum) {
-
- this.carrierNum = carrierNum;
- }
-
- public void setCarriersNum(List longs) {
- if (longs == null) return;
-
- this.carrierNum = new SequenceOfCarrierNum();
- this.carrierNum.addAll(longs);
- }
-
- public void setCarrierIA5(SequenceOfStringIA5 carrierIA5) {
-
- this.carrierIA5 = carrierIA5;
- }
-
- public void setClassCode(TravelClassType classCode) {
-
- this.classCode = classCode;
- }
-
- public void setServiceLevel(String serviceLevel) {
-
- this.serviceLevel = serviceLevel;
- }
-
- public void setPlaces(PlacesType places) {
-
- this.places = places;
- }
-
- public void setAdditionalPlaces(PlacesType additionalPlaces) {
-
- this.additionalPlaces = additionalPlaces;
- }
-
- public void setBicyclePlaces(PlacesType bicyclePlaces) {
-
- this.bicyclePlaces = bicyclePlaces;
- }
-
- public void setCompartmentDetails(CompartmentDetailsType compartmentDetails) {
-
- this.compartmentDetails = compartmentDetails;
- }
-
- public void setNumberOfOverbooked(Long numberOfOverbooked) {
-
- this.numberOfOverbooked = numberOfOverbooked;
- }
-
- public void setBerth(SequenceOfBerthDetailData berth) {
-
- this.berth = berth;
- }
-
- public void setTariff(SequenceOfTariffType tariff) {
-
- this.tariff = tariff;
- }
-
- public void setPriceType(PriceTypeType priceType) {
-
- this.priceType = priceType;
- }
-
- public void setTypeOfSupplement(Long typeOfSupplement) {
-
- this.typeOfSupplement = typeOfSupplement;
- }
-
- public void setNumberOfSupplements(Long numberOfSupplements) {
-
- this.numberOfSupplements = numberOfSupplements;
- }
-
- public void setLuggage(LuggageRestrictionType luggage) {
-
- this.luggage = luggage;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public Long getPrice() {
- return Asn1BigInteger.toLong(price);
- }
-
- public void setPrice(Long price) {
- this.price = Asn1BigInteger.toAsn1(price);
- }
-
- public SequenceOfVatDetail getVatDetails() {
- return vatDetails;
- }
-
- public void setVatDetails(SequenceOfVatDetail vatDetails) {
- this.vatDetails = vatDetails;
- }
-
- public void addVatDetail(VatDetailType vatDetail) {
- if (this.vatDetails == null) {
- this.vatDetails = new SequenceOfVatDetail();
- }
- this.vatDetails.add(vatDetail);
- }
-
- public void setDepartureArrivalDates (Date departure, Date arrival, Date issuingDate){
-
- if (issuingDate == null || departure == null) return;
-
- this.departureDate = DateTimeUtils.getDateDifference(issuingDate,departure);
- this.departureTime = DateTimeUtils.getTime(departure);
-
- if (arrival != null){
- this.arrivalDate = DateTimeUtils.getDateDifference(departure, arrival);
- this.arrivalTime = DateTimeUtils.getTime(arrival);
- }
-
- }
-
- public Date getDepartureDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.departureDate, this.departureTime);
-
- }
-
- public Date getArrivalDate(Date issuingDate){
-
- if (this.departureDate == null) {
- this.departureDate = 0L;
- }
-
- if (this.arrivalDate == null) {
- return null;
- }
-
- return DateTimeUtils.getDate(issuingDate, this.departureDate + this.arrivalDate, this.arrivalTime);
- }
-
- public Long getDepartureUTCOffset() {
- return departureUTCOffset;
- }
-
- public void setDepartureUTCOffset(Long departureUTCOffset) {
- this.departureUTCOffset = departureUTCOffset;
- }
-
- public Long getArrivalUTCOffset() {
- return arrivalUTCOffset;
- }
-
- public void setArrivalUTCOffset(Long arrivalUTCOffset) {
- this.arrivalUTCOffset = arrivalUTCOffset;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ReturnRouteDescriptionType.java b/src/org/uic/barcode/ticket/api/asn/omv2/ReturnRouteDescriptionType.java
deleted file mode 100644
index 5334b27..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ReturnRouteDescriptionType.java
+++ /dev/null
@@ -1,150 +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.List;
-
-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;
-
-@Sequence
-@HasExtensionMarker
-public class ReturnRouteDescriptionType extends Object {
- public ReturnRouteDescriptionType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 4)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String validReturnRegionDesc;
-
- @FieldOrder(order = 7)
- @Asn1Optional public SequenceOfRegionalValidityType validReturnRegion;
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public String getValidReturnRegionDesc() {
-
- return this.validReturnRegionDesc;
- }
-
- public List getValidReturnRegion() {
-
- return this.validReturnRegion;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
- public void setValidReturnRegionDesc(String validReturnRegionDesc) {
-
- this.validReturnRegionDesc = validReturnRegionDesc;
- }
-
- public void setValidReturnRegion(SequenceOfRegionalValidityType validReturnRegion) {
-
- this.validReturnRegion = validReturnRegion;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/RoofRackType.java b/src/org/uic/barcode/ticket/api/asn/omv2/RoofRackType.java
deleted file mode 100644
index c05e917..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/RoofRackType.java
+++ /dev/null
@@ -1,46 +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 org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum RoofRackType {
- norack("norack"),
- roofRailing("roofRailing"),
- luggageRack("luggageRack"),
- skiRack("skiRack"),
- boxRack("boxRack"),
- rackWithOneBox("rackWithOneBox"),
- rackWithTwoBoxes("rackWithTwoBoxes"),
- bicycleRack("bicycleRack"),
- otherRack("otherRack");
-
- public String text;
-
- RoofRackType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/RouteSectionType.java b/src/org/uic/barcode/ticket/api/asn/omv2/RouteSectionType.java
deleted file mode 100644
index e0f9c46..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/RouteSectionType.java
+++ /dev/null
@@ -1,136 +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 org.uic.barcode.asn1.datatypes.Asn1Default;
-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.IntRange;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-
-public class RouteSectionType extends Object {
- public RouteSectionType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 4)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationNameUTF8;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationNameUTF8;
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getFromStationNum() {
-
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
-
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
-
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
-
- return this.toStationIA5;
- }
-
- public String getFromStationNameUTF8() {
-
- return this.fromStationNameUTF8;
- }
-
- public String getToStationNameUTF8() {
-
- return this.toStationNameUTF8;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setFromStationNum(Long fromStationNum) {
-
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
-
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
-
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
-
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationNameUTF8(String fromStationNameUTF8) {
-
- this.fromStationNameUTF8 = fromStationNameUTF8;
- }
-
- public void setToStationNameUTF8(String toStationNameUTF8) {
-
- this.toStationNameUTF8 = toStationNameUTF8;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfActivatedDays.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfActivatedDays.java
deleted file mode 100644
index 776c774..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfActivatedDays.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=0,maxValue=370)
-public class SequenceOfActivatedDays extends Asn1SequenceOf {
- public SequenceOfActivatedDays() { super(); }
- public SequenceOfActivatedDays(Collection coll) { super(coll); }
-
- public SequenceOfActivatedDays(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfActivatedDays getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfActivatedDays(numList);
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfBerthDetailData.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfBerthDetailData.java
deleted file mode 100644
index 38482f4..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfBerthDetailData.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfBerthDetailData extends Asn1SequenceOf {
- public SequenceOfBerthDetailData() { super(); }
- public SequenceOfBerthDetailData(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCardReferenceType.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCardReferenceType.java
deleted file mode 100644
index 4e602bb..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCardReferenceType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfCardReferenceType extends Asn1SequenceOf {
- public SequenceOfCardReferenceType() { super(); }
- public SequenceOfCardReferenceType(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCarrierIA5.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCarrierIA5.java
deleted file mode 100644
index c06d78d..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCarrierIA5.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.CharacterRestriction;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-
-@RestrictedString(CharacterRestriction.IA5String)
-public class SequenceOfCarrierIA5 extends Asn1SequenceOf {
- public SequenceOfCarrierIA5() { super(); }
- public SequenceOfCarrierIA5(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCarrierNum.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCarrierNum.java
deleted file mode 100644
index 53417c2..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCarrierNum.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=1,maxValue=32000)
-public class SequenceOfCarrierNum extends Asn1SequenceOf {
- public SequenceOfCarrierNum() { super(); }
- public SequenceOfCarrierNum(Collection coll) { super(coll); }
-
-
- public SequenceOfCarrierNum(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
- public static SequenceOfCarrierNum getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfCarrierNum(numList);
- }
-
-
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCountries.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCountries.java
deleted file mode 100644
index 2dca27a..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCountries.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=1,maxValue=250)
-public class SequenceOfCountries extends Asn1SequenceOf {
- public SequenceOfCountries() { super(); }
- public SequenceOfCountries(Collection coll) { super(coll); }
-
-
- public SequenceOfCountries(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfCountries getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfCountries(numList);
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCustomerStatusType.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCustomerStatusType.java
deleted file mode 100644
index e660e0c..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfCustomerStatusType.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfCustomerStatusType extends Asn1SequenceOf {
- public SequenceOfCustomerStatusType() { super(); }
- public SequenceOfCustomerStatusType(Collection coll) { super(coll); }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfDeltaCoordinates.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfDeltaCoordinates.java
deleted file mode 100644
index 66ff4b0..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfDeltaCoordinates.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfDeltaCoordinates extends Asn1SequenceOf {
- public SequenceOfDeltaCoordinates() { super(); }
- public SequenceOfDeltaCoordinates(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfDocumentData.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfDocumentData.java
deleted file mode 100644
index 57b3ba7..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfDocumentData.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfDocumentData extends Asn1SequenceOf {
- public SequenceOfDocumentData() { super(); }
- public SequenceOfDocumentData(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfExtensionData.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfExtensionData.java
deleted file mode 100644
index 6def741..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfExtensionData.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfExtensionData extends Asn1SequenceOf {
- public SequenceOfExtensionData() { super(); }
- public SequenceOfExtensionData(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfIncludedOpenTicketType.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfIncludedOpenTicketType.java
deleted file mode 100644
index ac0efff..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfIncludedOpenTicketType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfIncludedOpenTicketType extends Asn1SequenceOf {
- public SequenceOfIncludedOpenTicketType() { super(); }
- public SequenceOfIncludedOpenTicketType(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfPlaceNum.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfPlaceNum.java
deleted file mode 100644
index 3cc6471..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfPlaceNum.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=1,maxValue=254)
-public class SequenceOfPlaceNum extends Asn1SequenceOf {
- public SequenceOfPlaceNum() { super(); }
- public SequenceOfPlaceNum(Collection coll) { super(coll); }
-
-
-
- public SequenceOfPlaceNum(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfPlaceNum getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfPlaceNum(numList);
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfRegionalValidityType.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfRegionalValidityType.java
deleted file mode 100644
index e261eb8..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfRegionalValidityType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfRegionalValidityType extends Asn1SequenceOf {
- public SequenceOfRegionalValidityType() { super(); }
- public SequenceOfRegionalValidityType(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfRegisteredLuggageType.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfRegisteredLuggageType.java
deleted file mode 100644
index e8709ce..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfRegisteredLuggageType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfRegisteredLuggageType extends Asn1SequenceOf {
- public SequenceOfRegisteredLuggageType() { super(); }
- public SequenceOfRegisteredLuggageType(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfServiceBrands.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfServiceBrands.java
deleted file mode 100644
index 4eb829b..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfServiceBrands.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=0,maxValue=32000)
-public class SequenceOfServiceBrands extends Asn1SequenceOf {
- public SequenceOfServiceBrands() { super(); }
- public SequenceOfServiceBrands(Collection coll) { super(coll); }
-
-
- public SequenceOfServiceBrands(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfServiceBrands getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfServiceBrands(numList);
- }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTariffType.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTariffType.java
deleted file mode 100644
index 5c7b773..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTariffType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfTariffType extends Asn1SequenceOf {
- public SequenceOfTariffType() { super(); }
- public SequenceOfTariffType(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTicketLinkType.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTicketLinkType.java
deleted file mode 100644
index 52005b1..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTicketLinkType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfTicketLinkType extends Asn1SequenceOf {
- public SequenceOfTicketLinkType() { super(); }
- public SequenceOfTicketLinkType(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTransportTypes.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTransportTypes.java
deleted file mode 100644
index b8e2b64..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTransportTypes.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=0,maxValue=31)
-public class SequenceOfTransportTypes extends Asn1SequenceOf {
- public SequenceOfTransportTypes() { super(); }
- public SequenceOfTransportTypes(Collection coll) { super(coll); }
-
-
- public SequenceOfTransportTypes(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfTransportTypes getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfTransportTypes(numList);
- }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTravelerId.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTravelerId.java
deleted file mode 100644
index eb9c3e2..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTravelerId.java
+++ /dev/null
@@ -1,26 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.IntRange;
-
-@IntRange(minValue=1,maxValue=254)
-public class SequenceOfTravelerId extends Asn1SequenceOf {
- public SequenceOfTravelerId() { super(); }
- public SequenceOfTravelerId(Collection coll) { super(coll); }
-
- public SequenceOfTravelerId(List numbers) {
- super();
- for (Long number: numbers){
- this.add(new Long(number));
- }
- }
-
- public static SequenceOfTravelerId getSequence(List numList) {
- if (numList == null || numList.isEmpty()) return null;
- return new SequenceOfTravelerId(numList);
- }
-
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTravelerType.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTravelerType.java
deleted file mode 100644
index e1fd312..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfTravelerType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfTravelerType extends Asn1SequenceOf {
- public SequenceOfTravelerType() { super(); }
- public SequenceOfTravelerType(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfVatDetail.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfVatDetail.java
deleted file mode 100644
index 3aae8e9..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfVatDetail.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfVatDetail extends Asn1SequenceOf {
- public SequenceOfVatDetail() { super(); }
- public SequenceOfVatDetail(Collection coll) { super(coll); }
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfViaStationType.java b/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfViaStationType.java
deleted file mode 100644
index b5bb0aa..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SequenceOfViaStationType.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.uic.barcode.ticket.api.asn.omv2;
-
-import java.util.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-
-public class SequenceOfViaStationType extends Asn1SequenceOf {
- public SequenceOfViaStationType() { super(); }
- public SequenceOfViaStationType(Collection coll) { super(coll); }
-}
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/SeriesDetailType.java b/src/org/uic/barcode/ticket/api/asn/omv2/SeriesDetailType.java
deleted file mode 100644
index d7477d1..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/SeriesDetailType.java
+++ /dev/null
@@ -1,75 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.IntRange;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class SeriesDetailType extends Object {
- public SeriesDetailType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long supplyingCarrier;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1,maxValue=99)
- @Asn1Optional public Long offerIdentification;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger series;
-
-
- public Long getSupplyingCarrier() {
-
- return this.supplyingCarrier;
- }
-
- public Long getOfferIdentification() {
-
- return this.offerIdentification;
- }
-
- public Long getSeries() {
-
- return Asn1BigInteger.toLong(this.series);
- }
-
- public void setSupplyingCarrier(Long supplyingCarrier) {
-
- this.supplyingCarrier = supplyingCarrier;
- }
-
- public void setOfferIdentification(Long offerIdentification) {
-
- this.offerIdentification = offerIdentification;
- }
-
- public void setSeries(Long series) {
-
- this.series = Asn1BigInteger.toAsn1(series);
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ServiceType.java b/src/org/uic/barcode/ticket/api/asn/omv2/ServiceType.java
deleted file mode 100644
index b13c094..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ServiceType.java
+++ /dev/null
@@ -1,38 +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;
-
-public enum ServiceType {
- seat("seat"),
- couchette("couchette"),
- berth("berth"),
- carcarriage("carcarriage");
-
- public String text;
-
- ServiceType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/StationPassageData.java b/src/org/uic/barcode/ticket/api/asn/omv2/StationPassageData.java
deleted file mode 100644
index a378bb7..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/StationPassageData.java
+++ /dev/null
@@ -1,387 +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.Date;
-import java.util.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfStringUTF8;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfUnrestrictedLong;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-@HasExtensionMarker
-public class StationPassageData extends Object {
- public StationPassageData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=65535)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String productName;
-
- @FieldOrder(order = 7)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 8)
- @Asn1Optional public SequenceOfUnrestrictedLong stationNum;
-
- @FieldOrder(order = 9)
- @Asn1Optional public SequenceOfStringIA5 stationIA5;
-
- @FieldOrder(order = 10)
- @Asn1Optional public SequenceOfStringUTF8 stationNameUTF8;
-
- @FieldOrder(order = 11)
- @Asn1Optional public SequenceOfUnrestrictedLong areaCodeNum;
-
- @FieldOrder(order = 12)
- @Asn1Optional public SequenceOfStringIA5 areaCodeIA5;
-
- @FieldOrder(order = 13)
- @Asn1Optional public SequenceOfStringUTF8 areaNameUTF8;
-
- @FieldOrder(order = 14)
- @IntRange(minValue=-1,maxValue=700)
- public Long validFromDay;
-
- @FieldOrder(order = 15)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 16)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 17)
- @Asn1Default(value="0")
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 18)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 19)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- @FieldOrder(order = 20)
- @Asn1Optional public Asn1BigInteger numberOfDaysValid;
-
- @FieldOrder(order = 21)
- @Asn1Optional public ExtensionData extension;
-
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public String getProductName() {
-
- return this.productName;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public SequenceOfUnrestrictedLong getStationNum() {
-
- return this.stationNum;
- }
-
- public List getStationIA5() {
-
- return this.stationIA5;
- }
-
- public SequenceOfStringUTF8 getStationNameUTF8() {
-
- return this.stationNameUTF8;
- }
-
- public SequenceOfUnrestrictedLong getAreaCodeNum() {
-
- return this.areaCodeNum;
- }
-
- public List getAreaCodeIA5() {
-
- return this.areaCodeIA5;
- }
-
- public List getAreaNameUTF8() {
-
- return this.areaNameUTF8;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public Long getNumberOfDaysValid() {
-
- return Asn1BigInteger.toLong(numberOfDaysValid);
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
-
- this.referenceNum = referenceNum;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setProductName(String productName) {
-
- this.productName = productName;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setStationNum(SequenceOfUnrestrictedLong stationNum) {
-
- this.stationNum = stationNum;
- }
-
- public void setStationIA5(SequenceOfStringIA5 stationIA5) {
-
- this.stationIA5 = stationIA5;
- }
-
- public void setStationNameUTF8(SequenceOfStringUTF8 stationNameUTF8) {
-
- this.stationNameUTF8 = stationNameUTF8;
- }
-
- public void setAreaCodeNum(SequenceOfUnrestrictedLong sequenceOfUnrestrictedLong) {
-
- this.areaCodeNum = sequenceOfUnrestrictedLong;
- }
-
- public void setAreaCodeIA5(SequenceOfStringIA5 areaCodeIA5) {
-
- this.areaCodeIA5 = areaCodeIA5;
- }
-
- public void setAreaNameUTF8(SequenceOfStringUTF8 areaNameUTF8) {
-
- this.areaNameUTF8 = areaNameUTF8;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- public void setNumberOfDaysValid(Long numberOfDaysValid) {
-
- this.numberOfDaysValid = Asn1BigInteger.toAsn1(numberOfDaysValid);
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TariffType.java b/src/org/uic/barcode/ticket/api/asn/omv2/TariffType.java
deleted file mode 100644
index efc5d3b..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/TariffType.java
+++ /dev/null
@@ -1,206 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-
-@Sequence
-@HasExtensionMarker
-public class TariffType extends Object {
- public TariffType() {
- }
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=200)
- @Asn1Default(value = "1")
- @Asn1Optional public Long numberOfPassengers;
-
- @FieldOrder(order = 1)
- @Asn1Optional public PassengerType passengerType;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=64)
- @Asn1Optional public Long ageBelow;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=1,maxValue=128)
- @Asn1Optional public Long ageAbove;
-
- @FieldOrder(order = 5)
- @Asn1Optional public SequenceOfTravelerId traverlerid;
-
- @FieldOrder(order = 6)
- public Boolean restrictedToCountryOfResidence;
-
- @FieldOrder(order = 7)
- @Asn1Optional public RouteSectionType restrictedToRouteSection;
-
- @FieldOrder(order = 8)
- @Asn1Optional public SeriesDetailType seriesDataDetails;
-
- @FieldOrder(order = 9)
- @Asn1Optional public Asn1BigInteger tariffIdNum;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String tariffIdIA5;
-
- @FieldOrder(order = 11)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String tariffDesc;
-
- @FieldOrder(order = 12)
- @Asn1Optional public SequenceOfCardReferenceType reductionCard;
-
-
-
- public Long getNumberOfPassengers() {
-
- if (numberOfPassengers == null) {
- return new Long(1);
- }
-
- return this.numberOfPassengers;
- }
-
- public PassengerType getPassengerType() {
-
- return this.passengerType;
- }
-
- public Long getAgeBelow() {
-
- return this.ageBelow;
- }
-
- public Long getAgeAbove() {
-
- return this.ageAbove;
- }
-
- public SequenceOfTravelerId getTraverlerid() {
-
- return this.traverlerid;
- }
-
- public Boolean getRestrictedToCountryOfResidence() {
-
- return this.restrictedToCountryOfResidence;
- }
-
- public RouteSectionType getRestrictedToRouteSection() {
-
- return this.restrictedToRouteSection;
- }
-
- public SeriesDetailType getSeriesDataDetails() {
-
- return this.seriesDataDetails;
- }
-
- public Long getTariffIdNum() {
-
- return Asn1BigInteger.toLong(this.tariffIdNum);
- }
-
- public String getTariffIdIA5() {
-
- return this.tariffIdIA5;
- }
-
- public String getTariffDesc() {
-
- return this.tariffDesc;
- }
-
- public SequenceOfCardReferenceType getReductionCard() {
-
- return this.reductionCard;
- }
-
- public void setNumberOfPassengers(Long numberOfPassengers) {
-
- this.numberOfPassengers = numberOfPassengers;
- }
-
- public void setPassengerType(PassengerType passengerType) {
-
- this.passengerType = passengerType;
- }
-
- public void setAgeBelow(Long ageBelow) {
-
- this.ageBelow = ageBelow;
- }
-
- public void setAgeAbove(Long ageAbove) {
-
- this.ageAbove = ageAbove;
- }
-
- public void setTraverlerid(SequenceOfTravelerId traverlerid) {
-
- this.traverlerid = traverlerid;
- }
-
- public void setRestrictedToCountryOfResidence(Boolean restrictedToCountryOfResidence) {
-
- this.restrictedToCountryOfResidence = restrictedToCountryOfResidence;
- }
-
- public void setRestrictedToRouteSection(RouteSectionType restrictedToRouteSection) {
-
- this.restrictedToRouteSection = restrictedToRouteSection;
- }
-
- public void setSeriesDataDetails(SeriesDetailType seriesDataDetails) {
-
- this.seriesDataDetails = seriesDataDetails;
- }
-
- public void setTariffIdNum(Long tariffIdNum) {
-
- this.tariffIdNum = Asn1BigInteger.toAsn1(tariffIdNum);
- }
-
- public void setTariffIdIA5(String tariffIdIA5) {
-
- this.tariffIdIA5 = tariffIdIA5;
- }
-
- public void setTariffDesc(String tariffDesc) {
-
- this.tariffDesc = tariffDesc;
- }
-
- public void setReductionCard(SequenceOfCardReferenceType reductionCard) {
-
- this.reductionCard = reductionCard;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TicketDetailData.java b/src/org/uic/barcode/ticket/api/asn/omv2/TicketDetailData.java
deleted file mode 100644
index 4cdac60..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/TicketDetailData.java
+++ /dev/null
@@ -1,190 +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 org.uic.barcode.asn1.datatypes.Choice;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@Choice
-@HasExtensionMarker
-public class TicketDetailData extends Object {
- public TicketDetailData() {
- }
-
- @FieldOrder(order = 0)
- public ReservationData reservation;
-
- @FieldOrder(order = 1)
- public CarCarriageReservationData carCarriageReservation;
-
- @FieldOrder(order = 2)
- public OpenTicketData openTicket;
-
- @FieldOrder(order = 3)
- public PassData pass;
-
- @FieldOrder(order = 4)
- public VoucherData voucher;
-
- @FieldOrder(order = 5)
- public CustomerCardData customerCard;
-
- @FieldOrder(order = 6)
- public CountermarkData counterMark;
-
- @FieldOrder(order = 7)
- public ParkingGroundData parkingGround;
-
- @FieldOrder(order = 8)
- public FIPTicketData fipTicket;
-
- @FieldOrder(order = 9)
- public StationPassageData stationPassage;
-
- @FieldOrder(order = 10)
- public DelayConfirmation delayConfirmation;
-
- @FieldOrder(order = 11)
- public ExtensionData extension;
-
- public ReservationData getReservation() {
-
- return this.reservation;
- }
-
- public CarCarriageReservationData getCarCarriageReservation() {
-
- return this.carCarriageReservation;
- }
-
- public OpenTicketData getOpenTicket() {
-
- return this.openTicket;
- }
-
- public PassData getPass() {
-
- return this.pass;
- }
-
- public VoucherData getVoucher() {
-
- return this.voucher;
- }
-
- public CustomerCardData getCustomerCard() {
-
- return this.customerCard;
- }
-
- public CountermarkData getCounterMark() {
-
- return this.counterMark;
- }
-
- public ParkingGroundData getParkingGround() {
-
- return this.parkingGround;
- }
-
- public FIPTicketData getFipTicket() {
-
- return this.fipTicket;
- }
-
- public StationPassageData getStationPassage() {
-
- return this.stationPassage;
- }
-
- public DelayConfirmation getDelayConfirmation() {
-
- return this.delayConfirmation;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReservation(ReservationData reservation) {
-
- this.reservation = reservation;
- }
-
- public void setCarCarriageReservation(CarCarriageReservationData carCarriageReservation) {
-
- this.carCarriageReservation = carCarriageReservation;
- }
-
- public void setOpenTicket(OpenTicketData openTicket) {
-
- this.openTicket = openTicket;
- }
-
- public void setPass(PassData pass) {
-
- this.pass = pass;
- }
-
- public void setVoucher(VoucherData voucher) {
-
- this.voucher = voucher;
- }
-
- public void setCustomerCard(CustomerCardData customerCard) {
-
- this.customerCard = customerCard;
- }
-
- public void setCounterMark(CountermarkData counterMark) {
-
- this.counterMark = counterMark;
- }
-
- public void setParkingGround(ParkingGroundData parkingGround) {
-
- this.parkingGround = parkingGround;
- }
-
- public void setFipTicket(FIPTicketData fipTicket) {
-
- this.fipTicket = fipTicket;
- }
-
- public void setStationPassage(StationPassageData stationPassage) {
-
- this.stationPassage = stationPassage;
- }
-
- public void setDelayConfirmation(DelayConfirmation delayConfirmation) {
-
- this.delayConfirmation = delayConfirmation;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TicketLinkType.java b/src/org/uic/barcode/ticket/api/asn/omv2/TicketLinkType.java
deleted file mode 100644
index d1c02a6..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/TicketLinkType.java
+++ /dev/null
@@ -1,156 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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;
-
-@Sequence
-@HasExtensionMarker
-public class TicketLinkType extends Object {
- public TicketLinkType() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String issuerName;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String issuerPNR;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 6)
- @Asn1Default(value="openTicket")
- @Asn1Optional public TicketType ticketType;
-
- @FieldOrder(order = 7)
- @Asn1Default(value="issuedTogether")
- @Asn1Optional public LinkMode linkMode;
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Long getReferenceNum() {
- return Asn1BigInteger.toLong(this.referenceNum);
- }
-
- public String getIssuerName() {
-
- return this.issuerName;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public TicketType getTicketType() {
-
- if (ticketType == null) {
- return TicketType.openTicket;
- }
-
- return this.ticketType;
- }
-
- public LinkMode getLinkMode() {
-
- if (linkMode == null){
- return LinkMode.issuedTogether;
- }
-
- return this.linkMode;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Long referenceNum) {
- this.referenceNum = Asn1BigInteger.toAsn1(referenceNum);
- }
-
- public void setIssuerName(String issuerName) {
-
- this.issuerName = issuerName;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setTicketType(TicketType ticketType) {
-
- this.ticketType = ticketType;
- }
-
- public void setLinkMode(LinkMode linkMode) {
-
- this.linkMode = linkMode;
- }
-
- public String getIssuerPNR() {
- return issuerPNR;
- }
-
- public void setIssuerPNR(String issuerPNR) {
- this.issuerPNR = issuerPNR;
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TicketType.java b/src/org/uic/barcode/ticket/api/asn/omv2/TicketType.java
deleted file mode 100644
index 3787266..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/TicketType.java
+++ /dev/null
@@ -1,41 +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 org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum TicketType {
- openTicket("openTicket"),
- pass("pass"),
- reservation("reservation"),
- carCarriageReservation("carCarriageReservation");
-
- public String text;
-
- TicketType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TimeRangeType.java b/src/org/uic/barcode/ticket/api/asn/omv2/TimeRangeType.java
deleted file mode 100644
index 0c8bb90..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/TimeRangeType.java
+++ /dev/null
@@ -1,59 +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 org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.IntRange;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class TimeRangeType extends Object {
- public TimeRangeType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=0,maxValue=1439)
- public Long fromTime;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=0,maxValue=1439)
- public Long untilTime;
-
- public Long getFromTime() {
-
- return this.fromTime;
- }
-
- public Long getUntilTime() {
-
- return this.untilTime;
- }
-
- public void setFromTime(Long fromTime) {
-
- this.fromTime = fromTime;
- }
-
- public void setUntilTime(Long untilTime) {
-
- this.untilTime = untilTime;
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TokenType.java b/src/org/uic/barcode/ticket/api/asn/omv2/TokenType.java
deleted file mode 100644
index d8ac20c..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/TokenType.java
+++ /dev/null
@@ -1,92 +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 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.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.datatypesimpl.OctetString;
-
-@Sequence
-public class TokenType extends Object {
- public TokenType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Long tokenProviderNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String tokenProviderIA5;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String tokenSpecification;
-
- @FieldOrder(order = 4)
- public OctetString token;
-
- public Long getTokenProviderNum() {
-
- return this.tokenProviderNum;
- }
-
- public String getTokenProviderIA5() {
-
- return this.tokenProviderIA5;
- }
-
- public String getTokenSpecification() {
-
- return this.tokenSpecification;
- }
-
- public byte[] getToken() {
-
- return token.toByteArray();
-
- }
-
- public void setTokenProviderNum(Long tokenProviderNum) {
-
- this.tokenProviderNum = tokenProviderNum;
- }
-
- public void setTokenProviderIA5(String tokenProviderIA5) {
-
- this.tokenProviderIA5 = tokenProviderIA5;
- }
-
- public void setTokenSpecification(String tokenSpecification) {
-
- this.tokenSpecification = tokenSpecification;
- }
-
- public void setToken(byte[] token) {
-
- this.token = new OctetString(token);
-
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TrainLinkType.java b/src/org/uic/barcode/ticket/api/asn/omv2/TrainLinkType.java
deleted file mode 100644
index f269497..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/TrainLinkType.java
+++ /dev/null
@@ -1,185 +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.Date;
-
-import org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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.IntRange;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-public class TrainLinkType extends Object {
- public TrainLinkType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public Asn1BigInteger trainNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String trainIA5;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Optional public Long travelDate;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=0,maxValue=1440)
- @Asn1Optional public Long departureTime;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long departureUTCOffset;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long fromStationNum;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String fromStationIA5;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long toStationNum;
-
- @FieldOrder(order = 8)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String toStationIA5;
-
- @FieldOrder(order = 9)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String fromStationName;
-
- @FieldOrder(order = 10)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String toStationName;
-
- public Long getTrainNum() {
- return Asn1BigInteger.toLong(this.trainNum);
- }
-
- public String getTrainIA5() {
- return this.trainIA5;
- }
-
- public Long getTravelDate() {
- return this.travelDate;
- }
-
- public Long getDepartureTime() {
- return this.departureTime;
- }
-
- public Long getFromStationNum() {
- return this.fromStationNum;
- }
-
- public String getFromStationIA5() {
- return this.fromStationIA5;
- }
-
- public Long getToStationNum() {
- return this.toStationNum;
- }
-
- public String getToStationIA5() {
- return this.toStationIA5;
- }
-
- public String getFromStationName() {
- return this.fromStationName;
- }
-
- public String getToStationName() {
- return this.toStationName;
- }
-
- public void setTrainNum(Long trainNum) {
- this.trainNum = Asn1BigInteger.toAsn1(trainNum);
- }
-
- public void setTrainIA5(String trainIA5) {
- this.trainIA5 = trainIA5;
- }
-
- public void setTravelDate(Long travelDate) {
- this.travelDate = travelDate;
- }
-
- public void setDepartureTime(Long departureTime) {
- this.departureTime = departureTime;
- }
-
- public void setFromStationNum(Long fromStationNum) {
- this.fromStationNum = fromStationNum;
- }
-
- public void setFromStationIA5(String fromStationIA5) {
- this.fromStationIA5 = fromStationIA5;
- }
-
- public void setToStationNum(Long toStationNum) {
- this.toStationNum = toStationNum;
- }
-
- public void setToStationIA5(String toStationIA5) {
- this.toStationIA5 = toStationIA5;
- }
-
- public void setFromStationName(String fromStationName) {
- this.fromStationName = fromStationName;
- }
-
- public void setToStationName(String toStationName) {
- this.toStationName = toStationName;
- }
-
- public void setDepartureDate(Date departure, Date issuingDate){
-
- if (issuingDate == null || departure == null) return;
-
- this.travelDate = DateTimeUtils.getDateDifference(issuingDate,departure);
- this.departureTime = DateTimeUtils.getTime(departure);
- }
-
- public void setDepartureTimeZone(Date dateLocal, Date dateUTC ) {
- // -- (UTC = local + offset * 15 Minutes)
- this.departureUTCOffset = new Long(dateLocal.getTime() - dateUTC.getTime()) / (1000 * 60 * 15);
- }
-
- public Date getDepartureDate(Date issuingDate){
- return DateTimeUtils.getDate(issuingDate, this.travelDate, this.departureTime);
- }
-
- public Date getUTCDepartureDate(Date issuingDate){
- return DateTimeUtils.getUTCDate(issuingDate, this.travelDate, this.departureTime, this.departureUTCOffset);
- }
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TravelClassType.java b/src/org/uic/barcode/ticket/api/asn/omv2/TravelClassType.java
deleted file mode 100644
index 01aa09f..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/TravelClassType.java
+++ /dev/null
@@ -1,50 +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 org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-
-@HasExtensionMarker
-public enum TravelClassType {
- notApplicabel("notApplicabel"),
- first("first"),
- second("second"),
- tourist("tourist"),
- comfort("comfort"),
- premium("premium"),
- business("business"),
- all("all"),
- premiumFirst("premiumFirst"),
- standardFirst("standardFirst"),
- premiumSecond("premiumSecond"),
- standardSecond("standardSecond");
-
-
- public String text;
-
- TravelClassType(String text) {
- this.text = text;
- }
-
- public String toString(){
- return text;
- }
-}
-
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/TravelerData.java b/src/org/uic/barcode/ticket/api/asn/omv2/TravelerData.java
deleted file mode 100644
index 53d6019..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/TravelerData.java
+++ /dev/null
@@ -1,82 +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.List;
-
-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.FixedSize;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-@HasExtensionMarker
-public class TravelerData extends Object {
- public TravelerData() {
- }
- @FieldOrder(order = 0)
- @Asn1Optional public SequenceOfTravelerType traveler;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @FixedSize(2)
- @Asn1Optional public String preferedLanguage;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String groupName;
-
-
- public List getTraveler() {
-
- return this.traveler;
- }
-
- public String getPreferedLanguage() {
-
- return this.preferedLanguage;
- }
-
- public String getGroupName() {
-
- return this.groupName;
- }
-
- public void setTraveler(SequenceOfTravelerType traveler) {
-
- this.traveler = traveler;
- }
-
- public void setPreferedLanguage(String preferedLanguage) {
-
- this.preferedLanguage = preferedLanguage;
- }
-
- public void setGroupName(String groupName) {
-
- this.groupName = groupName;
- }
-
-
-
-}
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();
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/UicRailTicketData.java b/src/org/uic/barcode/ticket/api/asn/omv2/UicRailTicketData.java
deleted file mode 100644
index 31fddba..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/UicRailTicketData.java
+++ /dev/null
@@ -1,115 +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.List;
-
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.HasExtensionMarker;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.asn1.uper.UperEncoder;
-
-@Sequence
-@HasExtensionMarker
-public class UicRailTicketData extends Object {
- public UicRailTicketData() {
- }
-
- @FieldOrder(order = 0)
- public IssuingData issuingDetail;
-
- @FieldOrder(order = 1)
- @Asn1Optional public TravelerData travelerDetail;
-
- @FieldOrder(order = 2)
- @Asn1Optional public SequenceOfDocumentData transportDocument;
-
- @FieldOrder(order = 3)
- @Asn1Optional public ControlData controlDetail;
-
- @FieldOrder(order = 4)
- @Asn1Optional public SequenceOfExtensionData extension;
-
- public IssuingData getIssuingDetail() {
-
- return this.issuingDetail;
- }
-
- public TravelerData getTravelerDetail() {
-
- return this.travelerDetail;
- }
-
- public List getTransportDocument() {
-
- return this.transportDocument;
- }
-
- public ControlData getControlDetail() {
-
- return this.controlDetail;
- }
-
- public List getExtension() {
-
- return this.extension;
- }
-
- public void setIssuingDetail(IssuingData issuingDetail) {
-
- this.issuingDetail = issuingDetail;
- }
-
- public void setTravelerDetail(TravelerData travelerDetail) {
-
- this.travelerDetail = travelerDetail;
- }
-
- public void setTransportDocument(SequenceOfDocumentData transportDocument) {
-
- this.transportDocument = transportDocument;
- }
-
- public void setControlDetail(ControlData controlDetail) {
-
- this.controlDetail = controlDetail;
- }
-
- public void setExtension(SequenceOfExtensionData extension) {
-
- this.extension = extension;
- }
-
-
- public byte[] encode(){
- return UperEncoder.encode(this);
- }
-
- public String encodeToHex(){
- return UperEncoder.hexStringFromBytes(UperEncoder.encode(this));
- }
-
-
- public static UicRailTicketData decode(byte[] bytes) {
- return UperEncoder.decode(bytes, UicRailTicketData.class);
- }
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ValidityPeriodDetailType.java b/src/org/uic/barcode/ticket/api/asn/omv2/ValidityPeriodDetailType.java
deleted file mode 100644
index dd9935b..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ValidityPeriodDetailType.java
+++ /dev/null
@@ -1,73 +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.Collection;
-
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.Asn1SequenceOf;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-@Sequence
-public class ValidityPeriodDetailType extends Object {
- public ValidityPeriodDetailType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Optional public SequenceOfValidityPeriodType validityPeriod;
-
- @FieldOrder(order = 1)
- @Asn1Optional public SequenceOfTimeRangeType excludedTimeRange;
-
-
- public class SequenceOfTimeRangeType extends Asn1SequenceOf {
- public SequenceOfTimeRangeType() { super(); }
- public SequenceOfTimeRangeType(Collection coll) { super(coll); }
- }
-
-
- public class SequenceOfValidityPeriodType extends Asn1SequenceOf {
- public SequenceOfValidityPeriodType() { super(); }
- public SequenceOfValidityPeriodType(Collection coll) { super(coll); }
- }
-
- public SequenceOfValidityPeriodType getValidityPeriod() {
-
- return this.validityPeriod;
- }
-
- public SequenceOfTimeRangeType getExcludedTimeRange() {
-
- return this.excludedTimeRange;
- }
-
- public void setValidityPeriod(SequenceOfValidityPeriodType validityPeriod) {
-
- this.validityPeriod = validityPeriod;
- }
-
- public void setExcludedTimeRange(SequenceOfTimeRangeType excludedTimeRange) {
-
- this.excludedTimeRange = excludedTimeRange;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ValidityPeriodType.java b/src/org/uic/barcode/ticket/api/asn/omv2/ValidityPeriodType.java
deleted file mode 100644
index 7b08f73..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ValidityPeriodType.java
+++ /dev/null
@@ -1,165 +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.Date;
-
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-import org.uic.barcode.asn1.datatypes.Asn1Optional;
-import org.uic.barcode.asn1.datatypes.FieldOrder;
-import org.uic.barcode.asn1.datatypes.IntRange;
-import org.uic.barcode.asn1.datatypes.Sequence;
-import org.uic.barcode.ticket.api.utils.DateTimeUtils;
-
-@Sequence
-public class ValidityPeriodType extends Object {
- public ValidityPeriodType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=0,maxValue=700)
- @Asn1Default(value="0")
- @Asn1Optional public Long validFromDay;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long validFromTime;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validFromUTCOffset;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=0,maxValue=370)
- @Asn1Default(value="0")
- @Asn1Optional public Long validUntilDay;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=1439)
- @Asn1Optional public Long validUntilTime;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=-60, maxValue=60)
- @Asn1Optional public Long validUntilUTCOffset;
-
- public Long getValidFromDay() {
-
- if (validFromDay == null) {
- return new Long(0);
- }
-
- return this.validFromDay;
- }
-
- public Long getValidFromTime() {
-
- return this.validFromTime;
- }
-
- public Long getValidUntilDay() {
-
- if (validUntilDay == null) {
- return new Long(0);
- }
-
- return this.validUntilDay;
- }
-
- public Long getValidUntilTime() {
-
- return this.validUntilTime;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidFromTime(Long validFromTime) {
-
- this.validFromTime = validFromTime;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValidUntilTime(Long validUntilTime) {
-
- this.validUntilTime = validUntilTime;
- }
-
- public void setValidityDates (Date fromDate, Date untilDate, Date issuingDate){
-
- if (issuingDate == null || fromDate == null) return;
-
- this.validFromDay = DateTimeUtils.getDateDifference(issuingDate,fromDate);
- this.validFromTime = DateTimeUtils.getTime(fromDate);
-
- if (untilDate != null){
- this.validUntilDay = DateTimeUtils.getDateDifference(fromDate, untilDate);
- this.validUntilTime = DateTimeUtils.getTime(untilDate);
- }
-
- }
-
- public Date getValidFromDate(Date issuingDate){
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay, this.validFromTime);
-
- }
-
- public Date getValidUntilDate(Date issuingDate){
-
- if (issuingDate == null) return null;
-
- if (this.validFromDay == null) {
- this.validFromDay = 0L;
- }
-
- if (this.validUntilDay == null) {
- return null;
- }
-
-
- return DateTimeUtils.getDate(issuingDate, this.validFromDay + this.validUntilDay, this.validUntilTime);
-
- }
-
- public Long getValidFromUTCOffset() {
- return validFromUTCOffset;
- }
-
- public void setValidFromUTCOffset(Long validFromUTCOffset) {
- this.validFromUTCOffset = validFromUTCOffset;
- }
-
- public Long getValidUntilUTCOffset() {
- return validUntilUTCOffset;
- }
-
- public void setValidUntilUTCOffset(Long validUntilUTCOffset) {
- this.validUntilUTCOffset = validUntilUTCOffset;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/VatDetailType.java b/src/org/uic/barcode/ticket/api/asn/omv2/VatDetailType.java
deleted file mode 100644
index adfb4e8..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/VatDetailType.java
+++ /dev/null
@@ -1,87 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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.IntRange;
-import org.uic.barcode.asn1.datatypes.RestrictedString;
-import org.uic.barcode.asn1.datatypes.Sequence;
-
-
-@Sequence
-public class VatDetailType extends Object {
- public VatDetailType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue = 1, maxValue = 999)
- public Long country;
-
- @FieldOrder(order = 1)
- @IntRange(minValue = 0, maxValue = 999)
- public Long percentage;
-
- @FieldOrder(order = 2)
- @Asn1Optional public Asn1BigInteger amount;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String vatId;
-
- public Long getCountry() {
- return country;
- }
-
- public void setCountry(Long country) {
- this.country = country;
- }
-
- public Long getPercentage() {
- return percentage;
- }
-
- public void setPercentage(Long percentage) {
- this.percentage = percentage;
- }
-
- public Long getAmount() {
- return Asn1BigInteger.toLong(amount);
- }
-
- public void setAmount(Long amount) {
- this.amount = Asn1BigInteger.toAsn1(amount);
- }
-
- public String getVatId() {
- return vatId;
- }
-
- public void setVatId(String vatId) {
- this.vatId = vatId;
- }
-
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ViaStationType.java b/src/org/uic/barcode/ticket/api/asn/omv2/ViaStationType.java
deleted file mode 100644
index 0e2ca6c..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ViaStationType.java
+++ /dev/null
@@ -1,181 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.SequenceOfStringIA5;
-
-@Sequence
-@HasExtensionMarker
-public class ViaStationType extends Object {
- public ViaStationType() {
- }
-
- @FieldOrder(order = 0)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 1)
- @IntRange(minValue=1,maxValue=9999999)
- @Asn1Optional public Long stationNum;
-
- @FieldOrder(order = 2)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String stationIA5;
-
- @FieldOrder(order = 3)
- @Asn1Optional public SequenceOfViaStationType alternativeRoutes;
-
- @FieldOrder(order = 4)
- @Asn1Optional public SequenceOfViaStationType route;
-
- @FieldOrder(order = 5)
- @Asn1Optional public Boolean border = false;
-
- @FieldOrder(order = 6)
- @Asn1Optional public SequenceOfCarrierNum carriersNum;
-
- @FieldOrder(order = 7)
- @Asn1Optional public SequenceOfStringIA5 carriersIA5;
-
- @FieldOrder(order = 8)
- @Asn1Optional public Asn1BigInteger seriesId;
-
- @FieldOrder(order = 9)
- @Asn1Optional public Asn1BigInteger routeId;
-
-
-
-
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getStationNum() {
-
- return this.stationNum;
- }
-
- public String getStationIA5() {
-
- return this.stationIA5;
- }
-
- public SequenceOfViaStationType getAlternativeRoutes() {
-
- return this.alternativeRoutes;
- }
-
- public SequenceOfViaStationType getRoute() {
-
- return this.route;
- }
-
- public Boolean getBorder() {
-
- return this.border;
- }
-
- public SequenceOfCarrierNum getCarriersNum() {
-
- return this.carriersNum;
- }
-
- public SequenceOfStringIA5 getCarriersIA5() {
-
- return this.carriersIA5;
- }
-
- public Long getSeriesId() {
-
- return Asn1BigInteger.toLong(this.seriesId);
- }
-
- public Long getRouteId() {
-
- return Asn1BigInteger.toLong(this.routeId);
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
-
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setStationNum(Long stationNum) {
-
- this.stationNum = stationNum;
- }
-
- public void setStationIA5(String stationIA5) {
-
- this.stationIA5 = stationIA5;
- }
-
- public void setAlternativeRoutes(SequenceOfViaStationType alternativeRoutes) {
-
- this.alternativeRoutes = alternativeRoutes;
- }
-
- public void setRoute(SequenceOfViaStationType route) {
-
- this.route = route;
- }
-
- public void setBorder(Boolean border) {
-
- this.border = border;
- }
-
- public void setCarriersNum(SequenceOfCarrierNum carriersNum) {
-
- this.carriersNum = carriersNum;
- }
-
- public void setCarriersIA5(SequenceOfStringIA5 carriersIA5) {
-
- this.carriersIA5 = carriersIA5;
- }
-
- public void setSeriesId(Long seriesId) {
-
- this.seriesId = Asn1BigInteger.toAsn1(seriesId);
- }
-
- public void setRouteId(Long routeId) {
-
- this.routeId = Asn1BigInteger.toAsn1(routeId);
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/VoucherData.java b/src/org/uic/barcode/ticket/api/asn/omv2/VoucherData.java
deleted file mode 100644
index 1395976..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/VoucherData.java
+++ /dev/null
@@ -1,316 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-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;
-
-
-@Sequence
-@HasExtensionMarker
-public class VoucherData extends Object {
- public VoucherData() {
- }
-
- @FieldOrder(order = 0)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String referenceIA5;
-
- @FieldOrder(order = 1)
- @Asn1Optional public Asn1BigInteger referenceNum;
-
- @FieldOrder(order = 2)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long productOwnerNum;
-
- @FieldOrder(order = 3)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productOwnerIA5;
-
- @FieldOrder(order = 4)
- @IntRange(minValue=0,maxValue=65535)
- @Asn1Optional public Long productIdNum;
-
- @FieldOrder(order = 5)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String productIdIA5;
-
- @FieldOrder(order = 6)
- @IntRange(minValue=2016,maxValue=2269)
- public Long validFromYear;
-
- @FieldOrder(order = 7)
- @IntRange(minValue=0,maxValue=370)
- public Long validFromDay;
-
- @FieldOrder(order = 8)
- @IntRange(minValue=2016,maxValue=2269)
- public Long validUntilYear;
-
- @FieldOrder(order = 9)
- @IntRange(minValue=0,maxValue=370)
- public Long validUntilDay;
-
- @FieldOrder(order = 10)
- @Asn1Optional public Long value;
-
- @FieldOrder(order = 11)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long type;
-
- @FieldOrder(order = 12)
- @RestrictedString(CharacterRestriction.UTF8String)
- @Asn1Optional public String infoText;
-
- @FieldOrder(order = 13)
- @Asn1Optional public ExtensionData extension;
-
-
- public String getReferenceIA5() {
-
- return this.referenceIA5;
- }
-
- public Asn1BigInteger getReferenceNum() {
-
- return this.referenceNum;
- }
-
- public Long getProductOwnerNum() {
-
- return this.productOwnerNum;
- }
-
- public String getProductOwnerIA5() {
-
- return this.productOwnerIA5;
- }
-
- public Long getProductIdNum() {
-
- return this.productIdNum;
- }
-
- public String getProductIdIA5() {
-
- return this.productIdIA5;
- }
-
- public Long getValidFromYear() {
-
- return this.validFromYear;
- }
-
- public Long getValidFromDay() {
-
- return this.validFromDay;
- }
-
- public Long getValidUntilYear() {
-
- return this.validUntilYear;
- }
-
- public Long getValidUntilDay() {
-
- return this.validUntilDay;
- }
-
- public Long getValue() {
-
- return this.value;
- }
-
- public Long getType() {
-
- return this.type;
- }
-
- public String getInfoText() {
-
- return this.infoText;
- }
-
- public ExtensionData getExtension() {
-
- return this.extension;
- }
-
- public void setReferenceIA5(String referenceIA5) {
-
- this.referenceIA5 = referenceIA5;
- }
-
- public void setReferenceNum(Asn1BigInteger referenceNum) {
-
- this.referenceNum = referenceNum;
- }
-
- public void setProductOwnerNum(Long productOwnerNum) {
-
- this.productOwnerNum = productOwnerNum;
- }
-
- public void setProductOwnerIA5(String productOwnerIA5) {
-
- this.productOwnerIA5 = productOwnerIA5;
- }
-
- public void setProductIdNum(Long productIdNum) {
-
- this.productIdNum = productIdNum;
- }
-
- public void setProductIdIA5(String productIdIA5) {
-
- this.productIdIA5 = productIdIA5;
- }
-
- public void setValidFromYear(Long validFromYear) {
-
- this.validFromYear = validFromYear;
- }
-
- public void setValidFromDay(Long validFromDay) {
-
- this.validFromDay = validFromDay;
- }
-
- public void setValidUntilYear(Long validUntilYear) {
-
- this.validUntilYear = validUntilYear;
- }
-
- public void setValidUntilDay(Long validUntilDay) {
-
- this.validUntilDay = validUntilDay;
- }
-
- public void setValue(Long value) {
-
- this.value = value;
- }
-
- public void setType(Long type) {
-
- this.type = type;
- }
-
- public void setInfoText(String infoText) {
-
- this.infoText = infoText;
- }
-
- public void setExtension(ExtensionData extension) {
-
- this.extension = extension;
- }
-
-
- public void setValidity (Date fromDate , Date untilDate){
-
- Calendar fromCal = Calendar.getInstance();
- fromCal.clear();
- fromCal.setTime(fromDate);
-
- this.validFromYear = new Long( fromCal.get(Calendar.YEAR));
- this.validFromDay = new Long (fromCal.get(Calendar.DAY_OF_YEAR));
-
- if (untilDate == null) return;
-
- Calendar untilCal = Calendar.getInstance();
- untilCal.clear();
- untilCal.setTime(untilDate);
-
- this.validUntilYear = new Long( untilCal.get(Calendar.YEAR));
- this.validUntilDay = new Long (untilCal.get(Calendar.DAY_OF_YEAR));
-
- }
-
-
- public void setValidFrom (Date fromDate){
-
- if (fromDate == null) return;
-
- Calendar fromCal = Calendar.getInstance();
- fromCal.clear();
- fromCal.setTime(fromDate);
-
- this.validFromYear = new Long( fromCal.get(Calendar.YEAR));
- this.validFromDay = new Long (fromCal.get(Calendar.DAY_OF_YEAR));
-
- }
-
- public void setValidUntil (Date untilDate){
-
- if (untilDate == null) return;
-
- Calendar untilCal = Calendar.getInstance();
- untilCal.clear();
- untilCal.setTime(untilDate);
-
- this.validUntilYear = new Long( untilCal.get(Calendar.YEAR));
- this.validUntilDay = new Long (untilCal.get(Calendar.DAY_OF_YEAR));
-
- }
-
- public Date getValidFrom(){
-
- if (this.validFromYear == null || this.validFromYear == 0) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- //cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.validFromYear.intValue());
- cal.set(Calendar.DAY_OF_YEAR, this.validFromDay.intValue());
- cal.set(Calendar.MINUTE,0);
- cal.set(Calendar.HOUR_OF_DAY,0);
-
- return cal.getTime();
-
- }
-
- public Date getValidUntil(){
-
- if (this.validUntilYear == null || this.validUntilYear == 0) return null;
-
- Calendar cal = Calendar.getInstance();
- cal.clear();
- //cal.setTimeZone(TimeZone.getTimeZone("UTC"));
- cal.set(Calendar.YEAR, this.validUntilYear.intValue());
- cal.set(Calendar.DAY_OF_YEAR, this.validUntilDay.intValue());
- cal.set(Calendar.MINUTE,59);
- cal.set(Calendar.HOUR_OF_DAY,23);
-
- return cal.getTime();
-
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/ZoneType.java b/src/org/uic/barcode/ticket/api/asn/omv2/ZoneType.java
deleted file mode 100644
index 3f269ee..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/ZoneType.java
+++ /dev/null
@@ -1,182 +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 org.uic.barcode.asn1.datatypes.Asn1BigInteger;
-import org.uic.barcode.asn1.datatypes.Asn1Default;
-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.datatypesimpl.OctetString;
-import org.uic.barcode.asn1.datatypesimpl.SequenceOfUnrestrictedLong;
-
-@Sequence
-@HasExtensionMarker
-
-public class ZoneType extends Object {
- public ZoneType() {
- }
-
- @FieldOrder(order = 0)
- @IntRange(minValue=1,maxValue=32000)
- @Asn1Optional public Long carrierNum;
-
- @FieldOrder(order = 1)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String carrierIA5;
-
- @FieldOrder(order = 2)
- @Asn1Default("stationUIC")
- @Asn1Optional public CodeTableType stationCodeTable;
-
- @FieldOrder(order = 3)
- @IntRange(minValue=0,maxValue=9999999)
- @Asn1Optional public Long entryStationNum;
-
- @FieldOrder(order = 4)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String entryStationIA5;
-
- @FieldOrder(order = 5)
- @IntRange(minValue=0,maxValue=9999999)
- @Asn1Optional public Long terminatingStationNum;
-
- @FieldOrder(order = 6)
- @RestrictedString(CharacterRestriction.IA5String)
- @Asn1Optional public String terminatingStationIA5;
-
- @FieldOrder(order = 7)
- @Asn1Optional public Asn1BigInteger city;
-
- @FieldOrder(order = 8)
- @Asn1Optional public SequenceOfUnrestrictedLong zoneId;
-
- @FieldOrder(order = 9)
- @Asn1Optional public OctetString binaryZoneId;
-
- @FieldOrder(order = 10)
- @Asn1Optional public String nutsCode;
-
-
- public Long getCarrierNum() {
-
- return this.carrierNum;
- }
-
- public String getCarrierIA5() {
-
- return this.carrierIA5;
- }
-
- public CodeTableType getStationCodeTable() {
-
- if (stationCodeTable == null) {
- return CodeTableType.stationUIC;
- }
-
- return this.stationCodeTable;
- }
-
- public Long getEntryStationNum() {
- return this.entryStationNum;
- }
-
- public String getEntryStationIA5() {
- return this.entryStationIA5;
- }
-
- public Long getTerminatingStationNum() {
- return this.terminatingStationNum;
- }
-
- public String getTerminatingStationIA5() {
- return this.terminatingStationIA5;
- }
-
- public Asn1BigInteger getCity() {
- return this.city;
- }
-
- public SequenceOfUnrestrictedLong getZoneId() {
- return this.zoneId;
- }
-
- public byte[] getBinaryZoneId() {
-
- return binaryZoneId.toByteArray();
-
- }
-
- public String getNutsCode() {
- return this.nutsCode;
- }
-
- public void setCarrierNum(Long carrierNum) {
- this.carrierNum = carrierNum;
- }
-
- public void setCarrierIA5(String carrierIA5) {
- this.carrierIA5 = carrierIA5;
- }
-
- public void setStationCodeTable(CodeTableType stationCodeTable) {
- this.stationCodeTable = stationCodeTable;
- }
-
- public void setEntryStationNum(Long entryStationNum) {
- this.entryStationNum = entryStationNum;
- }
-
- public void setEntryStationIA5(String entryStationIA5) {
- this.entryStationIA5 = entryStationIA5;
- }
-
- public void setTerminatingStationNum(Long terminatingStationNum) {
- this.terminatingStationNum = terminatingStationNum;
- }
-
- public void setTerminatingStationIA5(String terminatingStationIA5) {
- this.terminatingStationIA5 = terminatingStationIA5;
- }
-
- public void setCity(Asn1BigInteger city) {
- this.city = city;
- }
-
- public void setZoneId(SequenceOfUnrestrictedLong zoneId) {
- this.zoneId = zoneId;
- }
-
- public void setBinaryZoneId(byte[] binaryZoneId) {
-
- this.binaryZoneId = new OctetString(binaryZoneId);
-
- }
-
- public void setNutsCode(String nutsCode) {
- this.nutsCode = nutsCode;
- }
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/asn/omv2/uicBarcodeFCBv2.0.asn b/src/org/uic/barcode/ticket/api/asn/omv2/uicBarcodeFCBv2.0.asn
deleted file mode 100644
index 2c2eda7..0000000
--- a/src/org/uic/barcode/ticket/api/asn/omv2/uicBarcodeFCBv2.0.asn
+++ /dev/null
@@ -1,2040 +0,0 @@
--- Creator: ASN.1 Editor (http://asneditor.sourceforge.net)
--- Author: ClemensGantert
--- Created: Tue Aug 11 11:40:28 CEST 2015
-ASN-Module DEFINITIONS AUTOMATIC TAGS ::= BEGIN
-
--- imports and exports
--- EXPORTS ALL;
-
-
--- changes:
--- product id 1 bit more 65535
--- open ticket transport mode EN 1545-1
--- allowing -1 in differences of days between dates (validity of tickets crossing time zones)
-
--- ##############################################################################################
--- #
--- # Draft version 2.0 - value 2 in the UIC bar code version element
--- # (see element 2 in U_FLEX record definition in leaflet 918.9)
--- #
--- ##############################################################################################
-
-
--- ##############################################################################################
--- #
--- # Naming and encoding conventions
--- #
--- # Elements included as String and as Numeric values:
--- # Some elements are included in different formats to reduce the data size.
--- # These elements must be included only once.
--- # These elements are named with the same name and appendix
--- # Num (numeric values)
--- # IA5 (String values according to ASN IA5String (7Bit))
--- # Example:
--- # trainNum - in case of a numeric train number
--- # trainIA5 - in case of a alphanumeric train Id
--- #
--- #
--- # RICS codes must be used to encode companies (issuer, product owner, ...) where available
--- # other codes are possible based on bilateral agreements
--- # the format is kept more flexible to cover upcoming extensions of the RICS code by ERA
--- #
--- # Stations can be coded using the UIC and upcoming ERA code lists. Proprietary codes are
--- # possible based on bilateral agreements. Format: 1..9999999 or alphanumeric without
--- # special character (IA5String)
--- #
--- #
--- # ! INTEGERS must not exceed the value of 9,223,372,036,854,775,807 (64 bit) even in case
--- # ! they are unrestricted!!!
--- # !
--- # ! Some elements like ReferenceNum or cardIdNum are defined as an unrestricted integer.
--- # ! Unlike other numerical values the cardIdNum and referenceNum can be larger than a usual 32 bit Integer
--- # ! Some ASN.1 implementation tools are limited to 32 bit integers which is too small.
--- # ! Please ensure to use a tool capable of dealing with larger numbers.
--- #
--- # Optional BOOLEANs have three values: "true", "false", "unknown" = the Boolean is absent from the data.
--- #
--- #
--- # Encoding of time:
--- # time is encoded as the number of minutes of the day 0 = 00:00, 1439 = 23:59,
--- # time data elements end with "time" in their name
--- #
--- # Encoding of date:
--- # .........................................................................................................
--- # The issuing date is given in UTC, but some other date values are given in local time where the exact time zone is not known.
--- #
--- # For local dates the date is associated with the corresponding location:
--- # e.g.:
--- # valid from date -> location where the journey starts
--- # valid until date -> location where the journey covered by the ticket ends
--- #
--- # there could be rare cases where this does not provide a unique interpretation:
--- # e.g. open ticket or pass without start and end location for a collection of zones or countries with different time zones.
--- # in these cases the fare conditions must clarify the rules for these cases (e.g. by allowing to use the
--- # ticket a few hours after the end of validity).
--- #
--- # The difference in days is calculated from dates only, ignoring the time and time zone information.
--- #
--- # example 1: (31.12.2017 23:05 UTC == 01.01.2018 00:05 CET) :
--- # issuing date (UTC): 31.12.2017 23:05 == 01.01.2018 00:05 CET
--- # issuingYear = 2017
--- # issuingDay = 365
--- # issuingTime = 1385
--- # local departure date (CET): 01.01.2018 00:15 == 31.12.2017 23:15 UTC
--- # departureDate = 1 (= 01.01.2018 - 31.12.2017)
--- # departureTime = 15
--- # departureUTCOffset = -4 (UTC = local + offset * 15 Minutes)
--- #
--- #
--- # example 2: (01.01.2018 00:05 UTC == 31.12.2017 20:05 AST)
--- # issuing date (UTC): 01.01.2018 00:05 UTC == 31.12.2017 20:05 AST
--- # issuingYear = 2018
--- # issuingDay = 1
--- # issuingTime = 5
--- # local departure date (AST): 31.12.2017 22:05 AST == 1.1.2018 02:05 UTC
--- # departureDate = -1 (= 31.12.2017 - 01.01.2018)
--- # departureTime = 1325
--- # departureUTCOffset = 16 (UTC = local + offset * 15 Minutes)
--- #
--- # departureDate can become -1 with a departure west of the GMT zone only
--- #
--- #
--- #
--- #
--- #
--- #
--- # ASN.1 Extensions:
--- #
--- # The specification makes use of extension (",...").
--- # These extensions might be defined in future versions of the UIC specification
--- # Implementations must support the extension feature of ASN.1, at least they must be able to ignore extensions while decoding the data
--- # ASN.1 extensions will be defined by UIC. It is not allowed to define bilateral extensions.
--- #
--- # Bilateral Extensions:
--- # Bilateral extensions can be included in the data element "ExtensionData".
--- #
--- #
--- #
--- #########################################################################################
-
-
--- ############################################################################################
-
-
--- type assignments
-
- -- #########################################################################################
- -- the basic entry point of the data structure
- -- the data include:
- -- -issuer informations
- -- -the details of the transport document
- -- -informations required for the control process
- -- -informations on the travelers independent from the transport document
- -- -proprietary extensions
- --
- -- ##########################################################################################
- UicRailTicketData ::= SEQUENCE {
- -- data specific to the issuer
- issuingDetail IssuingData,
-
- -- data on the travelers
- travelerDetail TravelerData OPTIONAL,
-
- -- data of the transport document
- --!!! proposal: replace this by a comment in the lealet on the total size of the barcode: more than one document to be used on bilateral agreement only
- transportDocument SEQUENCE OF DocumentData OPTIONAL,
-
- -- data specific to support the ticket control process
- controlDetail ControlData OPTIONAL,
-
- -- proprietary data defined bilaterally
- extension SEQUENCE OF ExtensionData OPTIONAL
- ,...
- }
-
-
-
- -- ###########################################################################################
- -- the choice on the different transport documents that can be included in the bar code data:
- -- - reservation of seat / couchette or berths (IRT, RES, BOA)
- -- - reservation of car carriage (VET)
- -- - open ticket (NRT including NRT group ticket) (NRT, GRT, SUP, UPD, COI)
- -- - Rail passes (including Eurail, Interail and local passes) (RPT)
- -- - Voucher (TRV)
- -- - Customer Cards (including bonus cards and reduction cards)
- -- - counter marks issued for group tickets
- -- - parking ground tickets
- -- - FIP tickets
- -- - station access / station passage tickets
- -- - proprietary documents as an extension
- -- ############################################################################################
- DocumentData ::= SEQUENCE {
-
- -- token
- -- specific id to be exchanged with the ticket (e.g. id of the phone in case of tickets linked to a phone)
- token TokenType OPTIONAL,
-
- -- choice of the ticket
- ticket CHOICE
- {
-
- -- Reservation (without car carriage) (IRT and RES)
- reservation ReservationData,
-
-
- -- Reservation of car carriage
- carCarriageReservation CarCarriageReservationData,
-
- -- open ticket specification (NRT)
- openTicket OpenTicketData,
-
- -- pass specification (RPT) including Eurail and Interrail
- pass PassData,
-
- -- voucher
- voucher VoucherData,
-
- -- customer card either to identify a customer and / or to provide reductions
- customerCard CustomerCardData,
-
- -- countermark to accompagny a group ticket
- counterMark CountermarkData,
-
- -- car parking slot
- parkingGround ParkingGroundData,
-
- -- FIP duty ticket
- fipTicket FIPTicketData,
-
- -- ticket to pass the gates at a station
- stationPassage StationPassageData,
-
- -- proprietary data defined bilaterally
- extension ExtensionData,
-
- -- delay confirmation
- delayConfirmation DelayConfirmation
-
- ,...
- }
- ,...
- }
-
- -- ########################################################################################
- -- confirmation of the delay of a train
- --
- -- ########################################################################################
- DelayConfirmation ::= SEQUENCE {
-
- -- reference of the delay confirmation
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- train number of the delayed train - numeric or alphanumeric
- trainNum INTEGER OPTIONAL,
- trainIA5 IA5String OPTIONAL,
-
- -- departure date of the delayed train in local time
- -- number of year
- departureYear INTEGER (2016..2269) OPTIONAL,
- -- number of the day in the year (1.1. = 1)
- departureDay INTEGER (1..366) OPTIONAL,
- departureTime INTEGER (0..1439) OPTIONAL,
- departureUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
-
- -- station where the delay became relevant
- stationCodeTable CodeTableType DEFAULT stationUIC,
- stationNum INTEGER (1..9999999) OPTIONAL,
- stationIA5 IA5String OPTIONAL,
-
- -- delay in minutes at the mentioned station
- delay INTEGER (1..999),
-
- -- indication that the train was cancelled
- trainCancelled BOOLEAN,
-
- -- type of confirmation provided
- confirmationType ConfirmationType DEFAULT travelerDelayConfirmation,
-
- -- affected original ticket(s)
- affectedTickets SEQUENCE OF TicketLinkType OPTIONAL,
-
- -- info text
- infoText UTF8String OPTIONAL,
-
- -- proprietary data defined bilaterally
- extension ExtensionData OPTIONAL
- ,...
- }
-
- ConfirmationType ::= ENUMERATED {
- trainDelayConfirmation (0), -- confirmation of train delay, whether the traveler was on board in unconfirmed
- travelerDelayConfirmation (1), -- confirmation that the traveler was on board of the delayed train
- trainLinkedTicketDelay (2) -- confirmation that a ticket linked to the delayed train was issued
- ,...
- }
-
-
- -- ########################################################################################
- -- Details of the issuer and the issue of the ticket
- -- - details on the issuer
- -- - indication of test tickets (specimen)
- -- - payment details: method of payment, currency
- -- - proprietary PNR of the issuer to be used to identify the sale within
- -- the issuers ecosystem
- -- - web link to display more information for the customer
- -- - proprietary extension data
- -- ########################################################################################
- IssuingData ::= SEQUENCE {
-
- -- provider of the signature (RICS code)
- securityProviderNum INTEGER (1..32000) OPTIONAL,
- securityProviderIA5 IA5String OPTIONAL,
-
- -- issuer of the transport document if the issuer is different from the security provider
- -- (RICS code)
- issuerNum INTEGER (1..32000) OPTIONAL,
- issuerIA5 IA5String OPTIONAL,
-
- -- issuing time stamp in UTC
- -- number of year
- issuingYear INTEGER (2016..2269),
- -- number of the day in the year (1.1. = 1)
- issuingDay INTEGER (1..366),
- -- The number of the minutes of issue might be used in case of account
- -- based ticketing with a delay of n minutes for the replication of central
- -- booking data to the control devices (e.g. at SBB)
- -- The time can be compared with the last synchronization time of
- -- the control device
- issuingTime INTEGER (0..1439) OPTIONAL,
-
- -- name of the issuer (E.g. short name mentioned in RICS code table)
- issuerName UTF8String OPTIONAL,
-
- -- specimen indicates a test specimen not valid for travelling
- specimen BOOLEAN,
-
- -- secure paper indicates that this barcode is issued with a secure paper ticket
- -- to ensure the uniqueness of the ticket. This allows to use the same control
- -- procedure as for e-tickets also for anonymous tickets
- -- the double use of the ticket is in this case excluded by the secure paper
- securePaperTicket BOOLEAN,
-
- -- indicates that the ticket is valid for traveling or still needs activation
- activated BOOLEAN,
-
- -- currency of the price: ISO4217 currency codes
- currency IA5String (SIZE(3)) DEFAULT "EUR",
-
- -- fraction of the prices included
- currencyFract INTEGER (1..3) DEFAULT 2,
-
- -- PNR used by the issuer to identify the document
- issuerPNR IA5String OPTIONAL,
-
- -- proprietary data defined bilaterally
- extension ExtensionData OPTIONAL,
-
- -- location of sale in case of a sale on board of a train
- -- numeric train number or alphanumeric id of the train where the ticket was sold
- issuedOnTrainNum INTEGER OPTIONAL,
- issuedOnTrainIA5 IA5String OPTIONAL,
- -- line number
- issuedOnLine INTEGER OPTIONAL,
-
- -- point of sale
- pointOfSale GeoCoordinateType OPTIONAL
- ,...
- }
-
- -- ###################################################################################
- -- data supporting the control process
- -- - list of items which the traveler can use to identify himself or the unique
- -- usage of the ticket
- -- (card ids, parts or identity card numbers, credit card numbers,..)
- -- - hints on the validation to be made on board
- --
- -- ###################################################################################
- ControlData ::= SEQUENCE {
-
- -- cards that can be used to identify the ticket holder
- identificationByCardReference SEQUENCE OF CardReferenceType OPTIONAL,
-
- -- id-card id must be checked to identify the traveler
- identificationByIdCard BOOLEAN,
-
- -- passport id must be checked to identify the traveler
- identificationByPassportId BOOLEAN,
-
- -- other items which could be used to identify the ticket holder
- -- (for future use, code list to be defined)
- identificationItem INTEGER OPTIONAL,
-
- -- validation of the passport is required (e.g. in case of Eurail)
- passportValidationRequired BOOLEAN,
-
- -- online validation of the ticket required
- onlineValidationRequired BOOLEAN,
-
- -- percentage of the tickets to be validated in more detail
- -- (i.e. via online check or detailed checks later-on)
- randomDetailedValidationRequired INTEGER (0..99) OPTIONAL,
-
- -- manual validation of the traveler age required (in case of reductions)
- ageCheckRequired BOOLEAN,
-
- -- manual validation of the travelers reduction card required (in case of reductions)
- reductionCardCheckRequired BOOLEAN,
-
- -- controler info text
- infoText UTF8String OPTIONAL,
-
- -- additional tickets that should be controlled
- includedTickets SEQUENCE OF TicketLinkType OPTIONAL,
-
- -- proprietary data defined bilaterally
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- ################################################################################
- -- Traveler data
- -- these data do not include tariff details of the booked tariffs,
- -- tariff data are included in the transport document details and might
- -- have a reference to the traveler defined here.
- -- - personal data of the travellers
- -- - the index of the list can be used to identify the
- -- traveler within other contexts (e.g. in assigned tariffs)
- -- ################################################################################
- TravelerData ::= SEQUENCE {
- -- traveler list
- traveler SEQUENCE OF TravelerType OPTIONAL,
-
- -- ISO 639-1 coding of the language preferred for the traveler / ticket holder
- preferredLanguage IA5String (SIZE(2)) OPTIONAL,
-
- -- name of the group in case of a group ticket
- groupName UTF8String OPTIONAL
- ,...
- }
-
- -- ####################################################################################
- -- the following part contains the different transport document specifications
- -- ####################################################################################
-
-
- -- ####################################################################################
- -- reservations of seats , couchettes and berths
- -- included are the data defined in:
- -- - leaflet 918.1 for reservation data exchange
- -- - a few additional data currently used by some railways via different interfaces
- -- - information on trach an dplafoorm where the coach stops
- -- - additional second coach for large groups
- -- ####################################################################################
- ReservationData ::= SEQUENCE {
-
- -- train number - numeric or alphanumeric
- trainNum INTEGER OPTIONAL,
- trainIA5 IA5String OPTIONAL,
-
- -- departure date in local time
- -- number of the days calculated from the issuing date
- departureDate INTEGER (-1..370) DEFAULT 0,
-
-
- -- reservation reference according ton 918.1 in case ade via Hermes
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code to be used as standard)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- -- !!! productIdNum extended
- productIdNum INTEGER (0..65535) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- service brand: code list https://uic.org/service-brand-code-list
- serviceBrand INTEGER (0..32000) OPTIONAL,
- serviceBrandAbrUTF8 UTF8String OPTIONAL,
- serviceBrandNameUTF8 UTF8String OPTIONAL,
-
- -- service code list from 918.1 (seat couchette,..)
- service ServiceType DEFAULT seat,
-
- -- code table used to encode stations
- stationCodeTable CodeTableType DEFAULT stationUICReservation,
-
- -- origin station code
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- -- destination station code
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- -- origin station name
- fromStationNameUTF8 UTF8String OPTIONAL,
-
- -- destination station name
- toStationNameUTF8 UTF8String OPTIONAL,
-
- -- departure time
- departureTime INTEGER (0..1439),
- departureUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- -- arrival date and time in local time
- -- number of days counted from the departure date
- -- !!! proposal for change: arrivalDate INTEGER (-1..20) DEFAULT 0,
- arrivalDate INTEGER (-1..20) DEFAULT 0,
- arrivalTime INTEGER (0..1439) OPTIONAL,
- arrivalUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omitted in case it is the same as for departure
-
- -- responsible carriers on the route
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- travel class
- classCode TravelClassType DEFAULT second,
-
- -- service level code list from 918.1
- serviceLevel IA5String (SIZE(1..2)) OPTIONAL,
-
- -- places
- places PlacesType OPTIONAL,
-
- -- additional places in a second coach
- additionalPlaces PlacesType OPTIONAL,
-
- --bicycle places
- bicyclePlaces PlacesType OPTIONAL,
-
- -- compartment details (open space, wheelchair,..)
- compartmentDetails CompartmentDetailsType OPTIONAL,
-
- -- number of persons on the ticket without place numbers (on IRT)
- numberOfOverbooked INTEGER (0..200) DEFAULT 0,
-
- -- description of berths
- berth SEQUENCE OF BerthDetailData OPTIONAL,
-
- -- tariffs included (Adult, Children,... )
- tariff SEQUENCE OF TariffType OPTIONAL,
-
- -- type of the price (supplement,... )
- priceType PriceTypeType DEFAULT travelPrice,
-
- price INTEGER OPTIONAL,
-
- vatDetail SEQUENCE OF VatDetailType OPTIONAL,
-
- -- type of supplement - code list from 918.1
- typeOfSupplement INTEGER (0..9) DEFAULT 0,
-
- numberOfSupplements INTEGER (0..200) DEFAULT 0,
-
- -- luggage restrictions and registered luggage
- -- in case the luggage restrictions are general and do not depend on the
- -- ticket type they should not be included
- luggage LuggageRestrictionType OPTIONAL,
-
- infoText UTF8String OPTIONAL,
-
-
- -- bilaterally agreed proprietary extension
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- #################################################################################
- -- details on the VAT included to be used in after sale processes
- -- #################################################################################
- VatDetailType ::= SEQUENCE {
-
- -- ISO 3166 numeric country code
- country INTEGER (1..999),
-
- -- 1/10th of a percent
- percentage INTEGER (0..999),
-
- -- amount of VAT, the currency and the currency fraction is included in the issuing data
- amount INTEGER OPTIONAL,
-
- -- european tax id of the company paying VAT
- vatId IA5String OPTIONAL
-
- }
-
-
- -- #################################################################################
- -- reservations of car carriage
- -- included are the data defined in:
- -- - leaflet 918.1 for reservation data exchange
- -- - a few additional data currently used by some railways via different interfaces
- -- #################################################################################
- CarCarriageReservationData ::= SEQUENCE {
-
- trainNum INTEGER OPTIONAL,
- trainIA5 IA5String OPTIONAL,
-
-
- -- loading / unloading of the car in local date and time
- -- number of the days calculated from the issuing date
- beginLoadingDate INTEGER (-1..370) DEFAULT 0,
- beginLoadingTime INTEGER (0..1439) OPTIONAL,
- endLoadingTime INTEGER (0..1439) OPTIONAL,
- loadingUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
-
- -- reservation reference according on 918.1 in case ade via Hermes
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- -- !!! productIdNum extended
- productIdNum INTEGER (0..65535) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- service brand: code list https://uic.org/service-brand-code-list
- serviceBrand INTEGER (1..32000) OPTIONAL,
- serviceBrandAbrUTF8 UTF8String OPTIONAL,
- serviceBrandNameUTF8 UTF8String OPTIONAL,
-
- stationCodeTable CodeTableType DEFAULT stationUICReservation,
-
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL,
-
- coach IA5String OPTIONAL,
- place IA5String OPTIONAL,
-
- compartmentDetails CompartmentDetailsType OPTIONAL,
-
- -- description of the car
- numberPlate IA5String,
- trailerPlate IA5String OPTIONAL,
- carCategory INTEGER (0..9),
- boatCategory INTEGER (0..6) OPTIONAL,
- textileRoof BOOLEAN,
- roofRackType RoofRackType DEFAULT norack,
-
- -- height of a roof rack in cm
- roofRackHeight INTEGER (0..99) OPTIONAL,
-
- -- number of boats on a rack
- attachedBoats INTEGER (0..2) OPTIONAL,
-
- -- number of biycles on a rack
- attachedBicycles INTEGER (0..4) OPTIONAL,
-
- -- number of surf boards on a rack
- attachedSurfboards INTEGER (0..5) OPTIONAL,
-
- -- reference to an entry on the loading list
- loadingListEntry INTEGER (0..999) OPTIONAL,
- loadingDeck LoadingDeckType DEFAULT upper,
-
- -- responsible carriers on the route (RICS codes)
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- tariff TariffType,
- priceType PriceTypeType DEFAULT travelPrice,
-
- price INTEGER OPTIONAL,
-
- vatDetail SEQUENCE OF VatDetailType OPTIONAL,
-
- infoText UTF8String OPTIONAL,
- extension ExtensionData OPTIONAL
- ,...
- }
-
-
- -- #####################################################################################
- -- data for open tickets (NRT and group tickets)
- -- included are the data defined in:
- -- - the ticket layout (leaflet 918.8)
- -- - the ticket bar code version 3 (leaflet 918.9)
- -- - additional data based on 108.1 with some extensions as 108.1
- -- does not provide well structured data,
- -- especially concerning regional validity
- --
- -- #####################################################################################
-
- OpenTicketData ::= SEQUENCE {
-
- -- reference must be given either in numeric or alphanumeric format
- referenceNum INTEGER OPTIONAL,
- referenceIA5 IA5String OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- -- !!! productIdNum extended
- productIdNum INTEGER (0..65535) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- to support other ticket content (e.g. VDV, UTPF, V�V, CALYPSO)
- -- issuer code using the default code table of the product owner
- extIssuerId INTEGER OPTIONAL,
- -- authorization id provided to the issuer by the product owner
- issuerAutorizationId INTEGER OPTIONAL,
-
- -- ticket includes the return trip - should be set to false if it is not relevant (e.g. zones)
- returnIncluded BOOLEAN,
-
- -- for tickets valid in regions without from or to stations no station is provided
- stationCodeTable CodeTableType DEFAULT stationUIC,
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- -- for tickets valid in regions without from or to stations no station is provided
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL,
-
- -- description for manual evaluation in case structured data are not available
- validRegionDesc UTF8String OPTIONAL,
- -- specification of the ordered sequence of valid regions
- validRegion SEQUENCE OF RegionalValidityType OPTIONAL,
-
- -- return route description
- -- the return route description can be omitted if it is identical to the
- -- inversed outbound validRegion sequence
- returnDescription ReturnRouteDescriptionType OPTIONAL,
-
- -- temporal validity data in local time of the location where the journey starts
- -- number of days from issuing date
- validFromDay INTEGER (-1..700) DEFAULT 0,
- validFromTime INTEGER (0..1439) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- -- number of days from valid-from date, 0 = first day of validity
- validUntilDay INTEGER (-1..370) DEFAULT 0,
- validUntilTime INTEGER (0..1439) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omitted in case it is the same as for departure
-
- -- travel days of a ticket might be subject to a separate activation to be valid for traveling
- -- here it is possible to list the activated days of the ticket:
- -- list of activated days in case the entire ticket is not activated
- -- the day is given by the number of days from the first day of validity
- -- change in V2 1 -> 0..370
- -- 0 = first day of validity
- activatedDay SEQUENCE OF INTEGER (0..370) OPTIONAL,
-
- classCode TravelClassType DEFAULT second,
-
- -- servicelevel code according to leaflet 918.1 to encode other products
- -- (e.g. PREMIUM, ...)
- serviceLevel IA5String (SIZE(1..2)) OPTIONAL,
-
- -- carriers involved in the transport (RICS codes)
- -- the indication of carriers is mandatory on international routes, they can be
- -- listed here but can also be included in viaDetails
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
-
- -- list of service brands for which the ticket is valid
- -- in case the included service brands are listed all other brands are excluded
- -- service brand: code list https://uic.org/service-brand-code-list
- includedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- -- list of service brands for which the ticket is not valid
- -- service brand: code list https://uic.org/service-brand-code-list
- excludedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- tariffs SEQUENCE OF TariffType OPTIONAL,
-
- price INTEGER OPTIONAL,
-
- vatDetail SEQUENCE OF VatDetailType OPTIONAL,
-
- infoText UTF8String OPTIONAL,
-
- -- additional included open tickets
- -- e.g. to include local city traffic on parts of a the route
- includedAddOns SEQUENCE OF IncludedOpenTicketType OPTIONAL,
-
- -- in case the luggage restrictions are general and do not depend
- -- on the ticket type they should not be included
- luggage LuggageRestrictionType OPTIONAL,
-
- -- included or excluded transport modes
- -- code list: EN 1545-1 (transport type code)
- -- new data elements
- includedTransportType SEQUENCE OF INTEGER (0..31) OPTIONAL,
- excludedTransportType SEQUENCE OF INTEGER (0..31) OPTIONAL,
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
-
-
- -- ####################################################################################
- -- data for passes
- -- included are the data defined in:
- -- - the ticket layout (leaflet 918.8)
- -- - the ticket bar code version 3 (leaflet 918.8)
- -- ####################################################################################
- PassData ::= SEQUENCE {
-
- -- reference must be given in numeric or alphanumeric format
- referenceNum INTEGER OPTIONAL,
- referenceIA5 IA5String OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- -- !!! productIdNum extended
- productIdNum INTEGER (0..65535) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- type of the pass, code list provided by the product owner
- -- in case of Eurail:
- -- 1 = Interrail
- -- 2 = Eurail
- -- 3 = Eurail Global (all countries)
- passType INTEGER (1..250) OPTIONAL,
-
- -- literal name of the pass
- passDescription UTF8String OPTIONAL,
-
- classCode TravelClassType DEFAULT second,
-
- -- begin of validity (local time)
- -- number of days from issuing date
- validFromDay INTEGER (-1..700) DEFAULT 0,
- validFromTime INTEGER (0..1439) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- -- end of validity (local time)
- -- number of days from valid from day, 0 = valid on valid-from-date
- validUntilDay INTEGER (-1..370) DEFAULT 0,
- validUntilTime INTEGER (0..1439) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omitted in case it is the same as for departure
-
-
-
- -- additional validity periods and excluded time ranges
- validityPeriodDetails ValidityPeriodDetailType OPTIONAL,
-
- -- max number of days of validity in case the valid from day is open
- numberOfValidityDays INTEGER (0..370) OPTIONAL,
-
- -- max number of possible trips to be activated
- numberOfPossibleTrips INTEGER (1..250) OPTIONAL,
- numberOfDaysOfTravel INTEGER (1..250) OPTIONAL,
-
- -- list of activated days in case the entire ticket is not activated
- -- the day is given by the number of days from the first day of validity
- -- 0 = first day of validity
- activatedDay SEQUENCE OF INTEGER (0..370) OPTIONAL,
-
- -- included countries, code table according to UIC leaflet 918.9
- countries SEQUENCE OF INTEGER (1..250) OPTIONAL,
-
- -- included carriers (RICS codes)
- includedCarrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- includedCarrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- excluded carriers (RICS codes)
- excludedCarrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- excludedCarrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- service brand: code list https://uic.org/service-brand-code-list
- includedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- excludedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- -- region description to cover local zones
- validRegion SEQUENCE OF RegionalValidityType OPTIONAL,
-
- tariffs SEQUENCE OF TariffType OPTIONAL,
-
- price INTEGER OPTIONAL,
-
- vatDetail SEQUENCE OF VatDetailType OPTIONAL,
-
- infoText UTF8String OPTIONAL,
- extension ExtensionData OPTIONAL
- ,...
- }
-
- ValidityPeriodDetailType ::= SEQUENCE {
- validityPeriod SEQUENCE OF ValidityPeriodType OPTIONAL,
- excludedTimeRange SEQUENCE OF TimeRangeType OPTIONAL
- }
-
- ValidityPeriodType ::= SEQUENCE {
- -- number of days from issuing date (local date)
- validFromDay INTEGER (-1..700) DEFAULT 0,
- validFromTime INTEGER (0..1439) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- -- number of days from valid from day, 0 = valid on valid from date
- validUntilDay INTEGER (-1..370) DEFAULT 0,
- validUntilTime INTEGER (0..1439) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omitted in case it is the same as for departure
-
- }
-
- TimeRangeType ::= SEQUENCE {
- fromTime INTEGER (0..1439),
- untilTime INTEGER (0..1439)
- }
-
- -- ######################################################################################
- -- data for vouchers
- -- included are quite basic further study is required
- -- ######################################################################################
- VoucherData ::= SEQUENCE {
-
- -- reference must be given in numeric or alphanumeric format
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- -- !!! productIdNum extended
- productIdNum INTEGER (0..65535) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- begin of validity in UTC
- -- number of year
- validFromYear INTEGER (2016..2269),
- -- number of the day in the year (1.1. = 1)
- validFromDay INTEGER (0..370),
- -- end of validity
- -- number of year
- validUntilYear INTEGER (2016..2269),
- -- number of the day in the year (1.1. = 1)
- validUntilDay INTEGER (0..370),
-
- value INTEGER DEFAULT 0,
-
- -- type of the voucher, code list defined by the product owner
- type INTEGER (1..32000) OPTIONAL,
-
- infoText UTF8String OPTIONAL,
- extension ExtensionData OPTIONAL
- ,...
- }
- -- ###################################################################################
- -- data for FIP tickets
- -- included are data from the FIP ticket layout,
- -- ###################################################################################
- FIPTicketData ::= SEQUENCE {
-
- -- reference must be given in numeric or alphanumeric format
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- -- !!! productIdNum extended
- productIdNum INTEGER (0..65535) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- first day of validity in UTC
- --- number of days from issuing date
- validFromDay INTEGER (-1..700) DEFAULT 0,
- -- last day of validity
- -- number of days from valid from day, 0 = first day of validity
- validUntilDay INTEGER (-1..370) DEFAULT 0,
-
- -- activated days: list of days for which the ticket is valid
- -- the day is given by the number of days from the first day of validity
- -- 0 = first day of validity
- activatedDay SEQUENCE OF INTEGER (0..370) OPTIONAL,
-
- -- included carriers
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- number of travel days allowed
- numberOfTravelDays INTEGER (1..200),
- includesSupplements BOOLEAN,
-
- -- travel class
- classCode TravelClassType DEFAULT second,
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- #####################################################################################
- -- data station passage and access
- -- ticket used to enter, exit or pass a station without travelling by train.
- -- E.g. for staff working in a station.
- -- #####################################################################################
- StationPassageData ::= SEQUENCE {
-
- -- reference must be given in numeric or alphanumeric format
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- -- !!! productIdNum extended
- productIdNum INTEGER (0..65535) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- productName UTF8String OPTIONAL,
-
- -- code table used to encode he stations
- stationCodeTable CodeTableType DEFAULT stationUIC,
- -- list of station where the passage is allowed
- stationNum SEQUENCE OF INTEGER OPTIONAL,
- stationIA5 SEQUENCE OF IA5String OPTIONAL,
- -- station names
- stationNameUTF8 SEQUENCE OF UTF8String OPTIONAL,
-
- -- list of areas in a station where the access is allowed
- areaCodeNum SEQUENCE OF INTEGER OPTIONAL,
- areaCodeIA5 SEQUENCE OF IA5String OPTIONAL,
- -- area names
- areaNameUTF8 SEQUENCE OF UTF8String OPTIONAL,
-
- -- begin of validity in local date and time
- -- number of days from issuing date
- validFromDay INTEGER (-1..700),
- validFromTime INTEGER (0..1439) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- -- end of validity
- -- number of days from valid from day, 0 = first day of validity
- validUntilDay INTEGER (-1..370) DEFAULT 0,
- validUntilTime INTEGER (0..1439) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omitted in case it is the same as for departure
-
-
- -- number of days for station passage in case the number of days
- -- is limited and less that the validity period
- numberOfDaysValid INTEGER OPTIONAL,
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- ######################################################################################
- -- data for customer cards
- -- included are data from:
- -- - �BB requirements on card data
- -- - DB Bahncard as HandyTicket
- -- note: customer data are included in the traveler data structure
- -- ######################################################################################
- CustomerCardData ::= SEQUENCE {
-
- -- customer details
- -- optional, as there might be an anonymous cards
- customer TravelerType OPTIONAL,
-
- -- card id might be numerical or alphanumerical
- cardIdIA5 IA5String OPTIONAL,
- cardIdNum INTEGER OPTIONAL,
-
- -- valid from date in UTC
- -- number of year
- validFromYear INTEGER (2016..2269),
- --- number of the day in the year (1.1. = 1)
- validFromDay INTEGER (0..370) OPTIONAL,
-
- --- number of year from valid from year onwards
- validUntilYear INTEGER (0..250) DEFAULT 0,
- --- number of the day in the year (1.1. = 1)
- validUntilDay INTEGER (0..370) OPTIONAL,
-
- classCode TravelClassType OPTIONAL,
-
- -- code of the card type code list defined by the issuer
- cardType INTEGER (1..1000) OPTIONAL,
-
- -- readable description of the card type
- cardTypeDescr UTF8String OPTIONAL,
-
- -- customer status code
- -- 1 = basic
- -- 2 = premium
- -- 3 = silver
- -- 4 = gold
- -- 5 = platinum
- -- 6 = senator
- -- > 50 - code table of the card issuer
- customerStatus INTEGER OPTIONAL,
-
- -- readable customer status "e.g. gold",
- customerStatusDescr IA5String OPTIONAL,
-
- -- list of included services,
- -- 1 = Rail Plus
- -- 2 = access to launch
- -- > 50 code list of the issuer
- includedServices SEQUENCE OF INTEGER OPTIONAL,
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- ######################################################################################
- -- data for customer cards
- -- included are data from:
- -- - DB parking ground reservation
- -- #######################################################################################
- ParkingGroundData ::= SEQUENCE {
-
- -- booking reference
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- parkingGroundId IA5String,
-
- -- parking date in local date time
- -- number of days from the issuing date
- fromParkingDate INTEGER (-1..370),
- -- number of days from the from parking date in case it is different from that date
- untilParkingDate INTEGER (0..370) DEFAULT 0,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- -- !!! productIdNum extended
- productIdNum INTEGER (0..65535) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- code needed to access the parking lot
- accessCode IA5String OPTIONAL,
-
- location UTF8String,
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
- -- in case the parking ground is associated with a station
- stationNum INTEGER OPTIONAL,
- stationIA5 UTF8String OPTIONAL,
-
- specialInformation UTF8String OPTIONAL,
- entryTrack UTF8String OPTIONAL,
- numberPlate IA5String OPTIONAL,
-
- price INTEGER OPTIONAL,
- vatDetail SEQUENCE OF VatDetailType OPTIONAL,
-
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- #######################################################################
- -- data for countermarks issued with group tickets
- -- included are data from:
- -- - version 3 bar code (leaflet 918.9)
- -- - printed layout (leaflet 918.8)
- -- ########################################################################
- CountermarkData ::= SEQUENCE {
-
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- -- !!! productIdNum extended
- productIdNum INTEGER (0..65535) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- reference of the group ticket
- ticketReferenceIA5 IA5String OPTIONAL,
- ticketReferenceNum INTEGER OPTIONAL,
-
- -- sequential number of the countermark
- numberOfCountermark INTEGER (1..200),
- -- total number of countermarks
- totalOfCountermarks INTEGER (1..200),
- -- name of the group
- groupName UTF8String,
-
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
-
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL,
-
- -- description for manual evaluation in case structured data are not available
- validRegionDesc UTF8String OPTIONAL,
- -- specification of the ordered sequence of valid regions
- validRegion SEQUENCE OF RegionalValidityType OPTIONAL,
-
-
- -- ticket includes the return trip
- returnIncluded BOOLEAN,
- -- retrurn route description
- -- can be omitted if it is identical to the inversed outbound validRegion sequence
- returnDescription ReturnRouteDescriptionType OPTIONAL,
-
- -- local date
- -- number of days from issuing date
- validFromDay INTEGER (-1..700) DEFAULT 0,
- validFromTime INTEGER (0..1439) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
-
-
- -- number of days from valid from day, 0 = first day of validity
- validUntilDay INTEGER (-1..370) DEFAULT 0,
- validUntilTime INTEGER (0..1439) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omitted in case it is the same as for departure
-
-
- classCode TravelClassType DEFAULT second,
-
- -- valid carriers
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- service brands where the ticket is valid
- -- in case this list is provided the ticket is invalid on all other service brands
- -- service brand: code list https://uic.org/service-brand-code-list
- includedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- -- service brands where the ticket is not valid
- -- in case this list is provided the ticket is valid on all other service brands
- excludedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- infoText UTF8String OPTIONAL,
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
-
- -- ###########################################################################################
- -- generic non standard extension element
- -- the generic non - standard element contains:
- -- - an extension id to distinguish different extensions
- -- - the extension data as binary data
- -- proprietary extensions are by definition proprietary. This standard provides
- -- the means to identify these extensions
- -- within the data and to skip these data.
- -- the evaluation of these data and the unique identification of the extensions
- -- via the extension id is in the
- -- responsibility of the railways which use these extensions.
- -- ###########################################################################################
- ExtensionData ::= SEQUENCE {
- extensionId IA5String,
- extensionData OCTET STRING
- }
-
- -- ############################################################################################
- -- type definitions
- -- ############################################################################################
-
- -- #############################################################################################
- -- included open ticke for a part of the travel (e.g. local city trafic)
- -- - data identically already included in the covering open ticket do not need to be
- -- repeated here
- -- - main source are the data required for included regional and city traffic tickets
- -- #############################################################################################
- IncludedOpenTicketType ::= SEQUENCE {
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- product id to identify the issued product codelist defined by the product owner
- -- !!! productIdNum extended
- productIdNum INTEGER (0..65535) OPTIONAL,
- productIdIA5 IA5String OPTIONAL,
-
- -- issuer code using the default code table of the product owner (today used e.g. by VDV)
- externalIssuerId INTEGER OPTIONAL,
- -- authorization id provided to the issuer by the poroduct owner (today used e.g. by VDV)
- issuerAutorizationId INTEGER OPTIONAL,
-
- -- regional validity data
- stationCodeTable CodeTableType DEFAULT stationUIC,
- -- specification of the ordered sequence of valid regions, ordered in the direction of travel
- validRegion SEQUENCE OF RegionalValidityType OPTIONAL,
-
- -- temporal validity data in local date and time
- -- number of days from issuing date
- validFromDay INTEGER (-1..700) DEFAULT 0,
- validFromTime INTEGER (0..1439) OPTIONAL,
- validFromUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
-
- -- number of days from valid-from date, 0 = first day of validity
- validUntilDay INTEGER (-1..370) DEFAULT 0,
- validUntilTime INTEGER (0..1439) OPTIONAL,
- validUntilUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
- -- should be omitted in case it is the same as for departure
-
-
- -- travel class to be given in case it differs from the class of the main ticket
- classCode TravelClassType OPTIONAL,
- -- servicelevel code according to leaflet 918.1 to encode other products (e.g. PREMIUM, ...)
- -- to be provided in case it differs from the main ticket
- serviceLevel IA5String (SIZE(1..2)) OPTIONAL,
-
- -- valid carriers (RICS codes)
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- service brands where the ticket is valid
- -- in case this list is provided the ticket is invalid on all other service brands
- -- service brand: code list https://uic.org/service-brand-code-list
- includedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- -- service brands where the ticket is not valid
- -- in case this list is provided the ticket is valid on all other service brands
- excludedServiceBrands SEQUENCE OF INTEGER (1..32000) OPTIONAL,
-
- tariffs SEQUENCE OF TariffType OPTIONAL,
- infoText UTF8String OPTIONAL,
-
- -- included or excluded transport modes
- -- code list: EN 1545-1 (transport type code)
- -- !!! new data elements
- includedTransportType SEQUENCE OF INTEGER (0..31) OPTIONAL,
- excludedTransportType SEQUENCE OF INTEGER (0..31) OPTIONAL,
-
- extension ExtensionData OPTIONAL
- ,...
- }
-
- -- ######################################################################################
- -- tariff data for open tickets
- -- information included are:
- -- - number of passengers
- -- - optionally a link to the traveler data
- -- #######################################################################################
- TariffType ::= SEQUENCE {
-
- -- number of passengers using the tariff
- numberOfPassengers INTEGER (1..200) DEFAULT 1,
-
- -- type indication youth, adult, senior,..
- passengerType PassengerType OPTIONAL,
-
- -- age restrictions of the tariff
- ageBelow INTEGER (1..64) OPTIONAL,
- ageAbove INTEGER (1..128) OPTIONAL,
-
-
- -- named traveler list
- -- link to the traveler in case the travelers have to be named (e.g. Eurail passes)
- -- the number indicates the position in the traveler list starting from 1
- -- change V2 0 -> 1..
- travelerid SEQUENCE OF INTEGER (1..254) OPTIONAL,
-
- -- restriction on country of residence
- -- this tariff is restricted by the country of residence given in the traveler data
- -- (e.g. Eurail tickets are not valid in the contry of residence)
- restrictedToCountryOfResidence BOOLEAN,
-
- -- section in case the tariff applies to a part of the route only
- restrictedToRouteSection RouteSectionType OPTIONAL,
-
- -- details on series according to leaflet 108.1
- seriesDataDetails SeriesDetailType OPTIONAL,
-
- -- tariff code
- tariffIdNum INTEGER OPTIONAL,
- tariffIdIA5 IA5String OPTIONAL,
-
- -- tariff description
- tariffDesc UTF8String OPTIONAL,
-
- -- reduction cards applied (incl. discount cards, loyalty cards relevant for the tariff)
- reductionCard SEQUENCE OF CardReferenceType OPTIONAL
- ,...
- }
-
- SeriesDetailType ::= SEQUENCE {
-
- -- data related to tariffs based on series according UIC leaflet 108.1
- -- supplying carrier according to UIC leaflet 108.1 (RICS code)
- supplyingCarrier INTEGER (1..32000) OPTIONAL,
-
- -- offer identifier of the carrier according to UIC leaflet 108.1
- offerIdentification INTEGER (1..99) OPTIONAL,
-
- -- series of the carrier according to UIC leaflet 108.1
- series INTEGER OPTIONAL
- }
-
-
- RouteSectionType ::= SEQUENCE {
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL, -- IA5 or Num not both
-
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL, -- IA5 or Num not both
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL
- }
-
-
- -- #######################################################################################
- -- customer card reference
- -- #######################################################################################
- CardReferenceType ::= SEQUENCE {
-
- -- issuer of the card
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- cardIssuerNum INTEGER (1..32000) OPTIONAL,
- cardIssuerIA5 IA5String OPTIONAL,
-
- cardIdNum INTEGER OPTIONAL,
- cardIdIA5 IA5String OPTIONAL,
-
- -- Name of the card e.g. "VISA-CARD"
- cardName UTF8String OPTIONAL,
-
- -- type of the card, code list defined by the issuer
- cardType INTEGER OPTIONAL,
-
- -- in case only the leading part of the card number is provided
- leadingCardIdNum INTEGER OPTIONAL,
- leadingCardIdIA5 IA5String OPTIONAL,
-
-
- -- in case only the trailing part of the card number is provided
- trailingCardIdNum INTEGER OPTIONAL,
- trailingCardIdIA5 IA5String OPTIONAL
-
- ,...
- }
-
- -- #######################################################################################
- -- traveler data
- -- - traveler data might contain all traveler details which are independent
- -- from the type of travel document
- -- e.g. it can include the date of birth as this is part of the traveler
- -- but not the indication "Senior" as this is tariff dependent
- --
- -- #######################################################################################
- TravelerType ::= SEQUENCE {
-
- firstName UTF8String OPTIONAL,
- secondName UTF8String OPTIONAL,
- lastName UTF8String OPTIONAL,
- idCard IA5String OPTIONAL,
- passportId IA5String OPTIONAL,
- title IA5String (SIZE(1..3)) OPTIONAL,
- gender GenderType OPTIONAL,
-
- -- customer id might be numerical or alphanumerical
- customerIdIA5 IA5String OPTIONAL,
- customerIdNum INTEGER OPTIONAL,
-
- -- date of birth
- -- number of year
- yearOfBirth INTEGER (1901..2155) OPTIONAL,
- monthOfBirth INTEGER (1..12) OPTIONAL,
- dayOfBirthInMonth INTEGER (1..31) OPTIONAL,
-
- -- indicates the ticket holder/group leader in case of groups
- ticketHolder BOOLEAN,
-
- passengerType PassengerType OPTIONAL,
-
- passengerWithReducedMobility BOOLEAN OPTIONAL,
-
- -- country of residence (numeric ISO country code)
- -- to be used in case there product restrictions on the country of residence (e.g. Eurail passes)
- countryOfResidence INTEGER (1..999) OPTIONAL,
-
- countryOfPassport INTEGER (1..999) OPTIONAL,
- countryOfIdCard INTEGER (1..999) OPTIONAL,
-
- status SEQUENCE OF CustomerStatusType OPTIONAL
- ,...
- }
-
- CustomerStatusType ::= SEQUENCE {
-
- -- compagny providing the status, default is the issuer
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- statusProviderNum INTEGER (1..32000) OPTIONAL,
- statusProviderIA5 IA5String OPTIONAL,
-
- -- customer status code
- -- 1 = basic
- -- 2 = premium
- -- 3 = silver
- -- 4 = gold
- -- 5 = platinum
- -- 6 = senator
- -- > 50 - code table of the card issuer
- customerStatus INTEGER OPTIONAL,
-
- -- customer status "gold"
- customerStatusDescr IA5String OPTIONAL
- }
-
-
- ReturnRouteDescriptionType ::= SEQUENCE {
-
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL,
-
- -- description for manual evaluation in case structured data are not available
- validReturnRegionDesc UTF8String OPTIONAL,
-
- -- specification of the ordered sequence of valid regions for the return trip
- validReturnRegion SEQUENCE OF RegionalValidityType OPTIONAL
- ,...
-
- }
-
- -- ######################################################################################
- -- regional validity of an open ticket
- -- specification of the regional validity.
- -- ######################################################################################
-
- RegionalValidityType ::= CHOICE {
- trainLink TrainLinkType,
- viaStations ViaStationType,
- zones ZoneType,
- lines LineType,
- polygone PolygoneType
- ,...
- }
-
-
-
- -- #######################################################################################
- -- train link data
- -- includes a restriction of an open ticket valid only on a specific train
- -- and date on a part of the route
- -- #######################################################################################
- TrainLinkType ::= SEQUENCE {
-
- trainNum INTEGER OPTIONAL,
- trainIA5 IA5String OPTIONAL,
-
- -- local date at the station where the train link starts
- -- days from the issuing date onwards
- travelDate INTEGER (-1..370),
- departureTime INTEGER (0..1439), -- time in minutes
- departureUTCOffset INTEGER (-60..60) OPTIONAL, -- offset in units of 15 minutes from local time to UTC
- -- (UTC = local + offset * 15 Minutes)
-
- fromStationNum INTEGER (1..9999999) OPTIONAL,
- fromStationIA5 IA5String OPTIONAL,
-
- toStationNum INTEGER (1..9999999) OPTIONAL,
- toStationIA5 IA5String OPTIONAL,
-
- fromStationNameUTF8 UTF8String OPTIONAL,
- toStationNameUTF8 UTF8String OPTIONAL
-
- }
-
-
-
- -- ######################################################################################
- -- regional validity using a set of lines
- -- - based on data used in regional city trafic enviromnemnts
- -- ######################################################################################
- LineType ::= SEQUENCE {
-
- -- local service provider / carrier within the zone
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- carrierNum INTEGER (1..32000) OPTIONAL,
- carrierIA5 IA5String OPTIONAL,
-
- -- ids of the valid lines known by the local carriers on that line
- lineId SEQUENCE OF INTEGER OPTIONAL,
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
-
- -- in case the line must be entered via a specific station
- -- (e.g. local city traffic at the end of a journey
- -- starting from the main train station)
- entryStationNum INTEGER (1..9999999) OPTIONAL,
- entryStationIA5 IA5String OPTIONAL,
-
- -- in case the line must be left via a specific station
- -- (e.g. local city trafic at the beginning of a journey
- -- terminating at the main train station)
- terminatingStationNum INTEGER (1..9999999) OPTIONAL,
- terminatingStationIA5 IA5String OPTIONAL,
-
- -- code of the local city in case the line is part of regional city transport
- -- code list of the local carrier
- city INTEGER OPTIONAL
- ,...
- }
-
-
- -- #################################################################################
- -- regional validity in a zone
- -- - based on data used in regional city trafic enviromnemnts
- -- #################################################################################
- ZoneType ::= SEQUENCE {
-
- -- local service provider / carrier within the zone
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- carrierNum INTEGER (1..32000) OPTIONAL,
- carrierIA5 IA5String OPTIONAL,
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
- -- in case the zone must be entered via a specific station
- -- (e.g. local city traffic at the end of a journey starting
- -- from the main train station)
- entryStationNum INTEGER (1..9999999) OPTIONAL,
- entryStationIA5 IA5String OPTIONAL,
-
- -- in case the zone must be left via a specific station
- -- (e.g. local city traffic at the beginning of a journey
- -- terminating at the main train station)
- terminatingStationNum INTEGER (1..9999999) OPTIONAL,
- terminatingStationIA5 IA5String OPTIONAL,
-
- -- code of the local city in case the zone is part of regional
- -- city transport code list of the local carrier
- city INTEGER OPTIONAL,
-
- -- ids of the valid zones known by the local carriers in that zone
- zoneId SEQUENCE OF INTEGER OPTIONAL,
-
- -- binary encoding of zones, encoding specification provided by
- -- the local service provider
- binaryZoneId OCTET STRING OPTIONAL,
-
- -- EU NUTS code for a region
- nutsCode IA5String OPTIONAL
- ,...
- }
-
-
- -- ##################################################################################
- -- via station
- -- includes a description of of the route by via stations.
- -- Via stations follow the description in leaflet 108.1:
- -- via stations can e mandatory to pass (but there does not need to be a
- -- train stop at this stations): visible route description: "*station*"
- -- there can be a list of alternative routes:
- -- visible route description: "*(station1/station2)*"
- -- there can also be alternative routes:
- -- "*(station1*station2/station3*station4)*" although the
- -- definition in 108.2 is not very precice on this option
- -- ###################################################################################
- ViaStationType ::= SEQUENCE {
-
- stationCodeTable CodeTableType DEFAULT stationUIC,
- -- mandatory via station
- stationNum INTEGER (1..9999999) OPTIONAL,
- stationIA5 IA5String OPTIONAL,
-
- -- list of alternative routes, one of these has to be taken
- alternativeRoutes SEQUENCE OF ViaStationType OPTIONAL,
-
- -- list of stations along the route
- route SEQUENCE OF ViaStationType OPTIONAL,
- border BOOLEAN,
-
- -- carrier responsible for the transport starting at this station (RICS-Code)
- -- in case the carrier is included here it might be omitted
- -- in the carrier list of the region data
- carrierNum SEQUENCE OF INTEGER (1..32000) OPTIONAL,
- carrierIA5 SEQUENCE OF IA5String OPTIONAL,
-
- -- the route id as series number as defined in 108.1 data
- seriesId INTEGER OPTIONAL,
-
- -- route id of the route code list defined by the carrier on that route
- routeId INTEGER OPTIONAL
- ,...
- }
-
-
- PolygoneType ::= SEQUENCE {
- firstEdge GeoCoordinateType,
- edges SEQUENCE OF DeltaCoordinates
- }
-
-
- -- ###########################################################################################
- -- TokenType provides an additional identifier
- -- known use cases
- -- - identified of the mobile phone for tickets linked with a specific phone (e.g. VDV standard)
- -- ###########################################################################################
- TokenType ::= SEQUENCE {
- -- provider of the token
- tokenProviderNum INTEGER OPTIONAL,
- tokenProviderIA5 IA5String OPTIONAL,
-
- -- in case the provider has multiple tokens
- tokenSpecification IA5String OPTIONAL,
- token OCTET STRING
- }
-
- -- ###########################################################################################
- -- TicketLinkType is used to define a link from the ticket in the bar code to another ticket
- -- (requirement from Eurail)
- -- use cases
- -- - DB Alleo (open ticket + reservation)
- -- - reservation of trailer and car carriage and traveller reservation
- -- - link between open ticket and bicycle reservations or pass
- -- - open ticket and vouchers for meals
- -- ###########################################################################################
- TicketLinkType ::= SEQUENCE {
-
- -- data to reference the external ticket
- -- reference must be given in numeric or alphanumeric format
- referenceIA5 IA5String OPTIONAL,
- referenceNum INTEGER OPTIONAL,
-
- issuerName UTF8String OPTIONAL, -- name of the issuer
-
- issuerPNR IA5String OPTIONAL, -- in case the ticket can also be identified via
- -- the issuer PNR
-
- -- organization responsible for the product definition
- -- (RICS Code / proprietary code in case no RICS code is defined, proprietary codes must ensure to be unique)
- productOwnerNum INTEGER (1..32000) OPTIONAL,
- productOwnerIA5 IA5String OPTIONAL,
-
- -- type of linked ticket
- ticketType TicketType DEFAULT openTicket,
-
- -- type of link
- linkMode LinkMode DEFAULT issuedTogether
- ,...
- }
-
- -- ############################################################################################
- -- code table used fort station codes
- -- defines the code table used e.g. to define station code
- -- - stationUIC = station codes as used in UIC leaflet 108.1 for open tickets
- -- - stationUICReservation = station codes as used in Reservation leaflets 918.1 and 108.2
- -- ############################################################################################
-
- CodeTableType ::= ENUMERATED {
- -- standard UIC station code from MERITS (UIC country code + 5 digit local code)
- stationUIC (0),
- -- standard UIC station code for reservation
- stationUICReservation (1),
- -- future standard ERA station code
- stationERA (2),
- -- local carrier code list
- -- e.g. in case of stations / stops of non-railways stops (city traffic)
- localCarrierStationCodeTable (3),
-
- -- non standard code to be used within the issuer eco system only
- -- not applicable for multi carrier travel documents
- -- or in case issuer and carrier are different
- proprietaryIssuerStationCodeTable (4)
-
- }
-
-
- ServiceType ::= ENUMERATED {
- seat (0),
- couchette (1),
- berth (2),
- carcarriage (3)
- }
-
-
- PassengerType ::= ENUMERATED {
- adult (0),
- senior (1),
- child (2),
- youth (3),
- dog (4),
- bicycle (5),
- freeAddonPassenger (6),
- freeAddonChild (7)
- ,...
- }
-
- TicketType ::= ENUMERATED {
- openTicket (0),
- pass (1),
- reservation (2),
- carCarriageReservation (3)
- ,...
- }
-
- LinkMode ::= ENUMERATED {
- issuedTogether (0),
- onlyValidInCombination (1)
- ,...
- }
-
-
- -- ####################################################################################
- -- place data corresponding to leaflet 918.1
- -- placeString = place number ranges in case of groups
- -- ####################################################################################
- PlacesType ::= SEQUENCE {
- coach IA5String OPTIONAL,
-
- -- printable place string ("15-18, 21, 22" )
- placeString IA5String OPTIONAL,
-
- -- printable place description
- placeDescription UTF8String OPTIONAL,
-
- -- individual places
- placeIA5 SEQUENCE OF IA5String OPTIONAL,
- placeNum SEQUENCE OF INTEGER (1..254) OPTIONAL
- }
-
- PriceTypeType ::= ENUMERATED {
- noPrice (0),
- reservationFee (1),
- supplement (2),
- travelPrice (3)
- }
-
- BerthTypeType ::= ENUMERATED {
- single (0),
- special (1),
- double (2),
- t2 (3),
- t3 (4),
- t4 (5)
- }
-
- CompartmentGenderType ::= ENUMERATED {
- unspecified (0),
- family (1),
- female (2),
- male (3),
- mixed (4)
- ,...
- }
-
- GenderType ::= ENUMERATED {
- unspecified (0),
- female (1),
- male (2),
- other (3)
- ,...
- }
-
- TravelClassType ::= ENUMERATED {
- notApplicable (0),
- first (1),
- second (2),
- tourist (3),
- comfort (4),
- premium (5),
- business (6),
- all (7),
- premiumFirst (8),
- standardFirst (9),
- premiumSecond (10),
- standardSecond (11)
- ,...
- }
-
- -- ########################################################################################
- -- sleeper compartment types corresponding to leaflet 918.1
- -- ########################################################################################
- BerthDetailData ::= SEQUENCE {
- berthType BerthTypeType,
- numberOfBerths INTEGER (1..999),
- gender CompartmentGenderType DEFAULT family
- ,...
- }
-
- -- ####################################################################################
- -- compartment details corresponding to leaflet 918.1
- -- ####################################################################################
- CompartmentDetailsType ::= SEQUENCE {
- coachType INTEGER (1..99) OPTIONAL,
- compartmentType INTEGER (1..99) OPTIONAL,
- specialAllocation INTEGER (1..99) OPTIONAL,
- coachTypeDescr UTF8String OPTIONAL,
- compartmentTypeDescr UTF8String OPTIONAL,
- specialAllocationDescr UTF8String OPTIONAL,
- position CompartmentPositionType DEFAULT unspecified
- ,...
- }
-
-
- -- #####################################################################################
- -- luggage restrictions
- -- the basis for these data is week:
- -- SCIC mentions a maximum of three pieces of hand luggage but does not includes
- -- a definition of hand luggage
- -- SCIC refers to special conditions on registered luggage, but SCIC NRT does
- -- not contain definitions on that and UIC 108.1 does not
- -- contain data structures for luggage
- -- - current THALYS luggage restrictions
- -- #####################################################################################
- LuggageRestrictionType ::= SEQUENCE {
- -- allowed hand luggage pieces on this ticket (3 = default in current NRT tariff)
- maxHandLuggagePieces INTEGER(0..99) DEFAULT 3,
- -- allowed hand luggage pieces on this ticket (3 = default in current NRT tariff)
- maxNonHandLuggagePieces INTEGER(0..99) DEFAULT 1,
- registeredLuggage SEQUENCE OF RegisteredLuggageType OPTIONAL
- ,...
-
- }
-
- RegisteredLuggageType ::= SEQUENCE {
- -- id of the additional registered luggage
- registrationId IA5String OPTIONAL,
- -- maximum weight in kg
- maxWeight INTEGER (1..99) OPTIONAL,
- -- sum of length with and height in cm
- maxSize INTEGER (1..300) OPTIONAL
- ,...
-
- }
-
- -- ##########################################################################################
- -- generic type for geo coordinates
- -- ##########################################################################################
- GeoCoordinateType ::= SEQUENCE {
- geoUnit GeoUnitType DEFAULT milliDegree,
- coordinateSystem GeoCoordinateSystemType DEFAULT wgs84,
- -- separate hemishpere flag reduces the data size
- hemisphereLongitude HemisphereLongitudeType DEFAULT north,
- -- separate hemishpere flag reduces the data size
- hemisphereLatitude HemisphereLatitudeType DEFAULT east,
- longitude INTEGER,
- latitude INTEGER,
- accuracy GeoUnitType OPTIONAL
- }
-
- DeltaCoordinates ::= SEQUENCE {
- -- logitude difference to a reference point
- longitude INTEGER,
- -- latitude difference to a reference point
- latitude INTEGER
- }
-
- GeoCoordinateSystemType ::= ENUMERATED {
- wgs84 (0), -- WGS 84 standard system
- grs80 (1) -- (outdated) GRS 80 coordinate system
- }
-
- GeoUnitType ::= ENUMERATED {
- microDegree (0), -- approx. 11 cm on earth surface
- tenthmilliDegree (1), -- 1 / 100000 degree is approx. 1.1 meter on earth surface
- milliDegree (2), -- approx 110 meter on earth surface
- centiDegree (3),
- deciDegree (4)
- }
-
- HemisphereLongitudeType ::= ENUMERATED {
- north (0),
- south (1)
- }
-
- HemisphereLatitudeType ::= ENUMERATED {
- east (0),
- west (1)
- }
-
- LoadingDeckType ::= ENUMERATED {
- unspecified (0),
- upper (1),
- lower (2)
- }
-
- CompartmentPositionType ::= ENUMERATED {
- unspecified (0),
- upperLevel (1),
- lowerLevel (2)
- }
-
- RoofRackType ::= ENUMERATED {
- norack (0),
- roofRailing (1),
- luggageRack (2),
- skiRack (3),
- boxRack (4),
- rackWithOneBox (5),
- rackWithTwoBoxes (6),
- bicycleRack (7),
- otherRack (8)
- ,...
- }
-
-END
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/asn/package.html b/src/org/uic/barcode/ticket/api/asn/package.html
deleted file mode 100644
index 307075e..0000000
--- a/src/org/uic/barcode/ticket/api/asn/package.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-asn
-
- Provides code generated from the asn.1 specification using the openAsn compiler to implement the asn.1 encoduing and decoding using unaligned PER encoding.
-
-
\ No newline at end of file
diff --git a/src/org/uic/barcode/ticket/api/impl/SimpleBerth.java b/src/org/uic/barcode/ticket/api/impl/SimpleBerth.java
deleted file mode 100644
index a5f984e..0000000
--- a/src/org/uic/barcode/ticket/api/impl/SimpleBerth.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- *
- */
-package org.uic.barcode.ticket.api.impl;
-
-import org.uic.barcode.ticket.api.spec.IBerth;
-import org.uic.barcode.ticket.api.spec.IBerthTypeType;
-import org.uic.barcode.ticket.api.spec.ICompartmentGenderType;
-
-/**
- * The Class SimpleBerth.
- */
-public class SimpleBerth implements IBerth {
-
-
- /** The type. */
- protected IBerthTypeType type;
-
- /** The number of berths. */
- protected int numberOfBerths;
-
- /** The gender. */
- protected ICompartmentGenderType gender = ICompartmentGenderType.family;
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IBerth#getType()
- */
- public IBerthTypeType getType() {
- return type;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IBerth#setType(org.uic.ticket.api.asn.om.BerthTypeType)
- */
- public void setType(IBerthTypeType type) {
- this.type = type;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IBerth#getNumberOfBerths()
- */
- public int getNumberOfBerths() {
- return numberOfBerths;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IBerth#setNumberOfBerths(int)
- */
- public void setNumberOfBerths(int numberOfBerths) {
- this.numberOfBerths = numberOfBerths;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IBerth#getGender()
- */
- public ICompartmentGenderType getGender() {
- return gender;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IBerth#setGender(org.uic.ticket.api.asn.om.CompartmentGenderType)
- */
- public void setGender(ICompartmentGenderType gender) {
- this.gender = gender;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/impl/SimpleCarCarriageReservation.java b/src/org/uic/barcode/ticket/api/impl/SimpleCarCarriageReservation.java
deleted file mode 100644
index cd12a4f..0000000
--- a/src/org/uic/barcode/ticket/api/impl/SimpleCarCarriageReservation.java
+++ /dev/null
@@ -1,655 +0,0 @@
-/*
- *
- */
-package org.uic.barcode.ticket.api.impl;
-
-import java.util.Collection;
-import java.util.Date;
-import java.util.LinkedHashSet;
-
-import org.uic.barcode.ticket.api.spec.ICarCarriageReservation;
-import org.uic.barcode.ticket.api.spec.ICompartmentDetails;
-import org.uic.barcode.ticket.api.spec.IExtension;
-import org.uic.barcode.ticket.api.spec.ILoadingDeckType;
-import org.uic.barcode.ticket.api.spec.IPriceTypeType;
-import org.uic.barcode.ticket.api.spec.IRoofRackType;
-import org.uic.barcode.ticket.api.spec.IServiceBrand;
-import org.uic.barcode.ticket.api.spec.IStationCodeTable;
-import org.uic.barcode.ticket.api.spec.ITariff;
-import org.uic.barcode.ticket.api.spec.IVatDetail;
-
-/**
- * The Class SimpleCarCarriageReservation.
- */
-public class SimpleCarCarriageReservation extends SimpleDocumentData implements ICarCarriageReservation {
-
- /** The train. */
- protected String train;
-
-
- /** The reference. */
- protected String reference;
-
- /** The product id. */
- protected String productId;
-
- /** The product owner. */
- protected String productOwner;
-
- /** The service brand. */
- protected IServiceBrand serviceBrand;
-
-
- /** The station code table. */
- protected IStationCodeTable stationCodeTable = IStationCodeTable.stationUICReservation;
-
- /** The from station. */
- protected String fromStation;
-
- /** The to station. */
- protected String toStation;
-
- /** The from station name. */
- protected String fromStationName;
-
- /** The to station name. */
- protected String toStationName;
-
- /** The coach. */
- protected String coach;
-
- /** The place. */
- protected String place;
-
- /** The carriers. */
- protected Collectioncarriers = new LinkedHashSet();
-
-
- /** The tariff. */
- protected ITariff tariff;
-
- /** The service level. */
- protected String serviceLevel;
-
- /** The compartment details. */
- protected ICompartmentDetails compartmentDetails;
-
- /** The number plate. */
- protected String numberPlate;
-
- /** The trailer plate. */
- protected String trailerPlate;
-
- /** The car category. */
- protected int carCategory;
-
- /** The boat category. */
- protected int boatCategory;
-
- /** The textile roof. */
- protected boolean textileRoof = false;
-
- /** The roof rack type. */
- protected IRoofRackType roofRackType = IRoofRackType.norack;
-
- /** The roof rack height. */
- protected int roofRackHeight;
-
- /** The attached boats. */
- protected int attachedBoats;
-
- /** The attached bicycles. */
- protected int attachedBicycles;
-
- /** The attached surfboards. */
- protected int attachedSurfboards;
-
-
- /** The begin loading. */
- protected Date beginLoading;
-
- /** The end loading. */
- protected Date endLoading;
-
- /** The loading list entry. */
- protected int loadingListEntry;
-
- /** The loading deck. */
- protected ILoadingDeckType loadingDeck = ILoadingDeckType.upper;
-
- /** The price type. */
- protected IPriceTypeType priceType = IPriceTypeType.travelPrice;
-
- /** The VAT details. */
- protected CollectionvatDetails = new LinkedHashSet();
-
- /** The price. */
- protected Long price;
-
-
- /** The info text. */
- protected String infoText;
-
- /** The extension. */
- protected IExtension extension;
-
- /** The loading time ut coffset. */
- protected Long loadingTimeUTCoffset;
-
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getTrain()
- */
- public String getTrain() {
- return train;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setTrain(java.lang.String)
- */
- public void setTrain(String train) {
- this.train = train.trim();
- }
-
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getReference()
- */
- public String getReference() {
- return reference;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setReference(java.lang.String)
- */
- public void setReference(String reference) {
- this.reference = reference;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getProductId()
- */
- public String getProductId() {
- return productId;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setProductId(java.lang.String)
- */
- public void setProductId(String productId) {
- this.productId = productId;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getServiceBrand()
- */
- public IServiceBrand getServiceBrand() {
- return serviceBrand;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setServiceBrand(int)
- */
- public void setServiceBrand(IServiceBrand serviceBrand) {
- this.serviceBrand = serviceBrand;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getStationCodeTable()
- */
- public IStationCodeTable getStationCodeTable() {
- return stationCodeTable;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setStationCodeTable(org.uic.ticket.api.asn.om.CodeTableType)
- */
- public void setStationCodeTable(IStationCodeTable stationCodeTable) {
- this.stationCodeTable = stationCodeTable;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getFromStation()
- */
- public String getFromStation() {
- return fromStation;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setFromStation(java.lang.String)
- */
- public void setFromStation(String fromStation) {
- this.fromStation = fromStation;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getToStation()
- */
- public String getToStation() {
- return toStation;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setToStation(java.lang.String)
- */
- public void setToStation(String toStation) {
- this.toStation = toStation;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getFromStationName()
- */
- public String getFromStationName() {
- return fromStationName;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setFromStationName(java.lang.String)
- */
- public void setFromStationName(String fromStationName) {
- this.fromStationName = fromStationName;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getToStationName()
- */
- public String getToStationName() {
- return toStationName;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setToStationName(java.lang.String)
- */
- public void setToStationName(String toStationName) {
- this.toStationName = toStationName;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getCarriers()
- */
- public Collection getCarriers() {
- return carriers;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#addCarrier(java.lang.Integer)
- */
- public void addCarrier(String carrier) {
- this.carriers.add(carrier);
- }
-
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getServiceLevel()
- */
- public String getServiceLevel() {
- return serviceLevel;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setServiceLevel(java.lang.String)
- */
- public void setServiceLevel(String serviceLevel) {
- this.serviceLevel = serviceLevel;
- }
-
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getCompartmentDetails()
- */
- public ICompartmentDetails getCompartmentDetails() {
- return compartmentDetails;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setCompartmentDetails(org.uic.ticket.api.spec.ICompartmentDetails)
- */
- public void setCompartmentDetails(ICompartmentDetails compartmentDetails) {
- this.compartmentDetails = compartmentDetails;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getPriceType()
- */
- public IPriceTypeType getPriceType() {
- return priceType;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setPriceType(org.uic.ticket.api.asn.om.PriceTypeType)
- */
- public void setPriceType(IPriceTypeType priceType) {
- this.priceType = priceType;
- }
-
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getInfoText()
- */
- public String getInfoText() {
- return infoText;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setInfoText(java.lang.String)
- */
- public void setInfoText(String infoText) {
- this.infoText = infoText;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getExtension()
- */
- public IExtension getExtension() {
- return extension;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setExtension(org.uic.ticket.api.spec.IExtension)
- */
- public void setExtension(IExtension extension) {
- this.extension = extension;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getCoach()
- */
- public String getCoach() {
- return coach;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setCoach(java.lang.String)
- */
- public void setCoach(String coach) {
- this.coach = coach;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getPlace()
- */
- public String getPlace() {
- return place;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setPlace(java.lang.String)
- */
- public void setPlace(String place) {
- this.place = place;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getTariff()
- */
- public ITariff getTariff() {
- return tariff;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setTariff(org.uic.ticket.api.spec.ITariff)
- */
- public void setTariff(ITariff tariff) {
- this.tariff = tariff;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getNumberPlate()
- */
- public String getNumberPlate() {
- return numberPlate;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setNumberPlate(java.lang.String)
- */
- public void setNumberPlate(String numberPlate) {
- this.numberPlate = numberPlate;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getTrailerPlate()
- */
- public String getTrailerPlate() {
- return trailerPlate;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setTrailerPlate(java.lang.String)
- */
- public void setTrailerPlate(String trailerPlate) {
- this.trailerPlate = trailerPlate;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getCarCategory()
- */
- public int getCarCategory() {
- return carCategory;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setCarCategory(int)
- */
- public void setCarCategory(int carCategory) {
- this.carCategory = carCategory;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getBoatCategory()
- */
- public int getBoatCategory() {
- return boatCategory;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setBoatCategory(int)
- */
- public void setBoatCategory(int boatCategory) {
- this.boatCategory = boatCategory;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#isTextileRoof()
- */
- public boolean isTextileRoof() {
- return textileRoof;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setTextileRoof(boolean)
- */
- public void setTextileRoof(boolean textileRoof) {
- this.textileRoof = textileRoof;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getRoofRackType()
- */
- public IRoofRackType getRoofRackType() {
- return roofRackType;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setRoofRackType(org.uic.ticket.api.asn.om.RoofRackType)
- */
- public void setRoofRackType(IRoofRackType roofRackType) {
- this.roofRackType = roofRackType;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getRoofRackHeight()
- */
- public int getRoofRackHeight() {
- return roofRackHeight;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setRoofRackHeight(int)
- */
- public void setRoofRackHeight(int roofRackHeight) {
- this.roofRackHeight = roofRackHeight;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getAttachedBoats()
- */
- public int getAttachedBoats() {
- return attachedBoats;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setAttachedBoats(int)
- */
- public void setAttachedBoats(int attachedBoats) {
- this.attachedBoats = attachedBoats;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getAttachedBicycles()
- */
- public int getAttachedBicycles() {
- return attachedBicycles;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setAttachedBicycles(int)
- */
- public void setAttachedBicycles(int attachedBicycles) {
- this.attachedBicycles = attachedBicycles;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getAttachedSurfboards()
- */
- public int getAttachedSurfboards() {
- return attachedSurfboards;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setAttachedSurfboards(int)
- */
- public void setAttachedSurfboards(int attachedSurfboards) {
- this.attachedSurfboards = attachedSurfboards;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getBeginLoading()
- */
- public Date getBeginLoading() {
- return beginLoading;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setBeginLoading(java.util.Date)
- */
- public void setBeginLoading(Date beginLoading) {
- this.beginLoading = beginLoading;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getEndLoading()
- */
- public Date getEndLoading() {
- return endLoading;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setEndLoading(java.util.Date)
- */
- public void setEndLoading(Date endLoading) {
- this.endLoading = endLoading;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getLoadingListEntry()
- */
- public int getLoadingListEntry() {
- return loadingListEntry;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setLoadingListEntry(int)
- */
- public void setLoadingListEntry(int loadingListEntry) {
- this.loadingListEntry = loadingListEntry;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getLoadingDeck()
- */
- public ILoadingDeckType getLoadingDeck() {
- return loadingDeck;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setLoadingDeck(org.uic.ticket.api.asn.om.LoadingDeckType)
- */
- public void setLoadingDeck(ILoadingDeckType loadingDeck) {
- this.loadingDeck = loadingDeck;
- }
-
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getProductOwner()
- */
- public String getProductOwner() {
- return productOwner;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setProductOwner(java.lang.String)
- */
- public void setProductOwner(String productOwner) {
- this.productOwner = productOwner;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setPrice(java.lang.Long)
- */
- @Override
- public void setPrice(Long price) {
- this.price = price;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getPrice()
- */
- @Override
- public Long getPrice() {
- return price;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getVatDetails()
- */
- @Override
- public Collection getVatDetails() {
- return vatDetails;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#addVatDetail(org.uic.ticket.api.spec.IVatDetail)
- */
- @Override
- public void addVatDetail(IVatDetail vatDetail) {
- this.vatDetails.add(vatDetail);
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#getLoadingTimeUTCoffset()
- */
- public Long getLoadingTimeUTCoffset() {
- return loadingTimeUTCoffset;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICarCarriageReservation#setLoadingTimeUTCoffset(java.lang.Long)
- */
- public void setLoadingTimeUTCoffset(Long loadingTimeUTCoffset) {
- this.loadingTimeUTCoffset = loadingTimeUTCoffset;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/impl/SimpleCardReference.java b/src/org/uic/barcode/ticket/api/impl/SimpleCardReference.java
deleted file mode 100644
index a40ad76..0000000
--- a/src/org/uic/barcode/ticket/api/impl/SimpleCardReference.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/*
- *
- */
-package org.uic.barcode.ticket.api.impl;
-
-import org.uic.barcode.ticket.api.spec.ICardReference;
-
-// TODO: Auto-generated Javadoc
-/**
- * The Class SimpleCardReference.
- */
-public class SimpleCardReference implements ICardReference {
-
-
- /** The card issuer. */
- protected String cardIssuer;
-
- /** The card id. */
- protected String cardId;
-
- /** The card name. */
- protected String cardName;
-
- /** The card type. */
- protected int cardType;
-
- /** The leading card id. */
- protected String leadingCardId;
-
- /** The trailing card id. */
- protected String trailingCardId;
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#getCardIssuer()
- */
- public String getCardIssuer() {
- return cardIssuer;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#setCardIssuer(java.lang.String)
- */
- public void setCardIssuer(String cardIssuer) {
- this.cardIssuer = cardIssuer;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#getCardId()
- */
- public String getCardId() {
- return cardId;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#setCardId(java.lang.String)
- */
- public void setCardId(String cardId) {
- if (cardId != null && cardId.trim().length() > 0) {
- this.cardId = cardId.trim();
- } else {
- this.cardId = null;
- }
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#getCardName()
- */
- public String getCardName() {
- return cardName;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#setCardName(java.lang.String)
- */
- public void setCardName(String cardName) {
- this.cardName = cardName;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#getCardType()
- */
- public int getCardType() {
- return cardType;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#setCardType(int)
- */
- public void setCardType(int cardType) {
- this.cardType = cardType;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#getLeadingCardId()
- */
- public String getLeadingCardId() {
- return leadingCardId;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#setLeadingCardId(java.lang.String)
- */
- public void setLeadingCardId(String leadingCardId) {
- if (leadingCardId != null && leadingCardId.trim().length() > 0) {
- this.leadingCardId = leadingCardId.trim();
- } else {
- this.leadingCardId = null;
- }
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#getTrailingCardId()
- */
- public String getTrailingCardId() {
- return trailingCardId;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICardReference#setTrailingCardId(java.lang.String)
- */
- public void setTrailingCardId(String trailingCardId) {
- if (trailingCardId != null && trailingCardId.trim().length() > 0) {
- this.trailingCardId = trailingCardId.trim();
- } else {
- this.trailingCardId = null;
- }
- }
-
-
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/impl/SimpleCompartmentDetails.java b/src/org/uic/barcode/ticket/api/impl/SimpleCompartmentDetails.java
deleted file mode 100644
index 0748874..0000000
--- a/src/org/uic/barcode/ticket/api/impl/SimpleCompartmentDetails.java
+++ /dev/null
@@ -1,136 +0,0 @@
-/*
- *
- */
-package org.uic.barcode.ticket.api.impl;
-
-import org.uic.barcode.ticket.api.spec.ICompartmentDetails;
-import org.uic.barcode.ticket.api.spec.ICompartmentPositionType;
-
-/**
- * The Class SimpleCompartmentDetails.
- */
-public class SimpleCompartmentDetails implements ICompartmentDetails {
-
-
- /** The coach type. */
- protected int coachType ;
-
- /** The compartment type. */
- protected int compartmentType;
-
- /** The special allocation. */
- protected int specialAllocation;
-
- /** The coach type descr. */
- protected String coachTypeDescr;
-
- /** The compartment type descr. */
- protected String compartmentTypeDescr;
-
- /** The special allocation descr. */
- protected String specialAllocationDescr;
-
- /** The position. */
- protected ICompartmentPositionType position = ICompartmentPositionType.unspecified;
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#getCoachType()
- */
- public int getCoachType() {
- return coachType;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#setCoachType(int)
- */
- public void setCoachType(int coachType) {
- this.coachType = coachType;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#getCompartmentType()
- */
- public int getCompartmentType() {
- return compartmentType;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#setCompartmentType(int)
- */
- public void setCompartmentType(int compartmentType) {
- this.compartmentType = compartmentType;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#getSpecialAllocation()
- */
- public int getSpecialAllocation() {
- return specialAllocation;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#setSpecialAllocation(int)
- */
- public void setSpecialAllocation(int specialAllocation) {
- this.specialAllocation = specialAllocation;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#getCoachTypeDescr()
- */
- public String getCoachTypeDescr() {
- return coachTypeDescr;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#setCoachTypeDescr(java.lang.String)
- */
- public void setCoachTypeDescr(String coachTypeDescr) {
- this.coachTypeDescr = coachTypeDescr;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#getComparttmentTypeDescr()
- */
- public String getCompartmentTypeDescr() {
- return compartmentTypeDescr;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#setComparttmentTypeDescr(java.lang.String)
- */
- public void setCompartmentTypeDescr(String comparttmentTypeDescr) {
- this.compartmentTypeDescr = comparttmentTypeDescr;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#getSpecialAllocationDescr()
- */
- public String getSpecialAllocationDescr() {
- return specialAllocationDescr;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#setSpecialAllocationDescr(java.lang.String)
- */
- public void setSpecialAllocationDescr(String specialAllocationDescr) {
- this.specialAllocationDescr = specialAllocationDescr;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#getPosition()
- */
- public ICompartmentPositionType getPosition() {
- return position;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICompartmentDetails#setPosition(org.uic.ticket.api.asn.om.CompartmentPositionType)
- */
- public void setPosition(ICompartmentPositionType position) {
- this.position = position;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/impl/SimpleControlDetail.java b/src/org/uic/barcode/ticket/api/impl/SimpleControlDetail.java
deleted file mode 100644
index 0702563..0000000
--- a/src/org/uic/barcode/ticket/api/impl/SimpleControlDetail.java
+++ /dev/null
@@ -1,229 +0,0 @@
-/*
- *
- */
-package org.uic.barcode.ticket.api.impl;
-
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.LinkedHashSet;
-
-import org.uic.barcode.ticket.api.spec.ICardReference;
-import org.uic.barcode.ticket.api.spec.IControlDetail;
-import org.uic.barcode.ticket.api.spec.IExtension;
-import org.uic.barcode.ticket.api.spec.ITicketLink;
-
-// TODO: Auto-generated Javadoc
-/**
- * The Class SimpleControlDetail.
- */
-public class SimpleControlDetail implements IControlDetail {
-
-
- /** The identification by card reference. */
- protected Collection identificationByCardReference = new LinkedHashSet();
-
- /** The identification by id card. */
- protected boolean identificationByIdCard = false;
-
- /** The identification by passport id. */
- protected boolean identificationByPassportId = false;
-
- /** The identification item. */
- protected int identificationItem = 0;
-
- /** The passport validation required. */
- protected boolean passportValidationRequired = false;
-
- /** The online validation required. */
- protected boolean onlineValidationRequired = false;
-
- /** The random online validation required. */
- protected int randomDetailedValidationRequired = 0;
-
- /** The age check required. */
- protected boolean ageCheckRequired = false;
-
- /** The reduction card check required. */
- protected boolean reductionCardCheckRequired = false;
-
- /** The info text. */
- protected String infoText ;
-
- /** The linked tickets. */
- protected Collection linkedTickets = new HashSet();
-
- /** The extension. */
- protected IExtension extension ;
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#getIdentificationByCardReference()
- */
- public Collection getIdentificationByCardReference() {
- return identificationByCardReference;
- }
-
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#addIdentificationByCardReference(org.uic.ticket.api.spec.ICardReference)
- */
- public void addIdentificationByCardReference(ICardReference cardReference) {
- this.identificationByCardReference.add(cardReference);
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#isIdentificationByIdCard()
- */
- public boolean isIdentificationByIdCard() {
- return identificationByIdCard;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#setIdentificationByIdCard(boolean)
- */
- public void setIdentificationByIdCard(boolean identificationByIdCard) {
- this.identificationByIdCard = identificationByIdCard;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#isIdentificationByPassportId()
- */
- public boolean isIdentificationByPassportId() {
- return identificationByPassportId;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#setIdentificationByPassportId(boolean)
- */
- public void setIdentificationByPassportId(boolean identificationByPassportId) {
- this.identificationByPassportId = identificationByPassportId;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#getIdentificationItem()
- */
- public int getIdentificationItem() {
- return identificationItem;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#setIdentificationItem(int)
- */
- public void setIdentificationItem(int identificationItem) {
- this.identificationItem = identificationItem;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#isPassportValidationRequired()
- */
- public boolean isPassportValidationRequired() {
- return passportValidationRequired;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#setPassportValidationRequired(boolean)
- */
- public void setPassportValidationRequired(boolean passportValidationRequired) {
- this.passportValidationRequired = passportValidationRequired;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#isOnlineValidationRequired()
- */
- public boolean isOnlineValidationRequired() {
- return onlineValidationRequired;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#setOnlineValidationRequired(boolean)
- */
- public void setOnlineValidationRequired(boolean onlineValidationRequired) {
- this.onlineValidationRequired = onlineValidationRequired;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#getRandomOnlineValidationRequired()
- */
- public int getRandomDetailedValidationRequired() {
- return randomDetailedValidationRequired;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#setRandomOnlineValidationRequired(int)
- */
- public void setRandomDetailedValidationRequired(int randomDetailedValidationRequired) {
- this.randomDetailedValidationRequired = randomDetailedValidationRequired;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#isAgeCheckRequired()
- */
- public boolean isAgeCheckRequired() {
- return ageCheckRequired;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#setAgeCheckRequired(boolean)
- */
- public void setAgeCheckRequired(boolean ageCheckRequired) {
- this.ageCheckRequired = ageCheckRequired;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#isReductionCardCheckRequired()
- */
- public boolean isReductionCardCheckRequired() {
- return reductionCardCheckRequired;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#setReductionCardCheckRequired(boolean)
- */
- public void setReductionCardCheckRequired(boolean reductionCardCheckRequired) {
- this.reductionCardCheckRequired = reductionCardCheckRequired;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#getInfoText()
- */
- public String getInfoText() {
- return infoText;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#setInfoText(java.lang.String)
- */
- public void setInfoText(String infoText) {
- this.infoText = infoText;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#getLinkedTickets()
- */
- public Collection getLinkedTickets() {
- return linkedTickets;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#addLinkedTicket(org.uic.ticket.api.spec.ITicketLink)
- */
- public void addLinkedTicket(ITicketLink linkedTicket) {
- this.linkedTickets.add(linkedTicket);
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#getExtension()
- */
- public IExtension getExtension() {
- return extension;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.IControlDetail#setExtension(org.uic.ticket.api.spec.IExtension)
- */
- public void setExtension(IExtension extension) {
- this.extension = extension;
- }
-
-
-
-}
diff --git a/src/org/uic/barcode/ticket/api/impl/SimpleCounterMark.java b/src/org/uic/barcode/ticket/api/impl/SimpleCounterMark.java
deleted file mode 100644
index d8b0ebd..0000000
--- a/src/org/uic/barcode/ticket/api/impl/SimpleCounterMark.java
+++ /dev/null
@@ -1,482 +0,0 @@
-/*
- *
- */
-package org.uic.barcode.ticket.api.impl;
-
-import java.util.Collection;
-import java.util.Date;
-import java.util.LinkedHashSet;
-
-import org.uic.barcode.ticket.api.spec.ICounterMark;
-import org.uic.barcode.ticket.api.spec.IExtension;
-import org.uic.barcode.ticket.api.spec.IRegionalValidity;
-import org.uic.barcode.ticket.api.spec.IReturnRouteDescription;
-import org.uic.barcode.ticket.api.spec.IStationCodeTable;
-import org.uic.barcode.ticket.api.spec.ITravelClassType;
-
-
-/**
- * The Class SimpleCounterMark.
- */
-public class SimpleCounterMark extends SimpleDocumentData implements ICounterMark {
-
- /** The departure date. */
- protected Date departureDate;
-
- /** The arrival date. */
- protected Date arrivalDate;
-
- /** The reference. */
- protected String reference;
-
- /** The product owner. */
- protected String productOwner;
-
-
- /** The product id. */
- protected String productId;
-
- /** The number of countermark. */
- protected int numberOfCountermark;
-
- /** The total of countermarks. */
- protected int totalOfCountermarks;
-
- /** The group name. */
- protected String groupName;
-
- /** The return included. */
- protected boolean returnIncluded = false;
-
- /** The station code table. */
- protected IStationCodeTable stationCodeTable = IStationCodeTable.stationUIC;
-
- /** The from station. */
- protected String fromStation;
-
- /** The to station. */
- protected String toStation;
-
- /** The from station name. */
- protected String fromStationName;
-
- /** The to station name. */
- protected String toStationName;
-
- /** The valid region desc. */
- protected String validRegionDesc;
-
- /** The valid region list. */
- protected Collection validRegionList = new LinkedHashSet();
-
- /** The return description. */
- protected IReturnRouteDescription returnDescription;
-
- /** The valid from. */
- protected Date validFrom;
-
- /** The valid until. */
- protected Date validUntil;
-
- /** The class code. */
- protected ITravelClassType classCode = ITravelClassType.second;
-
- /** The included carriers. */
- protected CollectionincludedCarriers = new LinkedHashSet();
-
- /** The included service brands. */
- protected CollectionincludedServiceBrands = new LinkedHashSet();
-
- /** The excluded service brands. */
- protected CollectionexcludedServiceBrands = new LinkedHashSet();
-
- /** The info text. */
- protected String infoText;
-
-
- /** The extension. */
- protected IExtension extension;
-
-
- /** The ticket reference. */
- protected String ticketReference;
-
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getReference()
- */
- public String getReference() {
- return reference;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setReference(java.lang.String)
- */
- public void setReference(String reference) {
- this.reference = reference;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#isReturnIncluded()
- */
- public boolean isReturnIncluded() {
- return returnIncluded;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setReturnIncluded(boolean)
- */
- public void setReturnIncluded(boolean returnIncluded) {
- this.returnIncluded = returnIncluded;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getStationCodeTable()
- */
- public IStationCodeTable getStationCodeTable() {
- return stationCodeTable;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setStationCodeTable(org.uic.ticket.api.asn.om.CodeTableType)
- */
- public void setStationCodeTable(IStationCodeTable stationCodeTable) {
- this.stationCodeTable = stationCodeTable;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getFromStation()
- */
- public String getFromStation() {
- return fromStation;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setFromStation(java.lang.String)
- */
- public void setFromStation(String fromStation) {
- this.fromStation = fromStation;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getToStation()
- */
- public String getToStation() {
- return toStation;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setToStation(java.lang.String)
- */
- public void setToStation(String toStation) {
- this.toStation = toStation;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getFromStationName()
- */
- public String getFromStationName() {
- return fromStationName;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setFromStationName(java.lang.String)
- */
- public void setFromStationName(String fromStationName) {
- this.fromStationName = fromStationName;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getToStationName()
- */
- public String getToStationName() {
- return toStationName;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setToStationName(java.lang.String)
- */
- public void setToStationName(String toStationName) {
- this.toStationName = toStationName;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getValidRegionDesc()
- */
- public String getValidRegionDesc() {
- return validRegionDesc;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setValidRegionDesc(java.lang.String)
- */
- public void setValidRegionDesc(String validRegionDesc) {
- this.validRegionDesc = validRegionDesc;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getValidRegionList()
- */
- public Collection getValidRegionList() {
- return validRegionList;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#addValidRegionList(org.uic.ticket.api.spec.IRegionalValidity)
- */
- public void addValidRegionList(IRegionalValidity validRegion) {
- this.validRegionList.add(validRegion);
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getReturnDescription()
- */
- public IReturnRouteDescription getReturnDescription() {
- return returnDescription;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setReturnDescription(org.uic.ticket.api.spec.IReturnRouteDescription)
- */
- public void setReturnDescription(IReturnRouteDescription returnDescription) {
- this.returnDescription = returnDescription;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getValidFrom()
- */
- public Date getValidFrom() {
- return validFrom;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setValidFrom(java.util.Date)
- */
- public void setValidFrom(Date validFrom) {
- this.validFrom = validFrom;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getValidUntil()
- */
- public Date getValidUntil() {
- return validUntil;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setValidUntil(java.util.Date)
- */
- public void setValidUntil(Date validUntil) {
- this.validUntil = validUntil;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getClassCode()
- */
- public ITravelClassType getClassCode() {
- return classCode;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#setClassCode(org.uic.ticket.api.asn.om.TravelClassType)
- */
- public void setClassCode(ITravelClassType classCode) {
- this.classCode = classCode;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getIncludedCarriers()
- */
- public Collection getIncludedCarriers() {
- return includedCarriers;
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#addIncludedCarrier(java.lang.Integer)
- */
- public void addIncludedCarrier(String carrier) {
- this.includedCarriers.add(carrier);
- }
-
- /* (nicht-Javadoc)
- * @see org.uic.ticket.api.spec.ICounterMark#getIncludedServiceBrands()
- */
- public Collection