Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / FeatureSet.java @ 24496

History | View | Annotate | Download (1.5 KB)

1
package org.gvsig.fmap.dal.feature;
2

    
3
import java.util.Iterator;
4
import java.util.List;
5

    
6
import org.gvsig.fmap.dal.DataSet;
7
import org.gvsig.fmap.dal.exceptions.DataException;
8

    
9
public interface FeatureSet extends DataSet {
10

    
11
        public FeatureType getDefaultFeatureType();
12
        public List getFeatureTypes();
13
    public long getSize() throws DataException;
14

    
15
        /**
16
         * Returns an iterator over the elements in this collection, in the order
17
         * (if any) defined when the collection was obtained.
18
         *
19
         * The iterator starts at the specified position in this collection. The
20
         * specified index indicates the first element that would be returned by an
21
         * initial call to the <tt>next</tt> method. An initial call to the
22
         * <tt>previous</tt> method would return the element with the specified
23
         * index minus one.
24
         *
25
         * @param index
26
         *            index of first element to be returned from the iterator (by a
27
         *            call to the <tt>next</tt> method).
28
         * @return an iterator of the elements in this collection (in proper
29
         *         sequence), starting at the specified position in the collection.
30
         * @throws IndexOutOfBoundsException
31
         *             if the index is out of range (index &lt; 0 || index &gt;
32
         *             size()).
33
         */
34
        Iterator iterator(long index) throws DataException;
35

    
36
        Iterator iterator() throws DataException;
37

    
38
        boolean isEmpty() throws DataException;
39
        public Iterator fastIterator() throws DataException;
40

    
41
        public Iterator fastIterator(long index) throws DataException;
42
}