|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectReTypingFeatureIterator
public class ReTypingFeatureIterator
FeatureIterator wrapper which re-types features on the fly based on a target feature type.
Constructor Summary | |
---|---|
ReTypingFeatureIterator(SimpleFeatureIterator delegate,
SimpleFeatureType source,
SimpleFeatureType target)
|
Method Summary | |
---|---|
void |
close()
Closes this iterator and releases any system resources associated with it. |
SimpleFeatureIterator |
getDelegate()
|
boolean |
hasNext()
Does another Feature exist in this Iteration. |
SimpleFeature |
next()
Get the next Feature in this iteration. |
protected AttributeDescriptor[] |
typeAttributes(SimpleFeatureType original,
SimpleFeatureType target)
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 |
---|
public ReTypingFeatureIterator(SimpleFeatureIterator delegate, SimpleFeatureType source, SimpleFeatureType target)
Method Detail |
---|
public SimpleFeatureIterator getDelegate()
public boolean hasNext()
FeatureIterator
Iterator defin: Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
hasNext
in interface FeatureIterator<SimpleFeature>
public SimpleFeature next()
FeatureIterator
next
in interface FeatureIterator<SimpleFeature>
protected AttributeDescriptor[] typeAttributes(SimpleFeatureType original, SimpleFeatureType target)
Will also ensure that origional can cover target
target
- Desired FeatureTypeorigional
- Origional FeatureType
IllegalArgumentException
- if unable to provide a mappingpublic void close()
FeatureIterator
close
in interface Closeable
close
in interface FeatureIterator<SimpleFeature>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |