2 * Copyright 2011 BitMeister Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package jp.bitmeister.asn1.sample;
18 import jp.bitmeister.asn1.annotation.ASN1Element;
19 import jp.bitmeister.asn1.annotation.ASN1ModuleRef;
20 import jp.bitmeister.asn1.annotation.ASN1Tag;
21 import jp.bitmeister.asn1.sample.FrightStatusTypes.FrightNumber;
22 import jp.bitmeister.asn1.sample.FrightStatusTypes.Information;
23 import jp.bitmeister.asn1.sample.FrightStatusTypes.Status;
24 import jp.bitmeister.asn1.type.ASN1TagClass;
25 import jp.bitmeister.asn1.type.ASN1TagMode;
26 import jp.bitmeister.asn1.type.builtin.SEQUENCE;
28 @ASN1ModuleRef(FrightStatusTypes.class)
29 @ASN1Tag(value = 0, tagClass = ASN1TagClass.APPLICATION, tagMode = ASN1TagMode.IMPLICIT)
30 public class FrightStatus extends SEQUENCE {
33 public FrightNumber frightNo;
36 @ASN1Tag(value = 0, tagMode = ASN1TagMode.IMPLICIT)
37 public Information departure;
40 @ASN1Tag(value = 1, tagMode = ASN1TagMode.IMPLICIT)
41 public Information arrival;
46 public FrightStatus() {}
48 public FrightStatus(FrightNumber frightNo, Information departure,
49 Information arrival, Status status) {
50 this.frightNo = frightNo;
51 this.departure = departure;
52 this.arrival = arrival;