Source code: org/omg/CosTradingRepos/ServiceTypeRepositoryPackage/ListOption.java
1 // **********************************************************************
2 //
3 // Generated by the ORBacus IDL to Java Translator
4 //
5 // Copyright (c) 2000
6 // Object Oriented Concepts, Inc.
7 // Billerica, MA, USA
8 //
9 // All Rights Reserved
10 //
11 // **********************************************************************
12
13 // Version: 4.0
14 // License: non-commercial
15
16 package org.omg.CosTradingRepos.ServiceTypeRepositoryPackage;
17
18 //
19 // IDL:omg.org/CosTradingRepos/ServiceTypeRepository/ListOption:1.0
20 //
21 /***/
22
23 final public class ListOption implements org.omg.CORBA.portable.IDLEntity
24 {
25 private static ListOption [] values_ = new ListOption[2];
26 private int value_;
27
28 public final static int _all = 0;
29 public final static ListOption all = new ListOption(_all);
30 public final static int _since = 1;
31 public final static ListOption since = new ListOption(_since);
32
33 protected
34 ListOption(int value)
35 {
36 values_[value] = this;
37 value_ = value;
38 }
39
40 public int
41 value()
42 {
43 return value_;
44 }
45
46 public static ListOption
47 from_int(int value)
48 {
49 return values_[value];
50 }
51 }