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 13 package org.apache.xerces.dom3.as; 14 15 /** 16 * @deprecated 17 * The <code>ASObjectList</code> interface provides the abstraction of an 18 * ordered collection of AS nodes, without defining or constraining how this 19 * collection is implemented. <code>ASObjectList</code> objects in the DOM 20 * AS are live. 21 * <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 22 and Save Specification</a>. 23 */ 24 public interface ASObjectList { 25 /** 26 * The number of <code>ASObjects</code> in the list. The range of valid 27 * child node indices is 0 to <code>length-1</code> inclusive. 28 */ 29 public int getLength(); 30 31 /** 32 * Returns the <code>index</code>th item in the collection. The index 33 * starts at 0. If <code>index</code> is greater than or equal to the 34 * number of nodes in the list, this returns <code>null</code>. 35 * @param index index into the collection. 36 * @return The <code>ASObject</code> at the <code>index</code>th position 37 * in the <code>ASObjectList</code>, or <code>null</code> if that is 38 * not a valid index. 39 */ 40 public ASObject item(int index); 41 42 } 43