org.geotools.caching
Class FeatureCollectingVisitor
java.lang.Object
org.geotools.caching.FeatureCollectingVisitor
- All Implemented Interfaces:
- Visitor
public class FeatureCollectingVisitor
- extends java.lang.Object
- implements Visitor
A visitor that collects features into
a In-Memory FeatureCollection
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FeatureCollectingVisitor
public FeatureCollectingVisitor(org.opengis.feature.simple.SimpleFeatureType type)
visitData
public void visitData(Data<?> d)
- Specified by:
visitData
in interface Visitor
- Parameters:
d
- Must be a SimpleFeature
visitNode
public void visitNode(Node n)
- Specified by:
visitNode
in interface Visitor
getCollection
public FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getCollection()
- Returns:
- the collection of features visited
getVisitedNodes
public int getVisitedNodes()
- Returns:
- the number of nodes visited
isDataVisitor
public boolean isDataVisitor()
- Specified by:
isDataVisitor
in interface Visitor
Copyright © 1996-2010 Geotools. All Rights Reserved.