1. /*
  2. * Copyright (c) 2001 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE.
  10. * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11. */
  12. package com.sun.org.apache.xerces.internal.dom3.as;
  13. /**
  14. * @deprecated
  15. * The <code>ASObjectList</code> interface provides the abstraction of an
  16. * ordered collection of AS nodes, without defining or constraining how this
  17. * collection is implemented. <code>ASObjectList</code> objects in the DOM
  18. * AS are live.
  19. * <p>See also the <a href='http://www.w3.org/TR/2001/WD-DOM-Level-3-ASLS-20011025'>Document Object Model (DOM) Level 3 Abstract Schemas and Load
  20. and Save Specification</a>.
  21. */
  22. public interface ASObjectList {
  23. /**
  24. * The number of <code>ASObjects</code> in the list. The range of valid
  25. * child node indices is 0 to <code>length-1</code> inclusive.
  26. */
  27. public int getLength();
  28. /**
  29. * Returns the <code>index</code>th item in the collection. The index
  30. * starts at 0. If <code>index</code> is greater than or equal to the
  31. * number of nodes in the list, this returns <code>null</code>.
  32. * @param index index into the collection.
  33. * @return The <code>ASObject</code> at the <code>index</code>th position
  34. * in the <code>ASObjectList</code>, or <code>null</code> if that is
  35. * not a valid index.
  36. */
  37. public ASObject item(int index);
  38. }