1. /*
  2. * @(#)DynEnum.java 1.10 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /** Represents a <tt>DynAny</tt> object associated
  9. * with an IDL enum.
  10. */
  11. public interface DynEnum extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
  12. {
  13. /**
  14. * Return the value of the IDL enum stored in this
  15. * <code>DynEnum</code> as a string.
  16. *
  17. * @return the stringified value.
  18. */
  19. public String value_as_string();
  20. /**
  21. * Set a particular enum in this <code>DynEnum</code>.
  22. *
  23. * @param arg the string corresponding to the value.
  24. */
  25. public void value_as_string(String arg);
  26. /**
  27. * Return the value of the IDL enum as a Java int.
  28. *
  29. * @return the integer value.
  30. */
  31. public int value_as_ulong();
  32. /**
  33. * Set the value of the IDL enum.
  34. *
  35. * @param arg the int value of the enum.
  36. */
  37. public void value_as_ulong(int arg);
  38. }