org.geotools.data
Interface FeatureDiffReader

All Known Implementing Classes:
FeatureDiffReaderImpl

public interface FeatureDiffReader

Allows to evaluate the differences in the state of the data between two revisions

Author:
Andrea Aime - OpenGeo

Method Summary
 void close()
          Release the underlying resources associated with this reader.
 java.lang.String getFromVersion()
          The first version used to compute the difference
 org.opengis.feature.simple.SimpleFeatureType getSchema()
          Returns the feature type whose features are diffed with this reader
 java.lang.String getToVersion()
          The second version used to computed the difference
 boolean hasNext()
          Query whether this FeatureDiffReader has another FeatureDiff.
 FeatureDiff next()
          Reads the next FeatureDifference
 

Method Detail

getFromVersion

java.lang.String getFromVersion()
The first version used to compute the difference


getToVersion

java.lang.String getToVersion()
The second version used to computed the difference


getSchema

org.opengis.feature.simple.SimpleFeatureType getSchema()
Returns the feature type whose features are diffed with this reader

Returns:

next

FeatureDiff next()
                 throws java.io.IOException,
                        java.util.NoSuchElementException
Reads the next FeatureDifference

Returns:
The next FeatureDifference
Throws:
java.io.IOException - If an error occurs reading the FeatureDifference.
java.util.NoSuchElementException - If there are no more Features in the Reader.

hasNext

boolean hasNext()
                throws java.io.IOException
Query whether this FeatureDiffReader has another FeatureDiff.

Returns:
True if there are more differences to be read. In other words, true if calls to next would return a feature rather than throwing an exception.
Throws:
java.io.IOException - If an error occurs determining if there are more Features.

close

void close()
           throws java.io.IOException
Release the underlying resources associated with this reader.

Throws:
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.