1. /*
  2. * @(#)DynSequence.java 1.4 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /** The DynArray interface represents a DynAny object which is associated
  9. * with an IDL sequence.
  10. */
  11. public interface DynSequence extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
  12. {
  13. /**
  14. * Return the length of the sequence represented in this
  15. * <code>DynFixed</code>.
  16. *
  17. * @return an integer length.
  18. */
  19. public int length();
  20. /**
  21. * Set the length of the sequence represented in this
  22. * <code>DynFixed</code>.
  23. *
  24. * @param arg the length.
  25. */
  26. public void length(int arg);
  27. /**
  28. * Return all the value of all elements in this sequence.
  29. *
  30. * @return an array of <code>Any</code>s.
  31. */
  32. public org.omg.CORBA.Any[] get_elements();
  33. /**
  34. * Set the values of all elements in this sequence.
  35. *
  36. * @param value the array of <code>Any</code>s.
  37. * @exception InvalidSeq is thrown if the array of values is bad.
  38. */
  39. public void set_elements(org.omg.CORBA.Any[] value)
  40. throws org.omg.CORBA.DynAnyPackage.InvalidSeq;
  41. }