org.geotools.caching
Class FeatureCollectingVisitor

java.lang.Object
  extended by 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


Constructor Summary
FeatureCollectingVisitor(org.opengis.feature.simple.SimpleFeatureType type)
           
 
Method Summary
 FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getCollection()
           
 int getVisitedNodes()
           
 boolean isDataVisitor()
           
 void visitData(Data<?> d)
           
 void visitNode(Node n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureCollectingVisitor

public FeatureCollectingVisitor(org.opengis.feature.simple.SimpleFeatureType type)
Method Detail

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.