|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.feature.collection.AbstractFeatureCollection
org.geotools.feature.collection.SubFeatureCollection
org.geotools.feature.collection.SubFeatureList
public class SubFeatureList
Field Summary |
---|
Fields inherited from class org.geotools.feature.collection.SubFeatureCollection |
---|
collection, ff, filter |
Fields inherited from class org.geotools.feature.collection.AbstractFeatureCollection |
---|
id, listeners, open, schema |
Constructor Summary | |
---|---|
SubFeatureList(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> list,
org.opengis.filter.Filter filter)
|
|
SubFeatureList(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> list,
org.opengis.filter.Filter filter,
org.opengis.filter.sort.SortBy subSort)
Create a simple SubFeatureList with the provided filter. |
|
SubFeatureList(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> list,
java.util.List order)
|
|
SubFeatureList(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> list,
org.opengis.filter.sort.SortBy sort)
|
Method Summary | |
---|---|
boolean |
add(org.opengis.feature.simple.SimpleFeature feature)
Appends element. |
protected org.opengis.filter.Filter |
createFilter()
Lazy create a filter based on index |
protected java.util.List<org.opengis.filter.identity.FeatureId> |
createIndex()
Put this SubFeatureList in touch with its inner index |
org.opengis.feature.simple.SimpleFeature |
get(int position)
item at the specified index. |
org.opengis.feature.simple.SimpleFeature |
getFeatureMember(java.lang.String id)
Access Feature content by feature id. |
protected java.util.List<org.opengis.filter.identity.FeatureId> |
index()
|
int |
indexOf(org.opengis.feature.simple.SimpleFeature feature)
|
int |
lastIndexOf(org.opengis.feature.simple.SimpleFeature feature)
|
java.util.Iterator<org.opengis.feature.simple.SimpleFeature> |
openIterator()
Returns a quick iterator that uses get and size methods. |
org.opengis.feature.simple.SimpleFeature |
remove(int position)
|
org.opengis.feature.simple.SimpleFeature |
removeFeatureMember(java.lang.String id)
Optional Method |
FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> |
subList(org.opengis.filter.Filter subfilter)
Sublist of this sublist! |
Methods inherited from class org.geotools.feature.collection.SubFeatureCollection |
---|
accepts, clear, close, closeIterator, collection, features, filter, getBounds, getCount, getID, isEmpty, reader, remove, size, sort, subCollection |
Methods inherited from class org.geotools.feature.collection.AbstractFeatureCollection |
---|
accepts, addAll, addAll, addListener, close, contains, containsAll, getOpenIterators, getSchema, iterator, purge, removeAll, removeListener, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.geotools.feature.FeatureCollection |
---|
accepts, addAll, addAll, addListener, clear, close, close, contains, containsAll, features, getBounds, getID, getSchema, isEmpty, iterator, purge, remove, removeAll, removeListener, retainAll, size, sort, subCollection, toArray, toArray |
Constructor Detail |
---|
public SubFeatureList(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> list, org.opengis.filter.Filter filter)
public SubFeatureList(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> list, org.opengis.filter.sort.SortBy sort)
public SubFeatureList(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> list, org.opengis.filter.Filter filter, org.opengis.filter.sort.SortBy subSort)
filter
- public SubFeatureList(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> list, java.util.List order)
Method Detail |
---|
public org.opengis.feature.simple.SimpleFeature get(int position)
index
- index of item
java.lang.IndexOutOfBoundsException
- if index is not between 0 and sizeprotected org.opengis.filter.Filter createFilter()
createFilter
in class SubFeatureCollection
protected java.util.List<org.opengis.filter.identity.FeatureId> index()
protected java.util.List<org.opengis.filter.identity.FeatureId> createIndex()
public boolean add(org.opengis.feature.simple.SimpleFeature feature)
This implementation calls add(size(), o).
Note that this implementation throws an UnsupportedOperationException unless add(int, Object) is overridden.
add
in interface FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature>
add
in class SubFeatureCollection
item
- the Object element to be appended to this list.
java.lang.UnsupportedOperationException
- if the add method is not supported by this Set.
java.lang.ClassCastException
- if the class of the specified element prevents it from being
added to this set.
java.lang.IllegalArgumentException
- some aspect of this element prevents it from being added to
this collection.Collection.add(Object)
public int indexOf(org.opengis.feature.simple.SimpleFeature feature)
public int lastIndexOf(org.opengis.feature.simple.SimpleFeature feature)
public FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> subList(org.opengis.filter.Filter subfilter)
Implementation will ensure this does not get out of hand, order is maintained and only indexed once.
subList
in class AbstractFeatureCollection
public org.opengis.feature.simple.SimpleFeature getFeatureMember(java.lang.String id) throws java.util.NoSuchElementException
RandomFeatureAccess
getFeatureMember
in interface RandomFeatureAccess
java.util.NoSuchElementException
- if a Feature with the indicated id is not presentpublic org.opengis.feature.simple.SimpleFeature removeFeatureMember(java.lang.String id)
RandomFeatureAccess
removeFeatureMember
in interface RandomFeatureAccess
public org.opengis.feature.simple.SimpleFeature remove(int position)
public java.util.Iterator<org.opengis.feature.simple.SimpleFeature> openIterator()
As with all resource collections it is assumed that the iterator will be closed after use.
openIterator
in class SubFeatureCollection
#modCount
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |