001    package org.omg.Security;
002    
003    
004    /**
005    * org/omg/Security/DelegationDirective.java .
006    * Generated by the IDL-to-Java compiler (portable), version "3.2"
007    * from /builddir/build/BUILD/geronimo-specs-1.6/geronimo-spec-corba/src/main/idl/Security.idl
008    * Monday, June 18, 2012 10:36:15 AM CEST
009    */
010    
011    public class DelegationDirective implements org.omg.CORBA.portable.IDLEntity
012    {
013      private        int __value;
014      private static int __size = 2;
015      private static org.omg.Security.DelegationDirective[] __array = new org.omg.Security.DelegationDirective [__size];
016    
017      public static final int _Delegate = 0;
018      public static final org.omg.Security.DelegationDirective Delegate = new org.omg.Security.DelegationDirective(_Delegate);
019      public static final int _NoDelegate = 1;
020      public static final org.omg.Security.DelegationDirective NoDelegate = new org.omg.Security.DelegationDirective(_NoDelegate);
021    
022      public int value ()
023      {
024        return __value;
025      }
026    
027      public static org.omg.Security.DelegationDirective from_int (int value)
028      {
029        if (value >= 0 && value < __size)
030          return __array[value];
031        else
032          throw new org.omg.CORBA.BAD_PARAM ();
033      }
034    
035      protected DelegationDirective (int value)
036      {
037        __value = value;
038        __array[__value] = this;
039      }
040    } // class DelegationDirective