KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > mof > Model > AggregationKind


1 package org.omg.mof.Model;
2
3
4 /**
5 * org/omg/mof/Model/AggregationKind.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.1"
7 * from mof1.idl
8 * lundi 17 mars 2003 15 h 01 CET
9 */

10
11
12 //
13
public class AggregationKind implements org.omg.CORBA.portable.IDLEntity JavaDoc
14 {
15   private int __value;
16   private static int __size = 3;
17   private static org.omg.mof.Model.AggregationKind[] __array = new org.omg.mof.Model.AggregationKind [__size];
18
19   public static final int _none = 0;
20   public static final org.omg.mof.Model.AggregationKind none = new org.omg.mof.Model.AggregationKind(_none);
21   public static final int _shared = 1;
22   public static final org.omg.mof.Model.AggregationKind shared = new org.omg.mof.Model.AggregationKind(_shared);
23   public static final int _composite = 2;
24   public static final org.omg.mof.Model.AggregationKind composite = new org.omg.mof.Model.AggregationKind(_composite);
25
26   public int value ()
27   {
28     return __value;
29   }
30
31   public static org.omg.mof.Model.AggregationKind from_int (int value)
32   {
33     if (value >= 0 && value < __size)
34       return __array[value];
35     else
36       throw new org.omg.CORBA.BAD_PARAM JavaDoc ();
37   }
38
39   protected AggregationKind (int value)
40   {
41     __value = value;
42     __array[__value] = this;
43   }
44 } // class AggregationKind
45
Popular Tags