1. /*
  2. * @(#)DynEnum.java 1.6 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package org.omg.CORBA;
  11. /** The DynEnum interface represents a DynAny object which is associated
  12. * with an IDL enum.
  13. */
  14. public interface DynEnum extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
  15. {
  16. /**
  17. * Return the value of the IDL enum stored in this
  18. * <code>DynEnum</code> as a string.
  19. *
  20. * @return the stringified value.
  21. */
  22. public String value_as_string();
  23. /**
  24. * Set a particular enum in this <code>DynEnum</code>.
  25. *
  26. * @param arg the string corresponding to the value.
  27. */
  28. public void value_as_string(String arg);
  29. /**
  30. * Return the value of the IDL enum as a Java int.
  31. *
  32. * @return the integer value.
  33. */
  34. public int value_as_ulong();
  35. /**
  36. * Set the value of the IDL enum.
  37. *
  38. * @param arg the int value of the enum.
  39. */
  40. public void value_as_ulong(int arg);
  41. }