nitind | 958d79a | 2004-11-23 19:23:00 +0000 | [diff] [blame] | 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2004 IBM Corporation and others. |
| 3 | * All rights reserved. This program and the accompanying materials |
| 4 | * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | * which accompanies this distribution, and is available at |
| 6 | * http://www.eclipse.org/legal/epl-v10.html |
| 7 | * |
| 8 | * Contributors: |
| 9 | * IBM Corporation - initial API and implementation |
| 10 | *******************************************************************************/ |
| 11 | package org.eclipse.wst.css.core.internal.document; |
| 12 | |
| 13 | |
| 14 | |
| 15 | import org.w3c.dom.stylesheets.StyleSheet; |
| 16 | import org.w3c.dom.stylesheets.StyleSheetList; |
| 17 | |
| 18 | /** |
| 19 | * |
| 20 | */ |
| 21 | class StyleSheetListImpl extends AbstractCSSNodeList implements StyleSheetList { |
| 22 | |
| 23 | /** |
| 24 | * StyleSheetListImpl constructor comment. |
| 25 | */ |
| 26 | StyleSheetListImpl() { |
| 27 | super(); |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Used to retrieve a style sheet by ordinal index. If index is greater |
| 32 | * than or equal to the number of style sheets in the list, this returns |
| 33 | * <code>null</code>. |
| 34 | * |
| 35 | * @param indexIndex |
| 36 | * into the collection |
| 37 | * @return The style sheet at the <code>index</code> position in the |
| 38 | * <code>StyleSheetList</code>, or <code>null</code> if that |
| 39 | * is not a valid index. |
| 40 | */ |
| 41 | public StyleSheet item(int index) { |
| 42 | return (StyleSheet) itemImpl(index); |
| 43 | } |
| 44 | } |