Java Doc for DefaultView.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » view » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.data.view 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.data.view.DefaultView

DefaultView
public class DefaultView implements FeatureSource(Code)
Wrapper for FeatureSource constrained by a Query.

Support FeatureSource decorator that takes care of mapping a Query & FeatureSource with the schema and definition query configured for it.

Because GeoServer requires that attributes always be returned in the same order we need a way to smoothly inforce this. Could we use this class to do so?

WARNING: this class is a placeholder for ideas right now - it may not always impement FeatureSource.


author:
   Gabriel Rold�n


Field Summary
protected  FeatureSourcesource
    

Constructor Summary
public  DefaultView(FeatureSource source, Query query)
     Creates a new GeoServerFeatureSource object.

Method Summary
public  voidaddFeatureListener(FeatureListener listener)
     Implement addFeatureListener.
public static  FeatureSourcecreate(FeatureSource source, Query query)
     Factory that make the correct decorator for the provided featureSource.

This factory method is public and will be used to create all required subclasses.

public  EnvelopegetBounds()
     Retrieves the total extent of this FeatureSource.
public  EnvelopegetBounds(Query query)
     Retrive the extent of the Query.

This method provides access to an optimized getBounds opperation.

public  intgetCount(Query query)
     Adjust query and forward to source.

This method provides access to an optimized getCount opperation.

public  DataStoregetDataStore()
     Implement getDataStore.
public  FeatureCollectiongetFeatures(Query query)
     Implement getFeatures.
public  FeatureCollectiongetFeatures(Filter filter)
     Implement getFeatures.
public  FeatureCollectiongetFeatures()
     Implement getFeatures.
public  FeatureTypegetSchema()
     Implement getSchema.
public  SetgetSupportedHints()
    
protected  FiltermakeDefinitionFilter(Filter filter)
     If a definition query has been configured for the FeatureTypeInfo, makes and return a new Filter that contains both the query's filter and the layer's definition one, by logic AND'ing them.
protected  DefaultQuerymakeDefinitionQuery(Query query)
     Takes a query and adapts it to match re definitionQuery filter configured for a feature type.
public  voidremoveFeatureListener(FeatureListener listener)
     Implement removeFeatureListener.

Field Detail
source
protected FeatureSource source(Code)
FeatureSource being served up




Constructor Detail
DefaultView
public DefaultView(FeatureSource source, Query query) throws SchemaException(Code)
Creates a new GeoServerFeatureSource object.

Grabs the following from query:

  • typeName - only used if client does not supply
  • cs - only used if client does not supply
  • csForce - only used if client does not supply
  • filter - combined with client filter
  • propertyNames - combined with client filter (indicate property names that *must* be included)

Schema is generated based on this information.


Parameters:
  source - a FeatureSource
Parameters:
  query - Filter used to limit results
throws:
  SchemaException -




Method Detail
addFeatureListener
public void addFeatureListener(FeatureListener listener)(Code)
Implement addFeatureListener.

Description ...


Parameters:
  listener -
See Also:   org.geotools.data.FeatureSource.addFeatureListener(org.geotools.data.FeatureListener)



create
public static FeatureSource create(FeatureSource source, Query query) throws SchemaException(Code)
Factory that make the correct decorator for the provided featureSource.

This factory method is public and will be used to create all required subclasses. By comparison the constructors for this class have package visibiliy.

TODO: revisit this - I am not sure I want write access to views (especially if they do reprojection).
Parameters:
  source -
Parameters:
  query - @throwsSchemaException



getBounds
public Envelope getBounds() throws IOException(Code)
Retrieves the total extent of this FeatureSource.

Please note this extent will reflect the provided definitionQuery.

Extent of this FeatureSource, or null if nooptimizations exist.
throws:
  IOException - If bounds of definitionQuery



getBounds
public Envelope getBounds(Query query) throws IOException(Code)
Retrive the extent of the Query.

This method provides access to an optimized getBounds opperation. If no optimized opperation is available null will be returned.

You may still make use of getFeatures( Query ).getCount() which will return the correct answer (even if it has to itterate through all the results to do so.


Parameters:
  query - User's query Extend of Query or null if no optimization isavailable
throws:
  IOException - If a problem is encountered with source



getCount
public int getCount(Query query)(Code)
Adjust query and forward to source.

This method provides access to an optimized getCount opperation. If no optimized opperation is available -1 will be returned.

You may still make use of getFeatures( Query ).getCount() which will return the correct answer (even if it has to itterate through all the results to do so).


Parameters:
  query - User's query. Number of Features for Query, or -1 if no optimization isavailable.



getDataStore
public DataStore getDataStore()(Code)
Implement getDataStore.

Description ...

@see org.geotools.data.FeatureSource#getDataStore()



getFeatures
public FeatureCollection getFeatures(Query query) throws IOException(Code)
Implement getFeatures.

Description ...


Parameters:
  query - @throwsIOException
See Also:   org.geotools.data.FeatureSource.getFeatures(org.geotools.data.Query)



getFeatures
public FeatureCollection getFeatures(Filter filter) throws IOException(Code)
Implement getFeatures.

Description ...


Parameters:
  filter - @throwsIOException



getFeatures
public FeatureCollection getFeatures() throws IOException(Code)
Implement getFeatures.

Description ...

@throwsIOException
See Also:   org.geotools.data.FeatureSource.getFeatures



getSchema
public FeatureType getSchema()(Code)
Implement getSchema.

Description ...

@see org.geotools.data.FeatureSource#getSchema()



getSupportedHints
public Set getSupportedHints()(Code)



makeDefinitionFilter
protected Filter makeDefinitionFilter(Filter filter) throws DataSourceException(Code)
If a definition query has been configured for the FeatureTypeInfo, makes and return a new Filter that contains both the query's filter and the layer's definition one, by logic AND'ing them.
Parameters:
  filter - Origional user supplied Filter Filter adjusted to the limitations of definitionQuery
throws:
  DataSourceException - If the filter could not meet the limitations ofdefinitionQuery



makeDefinitionQuery
protected DefaultQuery makeDefinitionQuery(Query query) throws IOException(Code)
Takes a query and adapts it to match re definitionQuery filter configured for a feature type. It won't handle coordinate system changes

Grabs the following from query:

  • typeName - only used if client does not supply
  • filter - combined with client filter
  • propertyNames - combined with client filter (indicate property names that *must* be included)


Parameters:
  query - Query against this DataStore Query restricted to the limits of definitionQuery
throws:
  IOException - See DataSourceException
throws:
  DataSourceException - If query could not meet the restrictions of definitionQuery



removeFeatureListener
public void removeFeatureListener(FeatureListener listener)(Code)
Implement removeFeatureListener.

Description ...


Parameters:
  listener -
See Also:   org.geotools.data.FeatureSource.removeFeatureListener(org.geotools.data.FeatureListener)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.