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