summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/salamander/svg/docStruct/SVGElementInstanceList.java
blob: 1d9a0174f2b30168a291146285c7c33fdd5e3dc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * SVGElementInstanceList.java
 *
 * Created on April 12, 2007, 6:28 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.kitfox.salamander.svg.docStruct;

/**
 * 
 * The SVGElementInstanceList  interface provides the abstraction of an ordered collection of SVGElementInstance  objects, without defining or constraining how this collection is implemented.
 * @author kitfox
 */
public interface SVGElementInstanceList
{
    /**
     * The number of SVGElementInstance  objects in the list. The range of valid child indices is 0 to length-1 inclusive.
     */
    public int getLength();
    /**
     * Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.
     * @param index Index into the collection.
     * @return The SVGElementInstance  object at the indexth position in the SVGElementInstanceList, or null if that is not a valid index.
     */
    public SVGElementInstance item(int index);
}