1 /* 2 * Copyright 2003,2004 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package org.apache.xerces.xs; 18 19 import org.w3c.dom.ls.LSInput; 20 21 /** 22 * The <code>LSInputList</code> interface provides the abstraction of an 23 * ordered collection of <code>LSInput</code>s, without defining or 24 * constraining how this collection is implemented. 25 */ 26 public interface LSInputList { 27 /** 28 * The number of <code>LSInput</code>s in the list. The range of valid 29 * child object indices is 0 to <code>length-1</code> inclusive. 30 */ 31 public int getLength(); 32 33 /** 34 * Returns the <code>index</code>th item in the collection or 35 * <code>null</code> if <code>index</code> is greater than or equal to 36 * the number of objects in the list. The index starts at 0. 37 * @param index index into the collection. 38 * @return The <code>LSInput</code> at the <code>index</code>th 39 * position in the <code>LSInputList</code>, or <code>null</code> if 40 * the index specified is not valid. 41 */ 42 public LSInput item(int index); 43 44 } 45