1. package org.omg.PortableServer;
  2. /**
  3. * org/omg/PortableServer/IdUniquenessPolicyValue.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/org/omg/PortableServer/poa.idl
  6. * Wednesday, September 15, 2004 10:28:40 AM GMT
  7. */
  8. /**
  9. * IdUniquenessPolicyValue can have the following values.
  10. * UNIQUE_ID - Servants activated with that POA support
  11. * exactly one Object Id. MULTIPLE_ID - a servant
  12. * activated with that POA may support one or more
  13. * Object Ids.
  14. */
  15. public class IdUniquenessPolicyValue implements org.omg.CORBA.portable.IDLEntity
  16. {
  17. private int __value;
  18. private static int __size = 2;
  19. private static org.omg.PortableServer.IdUniquenessPolicyValue[] __array = new org.omg.PortableServer.IdUniquenessPolicyValue [__size];
  20. public static final int _UNIQUE_ID = 0;
  21. public static final org.omg.PortableServer.IdUniquenessPolicyValue UNIQUE_ID = new org.omg.PortableServer.IdUniquenessPolicyValue(_UNIQUE_ID);
  22. public static final int _MULTIPLE_ID = 1;
  23. public static final org.omg.PortableServer.IdUniquenessPolicyValue MULTIPLE_ID = new org.omg.PortableServer.IdUniquenessPolicyValue(_MULTIPLE_ID);
  24. public int value ()
  25. {
  26. return __value;
  27. }
  28. public static org.omg.PortableServer.IdUniquenessPolicyValue from_int (int value)
  29. {
  30. if (value >= 0 && value < __size)
  31. return __array[value];
  32. else
  33. throw new org.omg.CORBA.BAD_PARAM ();
  34. }
  35. protected IdUniquenessPolicyValue (int value)
  36. {
  37. __value = value;
  38. __array[__value] = this;
  39. }
  40. } // class IdUniquenessPolicyValue