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