Andrea Aime wrote:
> Hi,
> I've written down a first version of the Feature paging  + query 
> capabilities proposal as a base for further discussion:
> http://docs.codehaus.org/display/GEOTOOLS/Feature+paging+and+Query+capabilities
>
> (If you did not hear about it, it basically tries to add support
> for paging thru features in a datastore and also tries to add
> support for query capabilities as a way to state what parts of
> query are supported, and what aren't).
>
> The proposal is not finalized, thought seems like a good starting
> point for discussion. Please provide feedback.
>   
Thanks Andrea that is a very clear write up.

I think the QueryCapabilities class will need an implementation with a 
no argument constructor and "setters" allowing implementors set one up. 
The setters could be a "single use" if you want; they are only their to 
be called once ...

Single use normal java beans setter:
> class QueryCapabilities {
>   Boolean isReprojectionSupported = null;
>   public QueryCapabilities(){
>   } 
>   public boolean isReprojectionSupported(){
>       return isReprojectionSupported != null && isReprojectionSupported;
>   }
>   public void setReprojectionSupported(boolean isSupported ){
>       if( isReprojectionSupported != null ) throw new IllegalStateException();
>       isReprojectionSupported = isSupported;
>   }
>   ...
> }
>   
Or "set"

class QueryCapabilities {

  boolean isReprojectionSupported = false;
  public QueryCapabilities(){
  } 
  public boolean isReprojectionSupported(){
      return isReprojectionSupported;
  }
  public boolean isReprojectionSupported(){
      return isReprojectionSupported != null && isReprojectionSupported;
  }
  public void setReprojectionSupported(){
      isReprojectionSupported = true;
  }
  ...
}


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to