1. /*
  2. * @(#)DynValue.java 1.15 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. /**
  9. * The representation of a <code>DynAny</code> object that is associated
  10. * with an IDL value type.
  11. */
  12. public interface DynValue extends org.omg.CORBA.Object, org.omg.CORBA.DynAny {
  13. /**
  14. * Returns the name of the current member while traversing a
  15. * <code>DynAny</code> object that represents a Value object.
  16. *
  17. * @return the name of the current member
  18. */
  19. String current_member_name();
  20. /**
  21. * Returns the <code>TCKind</code> object that describes the current member.
  22. *
  23. * @return the <code>TCKind</code> object corresponding to the current
  24. * member
  25. */
  26. TCKind current_member_kind();
  27. /**
  28. * Returns an array containing all the members of the value object
  29. * stored in this <code>DynValue</code>.
  30. *
  31. * @return an array of name-value pairs.
  32. * @see #set_members
  33. */
  34. org.omg.CORBA.NameValuePair[] get_members();
  35. /**
  36. * Sets the members of the value object this <code>DynValue</code>
  37. * object represents to the given array of <code>NameValuePair</code>
  38. * objects.
  39. *
  40. * @param value the array of name-value pairs to be set
  41. * @throws org.omg.CORBA.DynAnyPackage.InvalidSeq
  42. * if an inconsistent value is part of the given array
  43. * @see #get_members
  44. */
  45. void set_members(NameValuePair[] value)
  46. throws org.omg.CORBA.DynAnyPackage.InvalidSeq;
  47. }