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