net.refractions.udig.catalog.rasterings
Class AbstractRasterGeoResource

java.lang.Object
  extended by IGeoResource
      extended by net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource

public abstract class AbstractRasterGeoResource
extends IGeoResource

Provides a handle to a raster resource allowing the service to be lazily loaded.

This class provides functionality common to GridCoverage based resources.

Since:
0.6.0
Author:
mleslie

Field Summary
protected  AbstractRasterService service
          service field recalls the service that created this resource
 
Constructor Summary
AbstractRasterGeoResource(AbstractRasterService service, java.lang.String name)
          Construct AbstractRasterGeoResource.
 
Method Summary
<T> boolean
canResolve(java.lang.Class<T> adaptee)
           
 java.lang.Object findResource()
          Finds or creates the GridCoverage for this resource.
 java.net.URL getIdentifier()
           
abstract  IGeoResourceInfo getInfo(IProgressMonitor monitor)
           
 java.lang.Throwable getMessage()
           
 ParameterGroup getReadParameters()
          Retrieves the parameters used to create the GridCoverageReader for this resource.
 Status getStatus()
           
<T> T
resolve(java.lang.Class<T> adaptee, IProgressMonitor monitor)
           
 IService service(IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

service

protected AbstractRasterService service
service field recalls the service that created this resource

Constructor Detail

AbstractRasterGeoResource

public AbstractRasterGeoResource(AbstractRasterService service,
                                 java.lang.String name)
Construct AbstractRasterGeoResource.

Parameters:
service - The service creating this resource.
name - Human readable name of this resource.
Method Detail

getStatus

public Status getStatus()

getMessage

public java.lang.Throwable getMessage()

getReadParameters

public ParameterGroup getReadParameters()
Retrieves the parameters used to create the GridCoverageReader for this resource. This simply delegates the creation of these parameters to a GridFormat.

Returns:
ParameterGroup describing the GeoResource

findResource

public java.lang.Object findResource()
                              throws java.io.IOException
Finds or creates the GridCoverage for this resource.

Returns:
GridCoverage for this GeoResource
Throws:
java.io.IOException

getIdentifier

public java.net.URL getIdentifier()

resolve

public <T> T resolve(java.lang.Class<T> adaptee,
                     IProgressMonitor monitor)
          throws java.io.IOException
Throws:
java.io.IOException

service

public IService service(IProgressMonitor monitor)
                 throws java.io.IOException
Throws:
java.io.IOException

canResolve

public <T> boolean canResolve(java.lang.Class<T> adaptee)

getInfo

public abstract IGeoResourceInfo getInfo(IProgressMonitor monitor)
                                  throws java.io.IOException
Throws:
java.io.IOException