1320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson/* 2320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * Copyright (c) 2004 World Wide Web Consortium, 3320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * 4320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * (Massachusetts Institute of Technology, European Research Consortium for 5320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * Informatics and Mathematics, Keio University). All Rights Reserved. This 6320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * work is distributed under the W3C(r) Software License [1] in the hope that 7320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * it will be useful, but WITHOUT ANY WARRANTY; without even the implied 8320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * 10320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 11320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson */ 12320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson 13320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilsonpackage org.w3c.dom; 14320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson 15320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson/** 16f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * The <code>DOMImplementationList</code> interface provides the abstraction 17f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * of an ordered collection of DOM implementations, without defining or 18f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * constraining how this collection is implemented. The items in the 19f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * <code>DOMImplementationList</code> are accessible via an integral index, 20f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * starting from 0. 21320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407'>Document Object Model (DOM) Level 3 Core Specification</a>. 22320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * @since DOM Level 3 23320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson */ 24320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilsonpublic interface DOMImplementationList { 25320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson /** 26f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * Returns the <code>index</code>th item in the collection. If 27f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * <code>index</code> is greater than or equal to the number of 28f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * <code>DOMImplementation</code>s in the list, this returns 29f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * <code>null</code>. 30320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * @param index Index into the collection. 31320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson * @return The <code>DOMImplementation</code> at the <code>index</code> 32f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * th position in the <code>DOMImplementationList</code>, or 33f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * <code>null</code> if that is not a valid index. 34320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson */ 35320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson public DOMImplementation item(int index); 36320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson 37320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson /** 38f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * The number of <code>DOMImplementation</code>s in the list. The range 39f33eae7e84eb6d3b0f4e86b59605bb3de73009f3Elliott Hughes * of valid child node indices is 0 to <code>length-1</code> inclusive. 40320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson */ 41320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson public int getLength(); 42320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson 43320c9890e8241fb0ad05de6fa5e6c3eb3aece159Jesse Wilson} 44