|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.catalog.AbstractCatalog org.geotools.catalog.defaults.DefaultCatalog
Default Catalog implementation. All services are stored in memory.
Nested Class Summary |
Nested classes inherited from class org.geotools.catalog.Resolve |
Resolve.Status |
Constructor Summary | |
DefaultCatalog()
|
|
DefaultCatalog(CatalogInfo metadata)
|
Method Summary | |
void |
add(Service entry)
Adds the specified entry to this catalog. |
void |
addCatalogListener(ResolveChangeListener listener)
|
boolean |
canResolve(java.lang.Class adaptee)
Non blocking method which is used to determine if a resolve into an instance of a particular class is supported. |
protected static boolean |
check(GeoResource resource,
AST pattern)
|
protected static boolean |
check(GeoResource resource,
AST pattern,
com.vividsolutions.jts.geom.Envelope bbox)
|
protected static boolean |
check(Service service,
AST pattern)
|
java.util.List |
find(java.net.URI query,
ProgressListener monitor)
Quick search by url match. |
java.util.List |
findService(java.net.URI query,
ProgressListener monitor)
Quick search by url match. |
void |
fire(ResolveChangeEvent event)
Fire a resource changed event, these may be batched into one delta for performance. |
java.net.URI |
getIdentifier()
Returns a URI which uniqley identifies the Resolve. |
java.lang.Throwable |
getMessage()
In the event that an error occurs during a resolve, that error can be reported back with this method. |
Resolve.Status |
getStatus()
Status of the resolve. |
java.util.List |
members(ProgressListener monitor)
Blocking method which resolves this instance into its members (children). |
void |
remove(Service entry)
Removes the specified entry to this catalog. |
void |
removeCatalogListener(ResolveChangeListener listener)
|
void |
replace(java.net.URI id,
Service entry)
Replaces the specified entry in this catalog. |
java.lang.Object |
resolve(java.lang.Class adaptee,
ProgressListener monitor)
Will attempt to morph into the adaptee, and return that object. |
java.util.List |
search(java.lang.String pattern,
com.vividsolutions.jts.geom.Envelope bbox,
ProgressListener monitor)
Performs a search on this catalog based on the specified inputs. |
Methods inherited from class org.geotools.catalog.AbstractCatalog |
addListener, getInfo, parent, removeListener, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultCatalog()
public DefaultCatalog(CatalogInfo metadata)
Method Detail |
public void addCatalogListener(ResolveChangeListener listener)
listener
- net.refractions.udig.catalog.ICatalog#addCatalogListener(net.refractions.udig.catalog.ICatalog.ICatalogListener)
public void removeCatalogListener(ResolveChangeListener listener)
listener
- net.refractions.udig.catalog.ICatalog#removeCatalogListener(net.refractions.udig.catalog.ICatalog.ICatalogListener)
public void add(Service entry) throws java.lang.UnsupportedOperationException
Catalog
An IService may belong to more than one Catalog.
entry
-
java.lang.UnsupportedOperationException
net.refractions.udig.catalog.ICatalog#add(net.refractions.udig.catalog.IService)
public void remove(Service entry) throws java.lang.UnsupportedOperationException
Catalog
entry
-
java.lang.UnsupportedOperationException
net.refractions.udig.catalog.ICatalog#remove(net.refractions.udig.catalog.IService)
public void replace(java.net.URI id, Service entry) throws java.lang.UnsupportedOperationException
Catalog
id
- entry
-
java.lang.UnsupportedOperationException
public java.util.List find(java.net.URI query, ProgressListener monitor)
query
- monitor
- used to show the progress of the find.
java.io.IOException
net.refractions.udig.catalog.ICatalog#search(org.geotools.filter.Filter)
public java.util.List findService(java.net.URI query, ProgressListener monitor)
query
- monitor
- monitor used to watch progress
java.io.IOException
net.refractions.udig.catalog.ICatalog#search(org.geotools.filter.Filter)
public java.util.List search(java.lang.String pattern, com.vividsolutions.jts.geom.Envelope bbox, ProgressListener monitor)
pattern
- bbox
- used for an intersection testmonitor
- for progress, or null if monitoring is not desired
net.refractions.udig.catalog.ICatalog#search(java.lang.String,
com.vividsolutions.jts.geom.Envelope)
protected static boolean check(Service service, AST pattern)
protected static boolean check(GeoResource resource, AST pattern)
protected static boolean check(GeoResource resource, AST pattern, com.vividsolutions.jts.geom.Envelope bbox)
public void fire(ResolveChangeEvent event)
fire
in interface Resolve
fire
in class AbstractCatalog
java.io.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 ); ServiceDelta
sDelta = 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 ) ); }public java.lang.Object resolve(java.lang.Class adaptee, ProgressListener monitor)
Catalog
adaptee
- monitor
- May Be Null
net.refractions.udig.catalog.ICatalog#resolve(java.lang.Class,
org.eclipse.core.runtime.IProgressMonitor)
public boolean canResolve(java.lang.Class adaptee)
Resolve
adaptee
- Class of object to resolve into.
IResolve#resolve(Class,ProgressListener)
public java.util.List members(ProgressListener monitor)
Resolve
monitor
- Progress monitor used to report status while blocking.
May be null.
public Resolve.Status getStatus()
Resolve
Resolve.Status.BROKEN
,Resolve.Status.CONNECTED
, or
Resolve.Status.NOTCONNECTED
.public java.lang.Throwable getMessage()
Resolve
Resolve.getStatus()
returns Resolve.Status.BROKEN
, otherwise it
return null.
Resolve.Status
public java.net.URI getIdentifier()
Resolve
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |