001    package org.omg.Security;
002    
003    
004    /**
005    * org/omg/Security/DayOfTheWeek.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    * Saturday, September 22, 2012 10:56:39 AM CEST
009    */
010    
011    public class DayOfTheWeek implements org.omg.CORBA.portable.IDLEntity
012    {
013      private        int __value;
014      private static int __size = 7;
015      private static org.omg.Security.DayOfTheWeek[] __array = new org.omg.Security.DayOfTheWeek [__size];
016    
017      public static final int _Monday = 0;
018      public static final org.omg.Security.DayOfTheWeek Monday = new org.omg.Security.DayOfTheWeek(_Monday);
019      public static final int _Tuesday = 1;
020      public static final org.omg.Security.DayOfTheWeek Tuesday = new org.omg.Security.DayOfTheWeek(_Tuesday);
021      public static final int _Wednesday = 2;
022      public static final org.omg.Security.DayOfTheWeek Wednesday = new org.omg.Security.DayOfTheWeek(_Wednesday);
023      public static final int _Thursday = 3;
024      public static final org.omg.Security.DayOfTheWeek Thursday = new org.omg.Security.DayOfTheWeek(_Thursday);
025      public static final int _Friday = 4;
026      public static final org.omg.Security.DayOfTheWeek Friday = new org.omg.Security.DayOfTheWeek(_Friday);
027      public static final int _Saturday = 5;
028      public static final org.omg.Security.DayOfTheWeek Saturday = new org.omg.Security.DayOfTheWeek(_Saturday);
029      public static final int _Sunday = 6;
030      public static final org.omg.Security.DayOfTheWeek Sunday = new org.omg.Security.DayOfTheWeek(_Sunday);
031    
032      public int value ()
033      {
034        return __value;
035      }
036    
037      public static org.omg.Security.DayOfTheWeek from_int (int value)
038      {
039        if (value >= 0 && value < __size)
040          return __array[value];
041        else
042          throw new org.omg.CORBA.BAD_PARAM ();
043      }
044    
045      protected DayOfTheWeek (int value)
046      {
047        __value = value;
048        __array[__value] = this;
049      }
050    } // class DayOfTheWeek