summaryrefslogtreecommitdiffstats
path: root/src/org/uic/ticket/api/asn/omv1/SequenceOfTravelerId.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/uic/ticket/api/asn/omv1/SequenceOfTravelerId.java')
-rw-r--r--src/org/uic/ticket/api/asn/omv1/SequenceOfTravelerId.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/org/uic/ticket/api/asn/omv1/SequenceOfTravelerId.java b/src/org/uic/ticket/api/asn/omv1/SequenceOfTravelerId.java
new file mode 100644
index 0000000..40f33b0
--- /dev/null
+++ b/src/org/uic/ticket/api/asn/omv1/SequenceOfTravelerId.java
@@ -0,0 +1,27 @@
+package org.uic.ticket.api.asn.omv1;
+
+import java.util.Collection;
+import java.util.List;
+
+
+import net.gcdc.asn1.datatypes.Asn1SequenceOf;
+import net.gcdc.asn1.datatypes.IntRange;
+
+@IntRange(minValue=0,maxValue=254)
+public class SequenceOfTravelerId extends Asn1SequenceOf<Long> {
+ public SequenceOfTravelerId() { super(); }
+ public SequenceOfTravelerId(Collection<Long> coll) { super(coll); }
+
+ public SequenceOfTravelerId(List<Long> numbers) {
+ super();
+ for (Long number: numbers){
+ this.add(new Long(number));
+ }
+ }
+
+ public static SequenceOfTravelerId getSequence(List<Long> numList) {
+ if (numList == null || numList.isEmpty()) return null;
+ return new SequenceOfTravelerId(numList);
+ }
+
+} \ No newline at end of file