1. /*
  2. * @(#)DynSequence.java 1.14 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 sequence.
  11. * @deprecated Use the new <a href="../DynamicAny/DynSequence.html">DynSequence</a> instead
  12. */
  13. @Deprecated
  14. public interface DynSequence extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
  15. {
  16. /**
  17. * Returns the length of the sequence represented by this
  18. * <code>DynFixed</code> object.
  19. *
  20. * @return the length of the sequence
  21. */
  22. public int length();
  23. /**
  24. * Sets the length of the sequence represented by this
  25. * <code>DynFixed</code> object to the given argument.
  26. *
  27. * @param arg the length of the sequence
  28. */
  29. public void length(int arg);
  30. /**
  31. * Returns the value of every element in this sequence.
  32. *
  33. * @return an array of <code>Any</code> objects containing the values in
  34. * the sequence
  35. * @see #set_elements
  36. */
  37. public org.omg.CORBA.Any[] get_elements();
  38. /**
  39. * Sets the values of all elements in this sequence with the given
  40. * array.
  41. *
  42. * @param value the array of <code>Any</code> objects to be set
  43. * @exception InvalidSeq if the array of values is bad
  44. * @see #get_elements
  45. */
  46. public void set_elements(org.omg.CORBA.Any[] value)
  47. throws org.omg.CORBA.DynAnyPackage.InvalidSeq;
  48. }