org.geotools.catalog
Class AbstractGeoResource

java.lang.Object
  extended byorg.geotools.catalog.AbstractGeoResource
All Implemented Interfaces:
GeoResource, Resolve
Direct Known Subclasses:
ShapefileGeoResource, WFSGeoResource, WMSGeoResource

public abstract class AbstractGeoResource
extends java.lang.Object
implements GeoResource

Abstract implementation of GeoResource.


Nested Class Summary
 
Nested classes inherited from class org.geotools.catalog.Resolve
Resolve.Status
 
Constructor Summary
AbstractGeoResource()
           
 
Method Summary
 void addListener(ResolveChangeListener listener)
          This method does nothing.
 boolean equals(java.lang.Object other)
          This should represent the identifier
 void fire(ResolveChangeEvent event)
          This method does nothing.
 int hashCode()
          This should represent the identified
 java.util.List members(ProgressListener monitor)
          return null ... almost always a leaf
 Resolve parent(ProgressListener monitor)
          This method is shorthand for return (Service) resolve(Service.class, monitor);
 void removeListener(ResolveChangeListener listener)
          This method does nothing.
 java.lang.String toString()
          Indicate class and id.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.geotools.catalog.GeoResource
getInfo, resolve
 
Methods inherited from interface org.geotools.catalog.Resolve
canResolve, getIdentifier, getMessage, getStatus
 

Constructor Detail

AbstractGeoResource

public AbstractGeoResource()
Method Detail

parent

public Resolve parent(ProgressListener monitor)
               throws java.io.IOException
This method is shorthand for
 	
 		return (Service) resolve(Service.class, monitor);
 	
 

Specified by:
parent in interface Resolve
Parameters:
monitor - DOCUMENT ME!
Returns:
The service containg the resource, an object of type Service.
Throws:
java.io.IOException - DOCUMENT ME!
See Also:
GeoResource.resolve(Class, ProgressListener)

members

public java.util.List members(ProgressListener monitor)
return null ... almost always a leaf

Specified by:
members in interface Resolve
Parameters:
monitor - Progress monitor used to report status while blocking. May be null.
Returns:
A list (possibly empty) of members, null if the members could not be obtained or the instance has not members. Objects in the returned list implement the Resolve interface.
See Also:
net.refractions.udig.catalog.IResolve#members(org.eclipse.core.runtime.ProgressListener)

equals

public boolean equals(java.lang.Object other)
This should represent the identifier

Parameters:
other -
Returns:
See Also:
Object.equals(java.lang.Object)

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 - DOCUMENT ME!

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 - DOCUMENT ME!

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 - DOCUMENT ME!

hashCode

public int hashCode()
This should represent the identified

Returns:
See Also:
Object.hashCode()

toString

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

Returns:
string representing this IResolve


Copyright © GeoTools. All Rights Reserved.