| java.lang.Object org.geotools.catalog.AbstractCatalog org.geotools.catalog.defaults.DefaultCatalog
DefaultCatalog | public class DefaultCatalog extends AbstractCatalog (Code) | | Default Catalog implementation. All services are stored in memory.
author: David Zwiers, Refractions Research author: Justin Deoliveira, jdeolive@openplans.org since: 0.6 |
Method Summary | |
public void | add(Service entry) | public void | addCatalogListener(ResolveChangeListener listener) | public boolean | canResolve(Class adaptee) | protected static boolean | check(Service service, AST pattern) | protected static boolean | check(GeoResource resource, AST pattern) | protected static boolean | check(GeoResource resource, AST pattern, Envelope bbox) | public List | find(URI query, ProgressListener monitor) Quick search by url match. | public List | findService(URI query, ProgressListener monitor) Quick search by url match. | public void | fire(ResolveChangeEvent event) Fire a resource changed event, these may be batched into one delta for performance. | public URI | getIdentifier() | public Throwable | getMessage() | public Status | getStatus() | public List | members(ProgressListener monitor) | public void | remove(Service entry) | public void | removeCatalogListener(ResolveChangeListener listener) | public void | replace(URI id, Service entry) | public Object | resolve(Class adaptee, ProgressListener monitor) | public synchronized List | search(String pattern, Envelope bbox, ProgressListener monitor) Performs a search on this catalog based on the specified inputs. |
DefaultCatalog | public DefaultCatalog()(Code) | | |
addCatalogListener | public void addCatalogListener(ResolveChangeListener listener)(Code) | | See Also: net.refractions.udig.catalog.ICatalog.addCatalogListener(net.refractions.udig.catalog.ICatalog.ICatalogListener) Parameters: listener - |
canResolve | public boolean canResolve(Class adaptee)(Code) | | |
find | public List find(URI query, ProgressListener monitor)(Code) | | Quick search by url match.
Parameters: query - See Also: net.refractions.udig.catalog.ICatalog.search(org.geotools.filter.Filter) List throws: IOException - |
findService | public List findService(URI query, ProgressListener monitor)(Code) | | Quick search by url match.
See Also: net.refractions.udig.catalog.ICatalog.search(org.geotools.filter.Filter) Parameters: query - List throws: IOException - |
fire | public void fire(ResolveChangeEvent event)(Code) | | Fire a resource changed event, these may be batched into one delta for performance.
Parameters: event - the event to be fired throws: IOException - protected void fireResourceEvent( IGeoResource resource,IResolveDelta.Kind kind ) throws IOException { Object[] listeners =catalogListeners.getListeners(); if( listeners.length == 0 ) return;GeoReferenceDelta rDelta = new GeoReferenceDelta( resource, kind ); ServiceDeltasDelta = new ServiceDelta( resource.getService(null), IDelta.Kind.NO_CHANGE,Collections.singletonList( rDelta ) ); CatalogDelta cDelta = new CatalogDelta(Collections.singletonList( (IDelta)sDelta ) ); fire( new CatalogChangeEvent(resource, ICatalogChangeEvent.Type.POST_CHANGE, cDelta ) ); } |
getIdentifier | public URI getIdentifier()(Code) | | |
getStatus | public Status getStatus()(Code) | | |
removeCatalogListener | public void removeCatalogListener(ResolveChangeListener listener)(Code) | | See Also: net.refractions.udig.catalog.ICatalog.removeCatalogListener(net.refractions.udig.catalog.ICatalog.ICatalogListener) Parameters: listener - |
resolve | public Object resolve(Class adaptee, ProgressListener monitor)(Code) | | See Also: net.refractions.udig.catalog.ICatalog.resolve(java.lang.Classorg.eclipse.core.runtime.IProgressMonitor) |
search | public synchronized List search(String pattern, Envelope bbox, ProgressListener monitor)(Code) | | Performs a search on this catalog based on the specified inputs. The pattern uses the
following conventions: use " " to surround a phase use + to represent 'AND' use - to
represent 'OR' use ! to represent 'NOT' use ( ) to designate scope The bbox provided shall be
in Lat - Long, or null if the search is not to be contained within a specified area.
See Also: net.refractions.udig.catalog.ICatalog.search(java.lang.Stringcom.vividsolutions.jts.geom.Envelope) Parameters: pattern - Parameters: bbox - used for an intersection test |
|
|