001    package org.omg.Security;
002    
003    
004    /**
005    * org/omg/Security/DelegationState.java .
006    * Generated by the IDL-to-Java compiler (portable), version "3.2"
007    * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/Security.idl
008    * Saturday, November 26, 2011 9:53:35 PM UTC
009    */
010    
011    
012    // Delegation related
013    public class DelegationState implements org.omg.CORBA.portable.IDLEntity
014    {
015      private        int __value;
016      private static int __size = 2;
017      private static org.omg.Security.DelegationState[] __array = new org.omg.Security.DelegationState [__size];
018    
019      public static final int _SecInitiator = 0;
020      public static final org.omg.Security.DelegationState SecInitiator = new org.omg.Security.DelegationState(_SecInitiator);
021      public static final int _SecDelegate = 1;
022      public static final org.omg.Security.DelegationState SecDelegate = new org.omg.Security.DelegationState(_SecDelegate);
023    
024      public int value ()
025      {
026        return __value;
027      }
028    
029      public static org.omg.Security.DelegationState from_int (int value)
030      {
031        if (value >= 0 && value < __size)
032          return __array[value];
033        else
034          throw new org.omg.CORBA.BAD_PARAM ();
035      }
036    
037      protected DelegationState (int value)
038      {
039        __value = value;
040        __array[__value] = this;
041      }
042    } // class DelegationState