001    package org.omg.Security;
002    
003    
004    /**
005    * org/omg/Security/DelegationMode.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    
012    // Delegation mode which can be administered
013    public class DelegationMode implements org.omg.CORBA.portable.IDLEntity
014    {
015      private        int __value;
016      private static int __size = 3;
017      private static org.omg.Security.DelegationMode[] __array = new org.omg.Security.DelegationMode [__size];
018    
019      public static final int _SecDelModeNoDelegation = 0;
020      public static final org.omg.Security.DelegationMode SecDelModeNoDelegation = new org.omg.Security.DelegationMode(_SecDelModeNoDelegation);
021      public static final int _SecDelModeSimpleDelegation = 1;
022      public static final org.omg.Security.DelegationMode SecDelModeSimpleDelegation = new org.omg.Security.DelegationMode(_SecDelModeSimpleDelegation);
023      public static final int _SecDelModeCompositeDelegation = 2;
024      public static final org.omg.Security.DelegationMode SecDelModeCompositeDelegation = new org.omg.Security.DelegationMode(_SecDelModeCompositeDelegation);
025    
026      public int value ()
027      {
028        return __value;
029      }
030    
031      public static org.omg.Security.DelegationMode from_int (int value)
032      {
033        if (value >= 0 && value < __size)
034          return __array[value];
035        else
036          throw new org.omg.CORBA.BAD_PARAM ();
037      }
038    
039      protected DelegationMode (int value)
040      {
041        __value = value;
042        __array[__value] = this;
043      }
044    } // class DelegationMode