org.geotools.catalog
Interface GeoResource

All Superinterfaces:
Resolve
All Known Implementing Classes:
AbstractGeoResource

public interface GeoResource
extends Resolve

Represents a handle to a spatial resource.

The resource is not guaranteed to exist, nor do we guarantee that we can connect with the resource. Some/All potions of this handle may be loaded as required. This resource handle may also be the result a metadata service query.

Since:
0.6
Author:
David Zwiers, Refractions Research, Justin Deoliveira, The Open Planning Project

Nested Class Summary
 
Nested classes inherited from class org.geotools.catalog.Resolve
Resolve.Status
 
Method Summary
 GeoResourceInfo getInfo(ProgressListener monitor)
          Blocking operation to describe this service.
 java.lang.Object resolve(java.lang.Class adaptee, ProgressListener monitor)
          Blocking operation to resolve into the adaptee, if available.
 
Methods inherited from interface org.geotools.catalog.Resolve
addListener, canResolve, fire, getIdentifier, getMessage, getStatus, members, parent, removeListener
 

Method Detail

resolve

public java.lang.Object resolve(java.lang.Class adaptee,
                                ProgressListener monitor)
                         throws java.io.IOException
Blocking operation to resolve into the adaptee, if available.

Required adaptions:

Example (no casting required):


 IGeoResourceInfo info = resovle(IGeoResourceInfo.class);
 

Recommendated adaptions:

Specified by:
resolve in interface Resolve
Parameters:
adaptee -
monitor -
Returns:
instance of adaptee, or null if unavailable (IGeoResourceInfo and IService must be supported)
Throws:
java.io.IOException - DOCUMENT ME!
See Also:
GeoResourceInfo, IService, IResolve#resolve(Class, ProgressListener)

getInfo

public GeoResourceInfo getInfo(ProgressListener monitor)
                        throws java.io.IOException
Blocking operation to describe this service.

As an example this method is used by LabelDecorators to aquire title, and icon.

Parameters:
monitor - DOCUMENT ME!
Returns:
IGeoResourceInfo resolve(IGeoResourceInfo.class,ProgressListener monitor);
Throws:
java.io.IOException - DOCUMENT ME!
See Also:
resolve(Class, ProgressListener)


Copyright © GeoTools. All Rights Reserved.