OSDN Git Service

Version 0.11
[bm-asn1/bm-asn1.git] / jp / bitmeister / asn1 / sample / FrightStatus.java
1 /*
2  * Copyright 2011 BitMeister Inc.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package jp.bitmeister.asn1.sample;
17
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;
27
28 @ASN1ModuleRef(FrightStatusTypes.class)
29 @ASN1Tag(value = 0, tagClass = ASN1TagClass.APPLICATION, tagMode = ASN1TagMode.IMPLICIT)
30 public class FrightStatus extends SEQUENCE {
31
32         @ASN1Element(0)
33         public FrightNumber frightNo;
34         
35         @ASN1Element(1)
36         @ASN1Tag(value = 0, tagMode = ASN1TagMode.IMPLICIT)
37         public Information departure;
38         
39         @ASN1Element(2)
40         @ASN1Tag(value = 1, tagMode = ASN1TagMode.IMPLICIT)
41         public Information arrival;
42         
43         @ASN1Element(3)
44         public Status status;
45         
46         public FrightStatus() {}
47
48         public FrightStatus(FrightNumber frightNo, Information departure,
49                         Information arrival, Status status) {
50                 this.frightNo = frightNo;
51                 this.departure = departure;
52                 this.arrival = arrival;
53                 this.status = status;
54         }
55         
56 }