001 package org.omg.Security;
002
003
004 /**
005 * org/omg/Security/RightsCombinator.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 public class RightsCombinator implements org.omg.CORBA.portable.IDLEntity
012 {
013 private int __value;
014 private static int __size = 2;
015 private static org.omg.Security.RightsCombinator[] __array = new org.omg.Security.RightsCombinator [__size];
016
017 public static final int _SecAllRights = 0;
018 public static final org.omg.Security.RightsCombinator SecAllRights = new org.omg.Security.RightsCombinator(_SecAllRights);
019 public static final int _SecAnyRight = 1;
020 public static final org.omg.Security.RightsCombinator SecAnyRight = new org.omg.Security.RightsCombinator(_SecAnyRight);
021
022 public int value ()
023 {
024 return __value;
025 }
026
027 public static org.omg.Security.RightsCombinator 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 RightsCombinator (int value)
036 {
037 __value = value;
038 __array[__value] = this;
039 }
040 } // class RightsCombinator