|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDecoratingSimpleFeatureCollection
ReTypingFeatureCollection
public class ReTypingFeatureCollection
SimpleFeatureCollection decorator which decorates a feature collection "re-typing" its schema based on attributes specified in a query.
Field Summary |
---|
Fields inherited from class DecoratingSimpleFeatureCollection |
---|
delegate |
Constructor Summary | |
---|---|
ReTypingFeatureCollection(FeatureCollection<SimpleFeatureType,SimpleFeature> delegate,
SimpleFeatureType featureType)
|
|
ReTypingFeatureCollection(SimpleFeatureCollection delegate,
SimpleFeatureType featureType)
|
Method Summary | |
---|---|
protected boolean |
canDelegate(FeatureVisitor visitor)
Methods for subclass to override in order to determine if the supplied visitor can be passed to the delegate collection. |
SimpleFeatureIterator |
features()
Obtain a SimpleFeatureIterator of the Features within this SimpleFeatureCollection. |
SimpleFeatureType |
getSchema()
The schema for the child feature members of this collection. |
FeatureReader<SimpleFeatureType,SimpleFeature> |
reader()
|
Methods inherited from class DecoratingSimpleFeatureCollection |
---|
accepts, contains, containsAll, equals, getBounds, getID, hashCode, isEmpty, size, sort, subCollection, toArray, toArray |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReTypingFeatureCollection(FeatureCollection<SimpleFeatureType,SimpleFeature> delegate, SimpleFeatureType featureType)
public ReTypingFeatureCollection(SimpleFeatureCollection delegate, SimpleFeatureType featureType)
Method Detail |
---|
public SimpleFeatureType getSchema()
FeatureCollection
Represents the most general FeatureType in common to all the features in this collection.
getSchema
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
getSchema
in class DecoratingSimpleFeatureCollection
public FeatureReader<SimpleFeatureType,SimpleFeature> reader() throws IOException
IOException
public SimpleFeatureIterator features()
SimpleFeatureCollection
The implementation of FeatureIterator must adhere to the rules of
fail-fast concurrent modification. In addition (to allow for
resource backed collections) the SimpleFeatureIterator.close()
method must be called.
Example use:
SimpleFeatureIterator iterator=collection.features();
try {
while( iterator.hasNext() ){
SimpleFeature feature = iterator.next();
System.out.println( feature.getID() );
}
}
finally {
iterator.close();
}
features
in interface SimpleFeatureCollection
features
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
features
in class DecoratingSimpleFeatureCollection
protected boolean canDelegate(FeatureVisitor visitor)
DecoratingSimpleFeatureCollection
The default is false and the visitor receives the decoraeted features.
canDelegate
in class DecoratingSimpleFeatureCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |