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