org.geotools.catalog
Class AbstractCatalog

Object
  extended by AbstractCatalog
All Implemented Interfaces:
Catalog, Resolve
Direct Known Subclasses:
DefaultCatalog

public abstract class AbstractCatalog
extends Object
implements Catalog

Abstract implementation of Catalog.

Author:
Justin Deoliveira, The Open Planning Project
Module:
modules/library/main   (gt2-main.jar) (Maven report) (SVN head)

Nested Class Summary
 
Nested classes/interfaces inherited from interface 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.
 Map getUserData()
           
 Resolve parent(ProgressListener monitor)
          Catalogs do not have a parent so null is returned.
 void removeListener(ResolveChangeListener listener)
          This method does nothing.
 String toString()
          Indicate class and id.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Catalog
add, find, findService, remove, replace, resolve, search
 
Methods inherited from interface 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 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:
IOException
See Also:
Catalog.resolve(Class, ProgressListener)

getUserData

public Map getUserData()
Returns:
The user / application specific data.

toString

public String toString()
Indicate class and id.

Overrides:
toString in class Object
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 © 1996-2008 Geotools. All Rights Reserved.