1. package org.omg.DynamicAny;
  2. /**
  3. * org/omg/DynamicAny/DynEnumOperations.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/DynamicAny/DynamicAny.idl
  6. * Monday, February 23, 2004 7:03:08 AM GMT
  7. */
  8. /**
  9. * DynEnum objects support the manipulation of IDL enumerated values.
  10. * The current position of a DynEnum is always -1.
  11. */
  12. public interface DynEnumOperations extends org.omg.DynamicAny.DynAnyOperations
  13. {
  14. /**
  15. * Returns the value of the DynEnum as an IDL identifier.
  16. */
  17. String get_as_string ();
  18. /**
  19. * Sets the value of the DynEnum to the enumerated value whose IDL identifier is passed in the value parameter.
  20. *
  21. * @exception InvalidValue If value contains a string that is not a valid IDL identifier
  22. * for the corresponding enumerated type
  23. */
  24. void set_as_string (String value) throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
  25. /**
  26. * Returns the value of the DynEnum as the enumerated value's ordinal value.
  27. * Enumerators have ordinal values 0 to n-1, as they appear from left to right
  28. * in the corresponding IDL definition.
  29. */
  30. int get_as_ulong ();
  31. /**
  32. * Sets the value of the DynEnum as the enumerated value's ordinal value.
  33. *
  34. * @exception InvalidValue If value contains a value that is outside the range of ordinal values
  35. * for the corresponding enumerated type
  36. */
  37. void set_as_ulong (int value) throws org.omg.DynamicAny.DynAnyPackage.InvalidValue;
  38. } // interface DynEnumOperations