org.geotools.catalog.adaptable
Class AdaptingCatalog

Object
  extended by AdaptingResolve
      extended by AdaptingCatalog
All Implemented Interfaces:
Catalog, Resolve

public class AdaptingCatalog
extends AdaptingResolve
implements Catalog


Nested Class Summary
 
Nested classes/interfaces inherited from interface Resolve
Resolve.Status
 
Field Summary
 
Fields inherited from class AdaptingResolve
finder, resolve
 
Constructor Summary
protected AdaptingCatalog(Catalog catalog, ResolveAdapterFactoryFinder adapter)
           
 
Method Summary
 void add(Service service)
          Adds the specified entry to this catalog.
protected  Catalog catalog()
           
 List find(URI id, ProgressListener monitor)
          Find resources matching this id directly from this Catalog.
 List findService(URI query, ProgressListener monitor)
          Find Service matching this id directly from this Catalog.
 CatalogInfo getInfo(ProgressListener monitor)
          Aquire info on this Catalog.
 void remove(Service service)
          Removes the specified entry to this catalog.
 void replace(URI id, Service service)
          Replaces the specified entry in this catalog.
 List search(String pattern, Envelope bbox, ProgressListener monitor)
          Performs a search on this catalog based on the specified inputs.
 
Methods inherited from class AdaptingResolve
addListener, canResolve, fire, getIdentifier, getMessage, getResolveAdapterFactoryFinder, getStatus, members, parent, removeListener, resolve, wrap, wrap
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Catalog
resolve
 
Methods inherited from interface Resolve
addListener, canResolve, fire, getIdentifier, getMessage, getStatus, members, parent, removeListener
 

Constructor Detail

AdaptingCatalog

protected AdaptingCatalog(Catalog catalog,
                          ResolveAdapterFactoryFinder adapter)
Method Detail

catalog

protected Catalog catalog()

add

public void add(Service service)
         throws UnsupportedOperationException
Description copied from interface: Catalog
Adds the specified entry to this catalog. In some cases the catalog will be backed onto a server, which may not allow for additions.

An IService may belong to more than one Catalog.

Specified by:
add in interface Catalog
Parameters:
service - the Service to add to the catalog
Throws:
UnsupportedOperationException

remove

public void remove(Service service)
            throws UnsupportedOperationException
Description copied from interface: Catalog
Removes the specified entry to this catalog. In some cases the catalog will be backed onto a server, which may not allow for deletions.

Specified by:
remove in interface Catalog
Throws:
UnsupportedOperationException

replace

public void replace(URI id,
                    Service service)
             throws UnsupportedOperationException
Description copied from interface: Catalog
Replaces the specified entry in this catalog. In some cases the catalog will be backed onto a server, which may not allow for deletions.

Specified by:
replace in interface Catalog
Throws:
UnsupportedOperationException

find

public List find(URI id,
                 ProgressListener monitor)
Description copied from interface: Catalog
Find resources matching this id directly from this Catalog.

Specified by:
find in interface Catalog
Parameters:
id - used to match resolves
monitor - used to show the progress of the find.
Returns:
List (possibly empty) of resolves (objects implementing the Resolve interface)

findService

public List findService(URI query,
                        ProgressListener monitor)
Description copied from interface: Catalog
Find Service matching this id directly from this Catalog. This method is guaranteed to be non-blocking.

Specified by:
findService in interface Catalog
Parameters:
query - a URI used to match resolves
monitor - monitor used to watch progress
Returns:
a List (possibly empty) of matching services (objects of type Service).

search

public List search(String pattern,
                   Envelope bbox,
                   ProgressListener monitor)
            throws IOException
Description copied from interface: Catalog
Performs a search on this catalog based on the specified inputs.

The pattern uses the following conventions:

The bbox provided shall be in Lat - Long, or null if the search is not to be contained within a specified area.

Specified by:
search in interface Catalog
Parameters:
pattern - Search pattern (see above)
bbox - The bbox in Lat-Long (ESPG 4269), or null
monitor - for progress, or null if monitoring is not desired
Returns:
List containg objects of type Resolve.
Throws:
IOException

getInfo

public CatalogInfo getInfo(ProgressListener monitor)
                    throws IOException
Description copied from interface: Catalog
Aquire info on this Catalog.

This is functionally equivalent to: resolve(ICatalogInfo.class,monitor)

Specified by:
getInfo in interface Catalog
Returns:
ICatalogInfo resolve(ICatalogInfo.class,ProgressListener monitor);
Throws:
IOException
See Also:
Catalog.resolve(Class, ProgressListener)


Copyright © 1996-2008 Geotools. All Rights Reserved.