org.geotools.catalog
Class AbstractCatalog

java.lang.Object
  extended byorg.geotools.catalog.AbstractCatalog
All Implemented Interfaces:
Catalog, Resolve
Direct Known Subclasses:
DefaultCatalog

public abstract class AbstractCatalog
extends java.lang.Object
implements Catalog

Abstract implementation of Catalog.

Author:
Justin Deoliveira, The Open Planning Project

Nested Class Summary
 
Nested classes inherited from class org.geotools.catalog.Resolve
Resolve.Status
 
Constructor Summary
AbstractCatalog()
           
 
Method Summary
 void addListener(ResolveChangeListener listener)
          This method does nothing.
 void fire(ResolveChangeEvent event)
          This method does nothing.
 CatalogInfo getInfo(ProgressListener monitor)
          Aquire info on this Catalog.
 Resolve parent(ProgressListener monitor)
          Catalogs do not have a parent so null is returned.
 void removeListener(ResolveChangeListener listener)
          This method does nothing.
 java.lang.String toString()
          Indicate class and id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.catalog.Catalog
add, find, findService, remove, replace, resolve, search
 
Methods inherited from interface org.geotools.catalog.Resolve
canResolve, getIdentifier, getMessage, getStatus, members
 

Constructor Detail

AbstractCatalog

public AbstractCatalog()
Method Detail

parent

public Resolve parent(ProgressListener monitor)
Catalogs do not have a parent so null is returned.

We can consider adding a global 'root' parent - but we will wait until we find a need, or if users request.

Specified by:
parent in interface Resolve
Parameters:
monitor - Progress monitor used to report status while blocking. May be null.
Returns:
null as catalogs do not have a parent

getInfo

public CatalogInfo getInfo(ProgressListener monitor)
                    throws java.io.IOException
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:
java.io.IOException
See Also:
Catalog.resolve(Class, ProgressListener)

toString

public java.lang.String toString()
Indicate class and id.

Returns:
string representing this IResolve

addListener

public void addListener(ResolveChangeListener listener)
This method does nothing. Sublcasses should override if events are supported.

Specified by:
addListener in interface Resolve
Parameters:
listener - The observer.

removeListener

public void removeListener(ResolveChangeListener listener)
This method does nothing. Sublcasses should override if events are supported.

Specified by:
removeListener in interface Resolve
Parameters:
listener - The observer.

fire

public void fire(ResolveChangeEvent event)
This method does nothing. Sublcasses should override if events are supported.

Specified by:
fire in interface Resolve
Parameters:
event - The event describing the change.


Copyright © GeoTools. All Rights Reserved.