org.geotools.data.store
Class ReTypingIterator

Object
  extended by ReTypingIterator
All Implemented Interfaces:
Iterator<SimpleFeature>

Deprecated. Please use ReTypingFeatureIterator

public class ReTypingIterator
extends Object
implements Iterator<SimpleFeature>

Iterator wrapper which re-types features on the fly based on a target feature type.

Author:
Justin Deoliveira, The Open Planning Project

Constructor Summary
ReTypingIterator(Iterator<SimpleFeature> delegate, SimpleFeatureType source, SimpleFeatureType target)
          Deprecated.  
 
Method Summary
 Iterator<SimpleFeature> getDelegate()
          Deprecated.  
 boolean hasNext()
          Deprecated.  
 SimpleFeature next()
          Deprecated.  
 void remove()
          Deprecated.  
protected  AttributeDescriptor[] typeAttributes(SimpleFeatureType original, SimpleFeatureType target)
          Deprecated. Supplies mapping from origional to target FeatureType.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReTypingIterator

public ReTypingIterator(Iterator<SimpleFeature> delegate,
                        SimpleFeatureType source,
                        SimpleFeatureType target)
Deprecated. 
Method Detail

getDelegate

public Iterator<SimpleFeature> getDelegate()
Deprecated. 

remove

public void remove()
Deprecated. 
Specified by:
remove in interface Iterator<SimpleFeature>

hasNext

public boolean hasNext()
Deprecated. 
Specified by:
hasNext in interface Iterator<SimpleFeature>

next

public SimpleFeature next()
Deprecated. 
Specified by:
next in interface Iterator<SimpleFeature>

typeAttributes

protected AttributeDescriptor[] typeAttributes(SimpleFeatureType original,
                                               SimpleFeatureType target)
Deprecated. 
Supplies mapping from origional to target FeatureType.

Will also ensure that origional can cover target

Parameters:
target - Desired FeatureType
origional - Origional FeatureType
Returns:
Mapping from originoal to target FeatureType
Throws:
IllegalArgumentException - if unable to provide a mapping


Copyright © 1996-2014 Geotools. All Rights Reserved.